Conditional additions to a detail page

3 posts by 2 authors in: Forums > CMS Builder
Last Post: November 24, 2010   (RSS)

I'm trying to create an 'articles' section, where some visitors will have access to the articles and others will not, depending on whether they belong to certain categories of membership (which is all specified within some forum software which pretty much controls our site).

So the way we do this at present is to have the whole page consisting of an if-then-else PHP statement:

"If this person is logged in and falls into this category of member, then generate the whole of the rest of the page (the article), otherwise re-direct to an apology page"

I'm having trouble fitting this into the CMS-B system, but hopefully I'm just not seeing it right. What I'd like to do is have the person preparing the article be able to select from a drop down, 'Visitor's article' or 'Member's article', and for the page to be generated with or without the PHP if-then-else code at the top and bottom of the detail page.

Is it possible to do that?

Regards, Steve

Re: [Jason] Conditional additions to a detail page

Thanks Jason (and sorry for the delay in replying - lost track of the post).