Hi it´s me again, after completing a dynamically generated form in the previous post : http://www.couchcms.com/forum/viewtopic.php?f=4&t=7998 i´m working again with repeatable regions and on page edit (popup) see I have a clonable blog.php template which in page view display the cloned page and in list view displays blog.html, I also have a blog-options.php wich only purpose is to specify some editable regions for example select the widgets for the sidebar.
So this option (in the blog-options.php) is a repeatable region in which i use a dropdown to allow client to select which widgets he wants to show in the sidebar, so i ended up with this code:
for blog-options.php:
And for the blog.php page-view:
When i click on the anchor for edit the popup opens but only display.
I tried the very same code but this time in the list-view and works fine (the problem is that this list view wont display the sidebar otherwise i make it editable there and not in the page-view) so maybe i think it´is necessary to make an additional declaration when doing this from a cloned page but can´t find anything related on the docs. Any help
So this option (in the blog-options.php) is a repeatable region in which i use a dropdown to allow client to select which widgets he wants to show in the sidebar, so i ended up with this code:
for blog-options.php:
- Code: Select all
<cms:repeatable name="sidebar" label="Elementos de la barra lateral" group="side" order="1">
<cms:editable
name="widget"
label="Elemento"
type="dropdown"
opt_values="Busqueda=search |
Twitter timeline=tweet-timeline |
Facebook Like Box=fb-like-box |
Categorias (o carpetas)=categories | Contenido libre=free"
/>
</cms:repeatable>
And for the blog.php page-view:
- Code: Select all
<div id="sidebar">
<cms:pages masterpage="blog-options.php">
<cms:show_repeatable 'sidebar' >
<cms:embed "<cms:show widget/>.html"/>
</cms:show_repeatable>
<cms:popup_edit "sidebar" class="form" link_text="Editar barra lateral"/><!-- for on page editing -->
</cms:pages>
</div>
When i click on the anchor for edit the popup opens but only display.
- Code: Select all
ERROR: Page not found
I tried the very same code but this time in the list-view and works fine (the problem is that this list view wont display the sidebar otherwise i make it editable there and not in the page-view) so maybe i think it´is necessary to make an additional declaration when doing this from a cloned page but can´t find anything related on the docs. Any help