Can I assign a Gantry 5 outline to a category

by glenatron   Last Updated April 02, 2017 19:10 PM

The site I am working with has a lot of subscriber-only content which is accessed through a set of categories associated with permission groups. Items that are subscriber-only don't currently appear on regular menus so they aren't visible on the Assignments menu in the Gantry theme.

Is there a way to assign an outline to all Articles in a category?



Answers 2


You should be able to create a category blog menu item and assign the outline to that. I believe it should apply to the articles within that category.

YellowWebMonkey
YellowWebMonkey
April 03, 2017 16:25 PM

1. Advanced Template Manager

My first suggestion here would be the Advanced Template Manager by Regular Labs.

It gives full control on how you can assign templates. It covers Joomla content by articles, categories, page types... or for you case, the pro version provides option to assign template by User Groups or Users IDs.

So for example, you could set a specific template for your members/registered users.

Note: Test the free version first to see if it works well with gantry5, before deciding to go for the Pro version.


2. Be creative with core template manager

Alternatively, using the core template manager this is another idea that could work (depending on how your whole website is configured).

Set as default template the one that you want to assign to those pages that don't have a menu item, and then assign your other templates on those pages that have a menu item.


3. Custom Plugin

Finally, there is the custom route. Create a simple system plugin which will detect the category of the current page - you could use something like the onAfterInitialise event - and set the desired template according to your liking. You could even check for the current user/usergroup - or mix both category and user checks.

FFrewin
FFrewin
April 04, 2017 07:12 AM

Related Questions



Inject HTML overrides in admin Template

Updated June 22, 2016 08:04 AM

Joomla 3.4 Admin Template Override

Updated May 17, 2015 21:04 PM