Problems, need help? Have a tip or advice? Post it here.
3 posts Page 1 of 1
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:
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
Hi,

I checked and can confirm the behavior you reported.

It is a bug.
I am attaching the modified 'page.php' file with the fix.
Please replace the original found in your 'couch' folder with the one attached.

Do let me know if this resolves the problem and we'll have the fix committed.

Thank you very much for the heads-up :)

Attachments

Great! solved! thanks a lot excellent support
3 posts Page 1 of 1
cron