CMS Development

mediatown
メンバー | Diamond Partner
メンバー | Diamond Partner

Template problem with existing blog post after update

We have existing blog posts for a template. And we made edits to template recently. While all the new post to that blog using edited template is showing up the modification we made. But non of the older post uisng the same template is showing the modifications made. We have tested this multiple times to confirm we are not missing any stone unturned before asking here in forum. 

Check 2 links below using the same template. 

https://www.maugel.com/blog/this-is-test-article-added-by-mtm-team

https://www.maugel.com/blog/youve-found-the-perfect-site-now-what


Both are using the same template. The only update we made is adding topics / tags list just below the post body.. Earlier post link is posted after making the update, and it is showing the topics list. Later one not even though it has three topics assigned. 

We tried to overcome this by creating clone to existing modified template and assigning to post but that too didn't worked. Any thoughts into the same would be appreciated to resolve the issue. 

 

0 いいね!
4件の返信
tjoyce
名誉エキスパート | Elite Partner
名誉エキスパート | Elite Partner

Template problem with existing blog post after update

@mediatown - we may need to see the relevant HUBL code or template code.

0 いいね!
mediatown
メンバー | Diamond Partner
メンバー | Diamond Partner

Template problem with existing blog post after update

here is an excerpt from the template, rendering the post topics, we have added -

 

<div class="colmn-text common-text"> 
      <p>{{ content.post_body }}</p>
      {% if content.topic_list %}
      <br />
      <div style="border: solid 1px #eee; background: #f4f4f4; padding: 10px 15px; border-radius: 15px; color: #333d47;">
        <strong>Tags: </strong>
        {% for topic in content.topic_list %}
        	{% if loop.index > 1 %}, {% endif %}
        <a href="{{ blog_tag_url( group.id, topic.slug ) }}">{{ topic.name }}</a>
        {% endfor %}
      </div>
      {% endif %}
    </div>
0 いいね!
tjoyce
名誉エキスパート | Elite Partner
名誉エキスパート | Elite Partner

Template problem with existing blog post after update

@mediatown - after you content body, add 

{{content.topic_list|pprint}}

to make sure the topic list isn't empty. Then let us know what you find out.

0 いいね!
mediatown
メンバー | Diamond Partner
メンバー | Diamond Partner

Template problem with existing blog post after update

check the screenshot here - http://nimb.ws/6bpNfx

And this is article link - https://www.maugel.com/blog/youve-found-the-perfect-site-now-what

 

And I have added that code you mentioned in last reply.. Nothing came up even though topics are assigned. Actually non of changes made to this are reflecting at all.

0 いいね!