Hi all, had a problem I was hoping you could help with.
I'm trying to put the global news feed into another template for use on a different page. I have this code put into the template:
<div class="newsFeed">
<xen:include template="news_feed">
<xen:set var="$noContentHtml">{xenhrase news_feed_is_currently_empty}</xen:set>
</xen:include>
<div class="extra">
<xen:if is="{$visitor.user_id}"><a href="{xen:link account/news-feed}" class="button smallButton">{xenhrase your_news_feed}</a></xen:if>
</div>
<xen:include template="news_feed_end">
<xen:set var="$itemLoaderUrl">{xen:link recent-activity}</xen:set>
</xen:include>
<xen:include template="preview_tooltip" />
</div>
But it tells me that the news feed is empty, even though it's not when you go to url.com/recent-activity. I'm aware there needs to be a PHP callback but how do I do this? Would really appreciate it if someone could tell me what I need to do with the callback and also where to put the code please!
I'm trying to put the global news feed into another template for use on a different page. I have this code put into the template:
<div class="newsFeed">
<xen:include template="news_feed">
<xen:set var="$noContentHtml">{xenhrase news_feed_is_currently_empty}</xen:set>
</xen:include>
<div class="extra">
<xen:if is="{$visitor.user_id}"><a href="{xen:link account/news-feed}" class="button smallButton">{xenhrase your_news_feed}</a></xen:if>
</div>
<xen:include template="news_feed_end">
<xen:set var="$itemLoaderUrl">{xen:link recent-activity}</xen:set>
</xen:include>
<xen:include template="preview_tooltip" />
</div>
But it tells me that the news feed is empty, even though it's not when you go to url.com/recent-activity. I'm aware there needs to be a PHP callback but how do I do this? Would really appreciate it if someone could tell me what I need to do with the callback and also where to put the code please!