G'day All,
I unsure where to put this, feel free to move it please.
I'm using a php template to generate pages from xhtml content on my web site. Some content is for members only, but most is for all. I don't want to duplicate pages when it's largely the same content. I want to split content so that some is viewable by guests and some by members.
Would someone please suggest a path to achieve this?
Thanking you in anticipation,
bladecatcher
splitting content
Moderator: General Moderators
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
Moved to PHP-Code
in my templating engine, I have something like this
and
Hope this clears it up.
in my templating engine, I have something like this
Code: Select all
$template->svar(array( 'LINK' => ($_SESSIONї'loggedin'] ? 'logout' : 'login'));Code: Select all
<a href="e;?goto=home"e;>Home</a> | <a href="e;?goto=members"e;>Members</a> | <a href="e;?goto=user&{LINK}"e;>{LINK}</a>Hope this clears it up.