Feb 28, 2019 4:05 PM
Mar 8, 2019 8:29 PM
Hi @Jmc123,
Just wanted to add an alternative here, since I think I understand what you're trying to do, and I've done it before on other blogs. You could create a custom module that has a field for the topic listing summary. So long as it's on the post template, the data from that will be accessible on the listing pages.
Then within the listing template, you can check to see if you're on a topic listing page by using: {% if topic %} .
So if you want your custom summary to only appear on topic listings, you could do something like this:
{% if topic %} {# custom summary from custom module here #} {% else %} {{ content.post_summary }} {% endif %}
Once you publish a post with the custom summary from your custom module, you can use the Developer Info tab: https://designers.hubspot.com/docs/hubl/how-to-use-developer-info-on-cos-pages to find how to access the value for that field.
If you do decide to set this up and have trouble with it, let me know and I'll be happy to take a look.
- Leland
Leland ScanlanHubSpot Developer Support |
Mar 5, 2019 10:55 AM
Hi @Jmc123,
The link you refered leads to a 404 error. With that said, it sounds like you want a summary at the top of each page which could be done through a rich text module as opposed to putting in a token.
If I am misunderstanding what you are looking to accomplish, please let me know. The more details, screenshots and information you can provide, the better the Community can assist!
Thank you,
Jenny