CMS Development

Giuseppe
Mitwirkender/Mitwirkende

Help with Listing Template

lösung

Hi there,

 

in my post listing template there is the following command {{ content.post_list_content|safe|truncatehtml(100, '..' , false) }} which allows the first lines of my posts to appear in the listing page. Is there any way to 'de-activate' the command (so that only the title of the post and the author will appear in the listing page) without deleting it (just in case in future I wish to re-insert it)?

Many thanks in advance.

Giuseppe

 

0 Upvotes
1 Akzeptierte Lösung
Jsum
Lösung
Autorität

Help with Listing Template

lösung

@Giuseppe,

You can comment it out.

{# {{ summary token }} #}

open bracket and hashtag, the HubL you want commented out, hashtag closing bracket. 

 

You can also do this:

{#{ summary token }#}

Lösung in ursprünglichem Beitrag anzeigen

2 Antworten
Jsum
Lösung
Autorität

Help with Listing Template

lösung

@Giuseppe,

You can comment it out.

{# {{ summary token }} #}

open bracket and hashtag, the HubL you want commented out, hashtag closing bracket. 

 

You can also do this:

{#{ summary token }#}
Giuseppe
Mitwirkender/Mitwirkende

Help with Listing Template

lösung

@Jsum

that is very kind of you as usual and your input is great and the comment works properly.

 

Many thanks

0 Upvotes