• This is the set-up:
    A few hundred static pages that serve as the skeleton for different types of basic structural information that does not change – but must be browsable for public use (without the need to log in).
    Two different logged-in user roles:
    * Users that add information – which will be added to the static pages. They select from the static pages the locations where information must be added, and which will then become static.
    * Users that select which information to use (some sort of personalisation), and served when they are logged in. They only see what the want/need to see after selection.
    Which is the best approach?
    1. Add the conditionals to the static pages – the conditionals might be complex
    2. Duplicate the static set for each user role and limited conditionals are required – less chance for messing it up
    I suspect #1 is the most elegant.
    The system is actually more complicated but the principle is the same.
    For a previous similar project we did this in PHP – I am new to WordPress and as it is much easier to duplicate/replicate I was wondering if #2 might not be a quicker method with the same result.

Viewing 2 replies - 1 through 2 (of 2 total)
  • No, the 2nd way creates duplicate content and does not make sense. Information should be accessible under one URL and not under several.

    In WordPress terms, I would recommend working with categories for posts. Users who are authorised assign posts to one or more categories. Visitors in the frontend then find the information relevant to them by using the category that interests them. This is WordPress standard and possible without further programming.

    Moderator bcworkz

    (@bcworkz)

    threadi’s suggestion sounds appropriate, I just want to emphasize the posts recommendation since you were talking about pages. WP pages do not have categories associated with them but posts do. It is possible to associate categories with pages with a bit of added code or a suitable plugin. It’s also possible to create other post types or taxonomies for any sort of data schema you might desire, again with added code or a suitable plugin. But if you want stay with the default WP features without further programming, posts and categories (and/or tags) should work for you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Conditionals, users and pages – which is best design approach’ is closed to new replies.