How to create a custom category layout

For Joomla! 4.x Coding related discussions, you could also use: http://groups.google.com/group/joomla-dev-general

Moderators: ooffick, 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.
Locked
supplyingdirect
Joomla! Apprentice
Joomla! Apprentice
Posts: 13
Joined: Mon Nov 29, 2021 3:50 pm

How to create a custom category layout

Post by supplyingdirect » Tue Jan 18, 2022 12:42 pm

Hi all!

We've almost finished our website but am struggling with our filter and search module we use (break designs extension/plugin). When we use the search feature, it returns the Virtuemart category layout first and then underneath shows the search result. We don't want the category layout to show when searching, we've been told that we would need to create a custom category layout so we can use that as the search results layout. Does anyone know how to do this/if this is correct/. if there's an easier way to make sure the category layout doesn't show on top of search results?

I have tried playing about with VM category settings but nothing seems to work so I must be missing something!

http://timb114.sg-host.com/home

Would appreciate any help!

User avatar
ltheme
Joomla! Guru
Joomla! Guru
Posts: 666
Joined: Wed Dec 04, 2013 2:43 pm
Location: US
Contact:

Re: How to create a custom category layout

Post by ltheme » Thu Jan 20, 2022 1:33 pm

You can use HTML override, following this guide https://docs.joomla.org/How_to_override ... omla!_core
Steve (Mr.) - Fan of Joomla! CMS over 10 years
https://ltheme.com/joomla-templates/ <= 250+ Joomla! templates
https://agethemes.com/free-joomla-templates/ <= Joomla! templates on marketplace
^Compatible with Joomla! 3.x, Joomla! 4.x and Joomla! 5.x

supplyingdirect
Joomla! Apprentice
Joomla! Apprentice
Posts: 13
Joined: Mon Nov 29, 2021 3:50 pm

Re: How to create a custom category layout

Post by supplyingdirect » Thu Jan 20, 2022 5:07 pm

Hi there, I have now created a custom category layout for the search results but it is recoding the xml file which I am really struggling with.

Do you know where I can find any help on editing coding in xml file so that the layout only shows the search results and not the vm category on top?

User avatar
ltheme
Joomla! Guru
Joomla! Guru
Posts: 666
Joined: Wed Dec 04, 2013 2:43 pm
Location: US
Contact:

Re: How to create a custom category layout

Post by ltheme » Fri Jan 21, 2022 2:13 am

Hello,

For HTML override, you only work with front-end template layout, it's view - display file, do not change with XML or model functions. You can read some topic from Virtuemart forum with HTML override title such as https://forum.virtuemart.net/index.php?topic=130065.0
Steve (Mr.) - Fan of Joomla! CMS over 10 years
https://ltheme.com/joomla-templates/ <= 250+ Joomla! templates
https://agethemes.com/free-joomla-templates/ <= Joomla! templates on marketplace
^Compatible with Joomla! 3.x, Joomla! 4.x and Joomla! 5.x


Locked

Return to “Joomla! 4.x Coding”