Forums

Dynamic content by user groups... (6 posts)

  1. richjohnhughes
    Member
    Posted 2 months ago #

    Not sure this is in the scope of Wordpress, so any help would be great.

    I'm currently building a site for a client who wants a number of members / user groups with different access rights to pages.

    so far so good - i can do this.

    the problem is - the pages will need to be dynamically populated depending on the user group / login.

    so the question is, can this be done, and could you point me in the right direction to look into it.

    many thanks for you help.

  2. MichaelH
    moderator
    Posted 2 months ago #

    One could consider Author Templates, but you may want to further explain what you mean with "dynamically populated".

  3. richjohnhughes
    Member
    Posted 2 months ago #

    ok thanks.

    for example......

    one user might see when logged in - in the nav, home, offers1, offers2 and contact us.

    where as another user would see - home, offers3, offers4 etc etc.

    thanks

  4. apljdi
    Member
    Posted 2 months ago #

    And all of this according to groups?

    You can easily group by role. Probably none of the default Roles will work for you because of the capability differences and because you'd only have a few to choose from. But you can create your own roles to organize your user groups. Near the bottom of the page already linked to there is a short list of Role Management plugins. I use 'Role Manager'-- no idea if it better or worse than the others but it works for me.

    Then, in your template switch the content according to the Role.

  5. richjohnhughes
    Member
    Posted 2 months ago #

    thank you apljdi.

    just been looking at role manager plugin and the like - i think that might work.

    can you expand further on

    "Then, in your template switch the content according to the Role. "

    many thanks

  6. apljdi
    Member
    Posted 2 months ago #

    You are going to have pages that "will need to be dynamically populated depending on the user group / login". In order to do that you are going to have to create a page template. Inside that template you'll have to have a series of 'if','if/else', or 'switch' statements (PHP code) that will determine which user/groups sees what.

Reply

You must log in to post.

About this Topic