I am pulling multiple sites into a new portal and have no issue connecting the site so that the content is displayed properly. I am trying to pull the first paragraph of content and then have the reader link back to the original article from the original site by clicking read more.
My problem arrives by trying to create a site variable.
For instance my code pulls from site=“site1|site2|site3”
How do I set the link path to choose the correct site/weblog/urltitle? I’ve tried a conditional statement but that didn’t work.
For example:
{exp:weblog:entries site="mac|a4p|a4t" weblog="awilt|shullfish|sgentry|apple|applereviews"
orderby="date" sort="desc" limit="1" sticky="off" disable="member_data|trackbacks"}
<a href="http://{site}/{weblog}/story/{url_title}}" class="link1"><em><b>Read More</b></em></a>
{/exp:weblog:entries}I’ve tried
<if site=="mac">info</if>
<if site=="a4p">info</if>however, that is not working either as it’s showing both “infos”
Any suggestions?
This question may be related to a resolved thread.