Important announcements from CouchCMS team
80 posts Page 6 of 8
Previous 1 ... 3, 4, 5, 6, 7, 8 Next
I set up a relation editable in cms:globals and yet able to output it. Any hints? My definition is below.

Code: Select all

<cms:globals>
   
   <!-- Slider Section -->
   <cms:editable type='group' name='group_slider' label='Slider Section' collapsed='0' order='0' >
      <cms:editable type='relation' name='editable_slider_related_media'
                 advanced_gui='1' masterpage=k_template_name has='one'
                 label='Hero Image (related)' desc='Select from existing images here' order='1' />
   </cms:editable>
   <!-- Slider Section End -->   

</cms:globals>

How to add tiles without popup?
Is the upgrade process in UPGRADE.md in the 2.1 download correct for an upgrade from 2.0 to 2.1?

The text in that files refers to upgrading to 2.0.
@daldred, yes, the upgrade process remains unchanged.
Hi to all, Question about Mosaic:

Did tiles have unique id's?

Can I access in frontend tiles id?

I need this to separate values in the same type of tiles to be unique in my JS code.

Now I do this by adding a "tile id" editable field, but that must be unique in each added tile so I must except user fill it properly. Which is, I think, impossible.

example:
Code: Select all
<cms:show_mosaic 'mosaicname'>
     <cms:if k_tile_name='tilename'>
           ... some code ...
      <script>
              const <cms:show tile_id />_value = '<cms:show some_field />';
         ... some code ...
       </script>
     </cms:if>
</cms:mosaic>


I hope you understand the question.
@rdamir82, tiles, I am afraid, don't intrinsically possess a unique ID.

However, since in your case you seem to be generating the JS code as you are looping through the tiles, I think you may use the 'k_count' variable instead - the first tile will (by default) have a value of '1', the next a value of '2' and so on.

Would that help? Please let me know.
Yes, I think that is enough to make different variables to JS code.

Thank You very much.
Hi,
I notice strange behavior on <cms:globals> - if the clone template is located in a physical folder - this tag is not displayed.
Am I confusing something or is this a bug?

Thanks
orbital wrote: Hi,
I notice strange behavior on <cms:globals> - if the clone template is located in a physical folder - this tag is not displayed.
Am I confusing something or is this a bug?

Thanks


This is a known issue. Perhaps, you already have 'globals' in another template with the same name (e.g. index.php and /subfolder/index.php). In such cases, there is a conflict because of an old bug, which @KK already knows about.. Thanks for bringing this up, because it's about time we get a fix :) Hopefully it'll come soon.
@orbital, @trendoman -
I have pushed a fix to GitHub.
Please test it and let me know if it works.

Thanks.
Previous 1 ... 3, 4, 5, 6, 7, 8 Next
80 posts Page 6 of 8
cron