I have a site that has a public side and a member side. Each side of the site has its own news section. The only difference is that members can also read the public news. not vice versa.
I’m trying to find a way to show the news articles for both the public and member sections if a user is a logged in member. I have it working except for the permalink. I don’t know how to get it to show the members permalink.
Any help would be greatly appreciated.
{if logged_in}
{exp:channel:entries channel="news_members|news_public" limit="3"}
<h2>{title}</h2>
<p> <br />
{exp:word_limit total="20"}<br />
{public_news_body}<br />
{member_news_body}<br />
{/exp:word_limit}<br />
<br />
<a href="http://{title_permalink=">Continue Reading</a><br />
<br />
{/exp:channel:entries}<br />
<br />
{if:else}<br />
<br />
{exp:channel:entries channel="news_public" limit="3"}<br />
<br />
</p><h2>{title}</h2>
<p> <br />
{exp:word_limit total="20"}<br />
{public_news_body}<br />
{/exp:word_limit}<br />
<br />
<a href="http://{title_permalink=">Continue Reading</a><br />
<br />
{/exp:channel:entries}<br />
<br />
{/if}