omygoodness
8 years agoMentor
Adding conditions in layouts
Is there a way to add IF condition to layouts? I would like to modify layout of viewprofilepage and create two separate views in one layout:
1) view that is visible only for user lets call it "private profile" where I would like to hide side content and set rest of content to 100% width
2) view that is visible for all users lets call it "public profile" where I would like to show side content with contact and status informations.
For now both views are using same layout viewprofilepage and in private view sidebar is empty but still has width.