I'm trying to do a modification to Template display_contenttype_searchwidget_item_footer
Right now, on my homepage I have a preview of articles and latest forum activity in the left and center column of a three column page. In the footer for each, I'm trying to add the age of these but conditionally as to which age appears...
For topics, I'd like to show the last post date/time, but for articles, I want to only show the created time (not edits or comments)
Is there an easy way to do this in a conditional? I've tried a few different ideas, but can't land on something that would identify the search result as an article vs a topic.
Right now, on my homepage I have a preview of articles and latest forum activity in the left and center column of a three column page. In the footer for each, I'm trying to add the age of these but conditionally as to which age appears...
For topics, I'd like to show the last post date/time, but for articles, I want to only show the created time (not edits or comments)
Is there an easy way to do this in a conditional? I've tried a few different ideas, but can't land on something that would identify the search result as an article vs a topic.
Code:
<vb:if condition=" (this is a topic ) "> Last Activity: {vb:datetime {vb:raw conversation.lastcontent}} <vb:else /> {vb:datetime {vb:raw conversation.created}} </vb:if>
Comment