Skip to content

Switch from Static render mode to Interactive when Edit mode #4473

Answered by sbwalker
mdmontesinos asked this question in Ideas
Discussion options

You must be logged in to vote

@mdmontesinos it sounds like you are trying to mix different use cases within the same module component. Generally it is better to separate those concerns into different components. For example your Index component would be static and display the carousal. It could contain a single Manage button which becomes visible when you go into Edit Mode. Clicking Manage will display the Manage component which is interactive and contains a grid and allows management of individual items. This clearly separates the front-end (view) from the back-end (admin) and allows you to employ the appropriate render mode for each scenario.

Replies: 2 comments 8 replies

Comment options

You must be logged in to vote
5 replies
@mdmontesinos
Comment options

@sbwalker
Comment options

@mdmontesinos
Comment options

@sbwalker
Comment options

Answer selected by mdmontesinos
@mdmontesinos
Comment options

Comment options

You must be logged in to vote
3 replies
@mdmontesinos
Comment options

@sbwalker
Comment options

@mdmontesinos
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
2 participants