Hello,
I'm trying to show the "Comment" schema markup for replies, but only in Xenporta articles (that's to say, only in the template EWRporta_article_thread_view). My goal is to make Xenporta articles appear as standard articles to Google, totally differentiated from forum threads. Thanks to a custom mod, the "BlogPosting" schema for the main article is showing up instead of "DiscussionForumPosting", but now I'd like to mark replies to articles as Comments and get rid of "Person" schema inside articles.
I think I've located where to put the code: post_user_content macro under post_macros template. I'm using this conditional:
...but it does not render. I'm sure that's the place, because if I replace that conditional with any other text, I see it in every user reply as expected.
What am I doing wrong? Thank you!
I'm trying to show the "Comment" schema markup for replies, but only in Xenporta articles (that's to say, only in the template EWRporta_article_thread_view). My goal is to make Xenporta articles appear as standard articles to Google, totally differentiated from forum threads. Thanks to a custom mod, the "BlogPosting" schema for the main article is showing up instead of "DiscussionForumPosting", but now I'd like to mark replies to articles as Comments and get rid of "Person" schema inside articles.
I think I've located where to put the code: post_user_content macro under post_macros template. I'm using this conditional:
Code:
<xf:if is="$template == 'EWRporta_article_thread_view'">some schema.org code</xf:if>
...but it does not render. I'm sure that's the place, because if I replace that conditional with any other text, I see it in every user reply as expected.
What am I doing wrong? Thank you!