- a topic-specific description on each topic page (a different description for each topic page).
The support and the HubL Reference helped me a lot for the 3 first parts, but i have an issue for the last one, it seems the " {% if topic.name == ‘topic name’ %}" isn’t working. Here’s the code :
There shouldn’t be an issue using this type of logic, I have that condition many times before. You do have to watch for things like spelling, spacing, and captilization though because “smart marketing”, “Smart Marketing”, “smart-marketing”, and “Smart-Marketing” are not the same thing. I like to convert my variables to lower case:
{% if topic.name|lower == ''Topic Name"|lower %}
You should probably try to clean up with variables too:
{% set topic1 = "Topic Name 1" %}
{% set topic2 = "Topic Name 2" %}
{% set topic3 = "Topic Name 3" %}
{% set topic4 = "Topic Name 3" %}