1

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?

1

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.

1

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.