Important announcements from CouchCMS team
80 posts Page 2 of 8
Previous 1, 2, 3, 4, 5 ... 8 Next
I have pushed some more changes, Ewan.
Please let me know if those help.

Also, thanks for taking the time to test things out.
Do report anything you feel/find is not working as expected.

Thanks.
@keakie, I am sorry but I missed seeing the problem you reported -
The following code, which used to work with <cms:get_custom_field/> no longer works with <cms:get_field/>
Code: Select all
<cms:set file_id = "<cms:php>global $FUNCS; $data = $FUNCS->unserialize( '<cms:get_field 'cover_photo' masterpage=k_template_name page=k_page_name />'); print_r($data[file_id]);</cms:php>"/>
   
<img src='<cms:securefile_link file_id />'/>

Instead of having to use PHP as you did above, we can now use the following code instead -
Code: Select all
<cms:get_field 'cover_photo' masterpage=k_template_name page=k_page_name >
    <cms:show_securefile k_field_name >
        <img src='<cms:securefile_link file_id />'/>
    </cms:show_securefile>
</cms:get_field>

Hope it helps.
KK wrote: I have pushed some more changes, Ewan.
Please let me know if those help.

Also, thanks for taking the time to test things out.
Do report anything you feel/find is not working as expected.

Thanks.


Hi KK,
It's working as expected now. Managed to add separate text fields, images, all displaying on the front end.
If I spot anything else, I'll let you know.
Cheers,
Ewan
Love the new update, globals has been a long awaited thing for everyone who uses couch!

I like the mosaic feature and the doors it opens. Will we ever be able to nest mosaic regions inside eachother?

For example:

I want to define a form section, but want the user to be able to add/design the form fields themselves from a mosaic in the admin panel. A mosaic would work perfectly for this, but having a single mosaic on its own just for form building would not be quite so powerful (Although it has its uses). Ability to put a mosaic inside a mosaic tile would make this feature very much more powerful and open even more doors for developers using couch ;)
Image
Thanks Dave :)

As for nesting mosaic within mosaic, I am afraid, that doesn't seem likely.

We'll have to make do with using normal repeatable-regions within tiles for now. I suppose even that gives a fair bit of flexibility.
What do you say?
Hi @KK

I found few moment with globals:

if i have:
Code: Select all
<cms:template title='Produktai' clonable='1'>
.......
   <cms:globals>
      <cms:editable type='radio' name='sales_right_module' label='Išpardavimo funkcija' desc='Pasirinkite, po pajungimo ar išjungimo atnaujinkite titulinį puslapį' opt_values='Ijungta=show|Išjungta' group='modules' order='1' />
   </cms:globals>
.......
</cms:template>


in backend I have:

Image


but. if we have group:

Code: Select all
<cms:globals>
   <cms:editable type='group' name="modules" label="Modulių nustatymai" order='1' />
      <cms:editable type='radio' name='sales_right_module' label='Išpardavimo funkcija' desc='Pasirinkite, po pajungimo ar išjungimo atnaujinkite titulinį puslapį' opt_values='Ijungta=show|Išjungta' group='modules' order='1' />
</cms:globals>


Image

I think button "advanced settings" is not needed
The output you are getting is not the expected one for globals.

Clearly something was going wrong with your particular setup (the other markup problem you mentioned in the following thread also alludes to this - viewtopic.php?f=4&t=11119).

I had a look at your site and it seems that some custom code you tried out (perhaps the 'compressor.php' found in your addons folder) caused the code generated for the admin-panel to skew a little. This was then cached and so you always had that flawed output.

To prevent Couch form using the cached output in admin-panel, I edited 'headers.php' and set the following (at line 63) to '0' -
Code: Select all
define( 'K_CACHE_OPCODES', '0' );

The output now appears just fine to me. Please check.

If you want to turn on the caching mentioned above, you'll have to delete the cached settings from the database.
For that, find the couch_settings table in your database and then delete all records from it that have the 'k_key' value looking like a MD5 hash (e.g. fec2ac3f7561096341eb22b1c1b18837 or 148012649a1a9c37902238389aa9b2ae).

As to what caused the problem in the generated code, that is for you to find out.
For now things are looking fine. If you enable some custom code later and find that the output goes awry, that would be the code to look deeper into.
Hi, just yesterday had some time to "play" with a new feature (Mosaic) and fall in love with them immediately. Thank you, guys. It is super easy to make new kind of tiles and using it also.

I hope for tips for advance tiles in snippet section ;)
It is also possible to use relation.

define code:

Code: Select all
    <cms:mosaic name='content' label='Content'>

        <cms:tile name='relation' label='Relation'>
            <cms:editable name='related' label='Related pages' type='relation' masterpage='sample-clonable-template.php' />
        </cms:tile>

    </cms:mosaic>


display code:

Code: Select all
<cms:show_mosaic 'content'>
   ...
    <cms:if k_tile_name='relation' >
        <cms:related_pages 'related'>
            <h3><cms:show k_page_title /></h3>
        </cms:related_pages>
    </cms:if>

</cms:show_mosaic>

@KK there seems to be a problem with deleting mosaic editables.

I have visited the page_view logged in as super admin and have even successfully removed other editables on the page but mosaic seems to be undeletable?
Previous 1, 2, 3, 4, 5 ... 8 Next
80 posts Page 2 of 8