I have a property portfolio page with different properties as children. This should be visible to all visitors (no problem here)
There also needs to be property-specific extras for people who are logged in as "investors" (role already created)
I'm just trying to think hierarchically the best way to go about this. I currently see two options but I'm hoping there are more, or that I'm missing something.
Option 1:
Create an Investors page and repeat the portfolio children underneath -
The downside of this I suppose is that the staff would had to add a property twice and repeat all the content?
Option 2:
Use same "Portfolio" and "Portfolio-entry" templates and then add permission-only content to these templates such as:
<?php if ($user->hasRole("investor") == 1) { ?>
// some code here...
<?php } ?>
This could be a better option but I'm wondering how cluttered the templates may get.
Would just be interested in your thoughts on how you may go about this?
Thanks!













