CMS Development

lucas2
Participant

Blog HUBL Error

SOLVE

Hey need expert help, really need this today my live blog broken and newsletter scheduled for Today 6 am EST as I found one error not able to recognize what to do. If I remove this HUBL variable it works but no content are visible.

{{ content.post_list_content|safe|truncate(120, True, '...') }}

Can I get any clue or help, please? Really Appreciated.

0 Upvotes
1 Accepted solution
psdtohubspot
Solution
Key Advisor

Blog HUBL Error

SOLVE

Hi @lucas2 

As quick as I can see Syntax Error 

Your's Incorrect Syntax:
{{ content.post_list_content|safe|truncate(120, True, '...') }}

Replace with Correct Syntax :
{{ content.post_summary|striptags|truncate(120, True, '...') }}

As you mentioned only this line issue.

If this will not work, Please Paste the Entire Listing Code, I will execute and share with you the correct one.

Thanks!
Ajit
support@psdtohubspot.com

Please Mark this Solution Accepted if works for you 🙂 

View solution in original post

2 Replies 2
psdtohubspot
Solution
Key Advisor

Blog HUBL Error

SOLVE

Hi @lucas2 

As quick as I can see Syntax Error 

Your's Incorrect Syntax:
{{ content.post_list_content|safe|truncate(120, True, '...') }}

Replace with Correct Syntax :
{{ content.post_summary|striptags|truncate(120, True, '...') }}

As you mentioned only this line issue.

If this will not work, Please Paste the Entire Listing Code, I will execute and share with you the correct one.

Thanks!
Ajit
support@psdtohubspot.com

Please Mark this Solution Accepted if works for you 🙂 

lucas2
Participant

Blog HUBL Error

SOLVE

Hey Ajit,
Thank you so much for your quick help, Provided syntax worked.
Have a nice day. 

0 Upvotes