CMS Development

Giuseppe
Colaborador(a)

Help with Listing Template

resolver

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 Avaliação positiva
1 Solução aceita
Jsum
Solução
Conselheiro(a) de destaque

Help with Listing Template

resolver

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

Exibir solução no post original

2 Respostas 2
Jsum
Solução
Conselheiro(a) de destaque

Help with Listing Template

resolver

@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
Colaborador(a)

Help with Listing Template

resolver

@Jsum

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

 

Many thanks

0 Avaliação positiva