Blog menu Choose layout Topic is solved

Everything to do with Joomla! 4.x templates and templating.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Post Reply
User avatar
ltempest
Joomla! Guru
Joomla! Guru
Posts: 584
Joined: Thu Aug 25, 2005 11:16 am
Location: Gloucester, UK
Contact:

Blog menu Choose layout

Post by ltempest » Thu Nov 24, 2022 12:32 pm

Help!
I have duplicated the blog.php files and created an override in my Cassiopeia template for the standard blog layouts:

/templates/cassiopeia_brutonknowleshome/html/com_content/category/execteam.php
/templates/cassiopeia_brutonknowleshome/html/com_content/category/execteam_item.php
/templates/cassiopeia_brutonknowleshome/html/com_content/category/execteam_children.php

I can see and select this in the Category settings as an option for the layout but it is not showing my overrides on the frontend.

I have a menu item for the Category blog and in the Options tab is the Choose Layout option but it does not show my new override.

Any ideas? How can I get my override to display for only this category.

Lee

User avatar
Pavel-ww
Joomla! Guru
Joomla! Guru
Posts: 791
Joined: Tue Jun 30, 2020 12:17 pm

Re: Blog menu Choose layout

Post by Pavel-ww » Thu Nov 24, 2022 1:04 pm

ltempest wrote:
Thu Nov 24, 2022 12:32 pm
/templates/cassiopeia_brutonknowleshome/html/com_content/category/execteam.php
Hi. For Category override it's not enough. You must also create via override a new type of menu item and make additional records to XML. Look at the J3 documentation. I think in J4 it remains the same.

This should work according to this principle - when you create a new menu item for a blog, you choose not a standard Category Blog menu item type, but a new menu item type, to which the new, overrided category was tied

User avatar
ltempest
Joomla! Guru
Joomla! Guru
Posts: 584
Joined: Thu Aug 25, 2005 11:16 am
Location: Gloucester, UK
Contact:

Re: Blog menu Choose layout

Post by ltempest » Thu Nov 24, 2022 1:32 pm

Ah yes I remember that process now, I thought it may have been changed / modified in J4.

For anyone else this video is very helpful and explains step by step:

https://www.[youtube].com/watch?v=iC3Yu-tlrMM


Post Reply

Return to “Templates for Joomla! 4.x”