Important announcements from CouchCMS team
79 posts Page 8 of 8
Previous 1 ... 4, 5, 6, 7, 8 Next
Hi KK,
When registering a new one repeatable-regions in template, (PHP 7.2.16) Couch show:

Code: Select all
Warning: count(): Parameter must be an array or an object that implements Countable in /home/evropest/domains/site.gr/panel/addons/repeatable/repeatable.php on line 142

Warning: Cannot modify header information - headers already sent by (output started at /home/evropest/domains/site.gr/panel/addons/repeatable/repeatable.php:142) in /home/evropest/domains/site.gr/panel/tags.php on line 1730

Warning: Cannot modify header information - headers already sent by (output started at /home/evropest/domains/site.gr/panel/addons/repeatable/repeatable.php:142) in /home/evropest/domains/site.gr/panel/tags.php on line 1730

Warning: Cannot modify header information - headers already sent by (output started at /home/evropest/domains/site.gr/panel/addons/repeatable/repeatable.php:142) in /home/evropest/domains/site.gr/panel/tags.php on line 1730

Warning: Cannot modify header information - headers already sent by (output started at /home/evropest/domains/site.gr/panel/addons/repeatable/repeatable.php:142) in /home/evropest/domains/site.gr/panel/tags.php on line 1730

Warning: Cannot modify header information - headers already sent by (output started at /home/evropest/domains/site.gr/panel/addons/repeatable/repeatable.php:142) in /home/evropest/domains/site.gr/panel/tags.php on line 1730

Warning: Cannot modify header information - headers already sent by (output started at /home/evropest/domains/site.gr/panel/addons/repeatable/repeatable.php:142) in /home/evropest/domains/site.gr/panel/tags.php on line 1730

Warning: Cannot modify header information - headers already sent by (output started at /home/evropest/domains/site.gr/panel/addons/repeatable/repeatable.php:142) in /home/evropest/domains/site.gr/panel/cms.php on line 320


The next step stack works normally, I'm begging you to fix it
Thanks
Hi Orbital,

Exactly which version of Couch are you using?
Please use v2.2 from GitHub and that shouldn't throw this warning.
KK, version is
k_cms_version: 2.2RC1 this is the latest version
k_cms_build: 20181213
k_cms_version: 2.2RC1 this is the latest version

That is very strange - I don't see any reason for the warning in v2.2 (the variable being used with count() *is* an array).
I'd like to take a look at this issue - if your site is online, could you please PM me your FTP+Couch creds?
@KK, any particular reason for cms:globals to always require 'masterpage' parameter? Why it has to be always bound to current template, instead of template in context?

Code: Select all
// Home-view of "template-without-globals.php"

<cms:pages masterpage='template-with-globals.php'>
 
    <cms:if k_paginated_bottom>
        <cms:show_globals masterpage=k_template_name>
        </cms:show_globals>
    </cms:if>

</cms:pages>


My Documentation, Addons, Functions.
Join COUCH:TALK telegram channel
@trendoman, that is to be consistent with the behavior of most other tags e.g. cms:pages, cms:folders etc.
Hi there :) Can we filter mosaic? For example we have custom_field parameter for cms:pages? I need something like this for mosaic tag.
I tried custom_field for mosaic but it didn't worked
@KK,

Is it possible to replace the Tiles names with icons ?

I was thinking about having icons like these (see below) instead of the names of the tiles, this way you could see visually what you are adding without having to implement the page builder feature.

Image
aleksandru wrote: @KK,

Is it possible to replace the Tiles names with icons ?

I was thinking about having icons like these (see below) instead of the names of the tiles, this way you could see visually what you are adding without having to implement the page builder feature.



I managed to achieve this by changing the field_mosaic.html template and checking for template names for the buttons section:

Code: Select all
           <cms:each templates as='template' startcount='1'>
            <a class="btn<cms:if template.deleted> disabled<cms:else /> popup-iframe</cms:if> " href="#" tabindex="<cms:show k_count />" data-mfp-src="<cms:show template.link />" data_mosaic_field="<cms:show k_field_input_id />" onclick="this.blur();" style="height: auto; padding: 6px;">
                <cms:if template.name = 'fpxl'><img src="addons/mosaic/theme/ico/full_page_cover_image_text.png" /></cms:if>
                <cms:if template.name = 'vid'><img src="addons/mosaic/theme/ico/video.png" /></cms:if>
                <cms:if template.name = 'imgxl'><img src="addons/mosaic/theme/ico/xl_image.png" /></cms:if>
                <cms:if template.name = 'imgvc'><img src="addons/mosaic/theme/ico/variable_size_centered_image.png" /></cms:if>
                <cms:if template.name = 'imgldetails'><img src="addons/mosaic/theme/ico/image_with_details.png" /></cms:if>
                <cms:if template.name = 'fpxl_2'><img src="addons/mosaic/theme/ico/full_page_cover_image.png" /></cms:if>
                <cms:if template.name = 'fpxl_boxed'><img src="addons/mosaic/theme/ico/xxl_image.png" /></cms:if>
                <cms:if template.name = 'tct'><img src="addons/mosaic/theme/ico/three_column_text.png" /></cms:if>
                <cms:if template.name = 'oct'><img src="addons/mosaic/theme/ico/one_column_text.png" /></cms:if>
            </a>
            </cms:each>


And also to display the same icons in the list, i added a new column in the table header and added the following in the body :
Code: Select all
                    <td class="col-contents">
                        <cms:if k_tile_name = 'fpxl'><img src="addons/mosaic/theme/ico/full_page_cover_image_text.png" /></cms:if>
                        <cms:if k_tile_name = 'vid'><img src="addons/mosaic/theme/ico/video.png" /></cms:if>
                        <cms:if k_tile_name = 'imgxl'><img src="addons/mosaic/theme/ico/xl_image.png" /></cms:if>
                        <cms:if k_tile_name = 'imgvc'><img src="addons/mosaic/theme/ico/variable_size_centered_image.png" /></cms:if>
                        <cms:if k_tile_name = 'imgldetails'><img src="addons/mosaic/theme/ico/image_with_details.png" /></cms:if>
                        <cms:if k_tile_name = 'fpxl_2'><img src="addons/mosaic/theme/ico/full_page_cover_image.png" /></cms:if>
                        <cms:if k_tile_name = 'fpxl_boxed'><img src="addons/mosaic/theme/ico/xxl_image.png" /></cms:if>
                        <cms:if k_tile_name = 'tct'><img src="addons/mosaic/theme/ico/three_column_text.png" /></cms:if>
                        <cms:if k_tile_name = 'oct'><img src="addons/mosaic/theme/ico/one_column_text.png" /></cms:if>
                    </td>


This will somewhat give a visual stimuly of what you are adding without having to remamber names or give extensive button names.

Image

I know the second part could be done with page builder but wanted something a little more simple and easy to implement.
Previous 1 ... 4, 5, 6, 7, 8 Next
79 posts Page 8 of 8
cron