Conditionals, users and pages – which is best design approach
-
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.
- The topic ‘Conditionals, users and pages – which is best design approach’ is closed to new replies.