CMS Development

Giuseppe
Contributeur

Help with Listing Template

Résolue

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 Votes
1 Solution acceptée
Jsum
Solution
Conseiller clé

Help with Listing Template

Résolue

@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 }#}

Voir la solution dans l'envoi d'origine

2 Réponses
Jsum
Solution
Conseiller clé

Help with Listing Template

Résolue

@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
Contributeur

Help with Listing Template

Résolue

@Jsum

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

 

Many thanks

0 Votes