Purpose of Joomla 4.1 Duplicate Template Style

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.
Locked
alan-donny
Joomla! Apprentice
Joomla! Apprentice
Posts: 37
Joined: Fri Apr 13, 2018 7:37 am

Purpose of Joomla 4.1 Duplicate Template Style

Post by alan-donny » Fri Feb 25, 2022 5:25 pm

Hi everyone,

I've been creating some Cassiopeia child templates today - what a great step forward in functionality!

However whilst looking at this I was trying to figure out what the Duplicate template style does.

In my case it appears to create only a copy of the style in the styles list but no additional files in the templates and media/templates folders.

Creating and testing a user.css in the duplicated style applies styling to the duplicated style and the Cassiopeia template it was duplicated from as when you open the duplicated style files and details view, all the folders show file paths to the original template's files.

Therefore, I'm missing some really obvious point, or perhaps my installation is broken.

Given that child templates exist now, could anyone tell me under what circumstances might the duplicate template style feature be used in Joomla 4.1?

User avatar
brian
Joomla! Master
Joomla! Master
Posts: 12787
Joined: Fri Aug 12, 2005 7:19 am
Location: Leeds, UK
Contact:

Re: Purpose of Joomla 4.1 Duplicate Template Style

Post by brian » Fri Feb 25, 2022 7:40 pm

A style is a saved set of options in a template.

For example with cassiopeia you can change the colour scheme

So if you want to have another colour scheme then you just create a new style.

A style only changes options
"Exploited yesterday... Hacked tomorrow"
Blog http://brian.teeman.net/
Joomla Hidden Secrets http://hiddenjoomlasecrets.com/

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 30920
Joined: Mon Oct 27, 2008 9:27 pm
Location: Romerike, Norway

Re: Purpose of Joomla 4.1 Duplicate Template Style

Post by Per Yngve Berg » Fri Feb 25, 2022 7:47 pm

The Template Styles work the same way it did in J3.

User avatar
brian
Joomla! Master
Joomla! Master
Posts: 12787
Joined: Fri Aug 12, 2005 7:19 am
Location: Leeds, UK
Contact:

Re: Purpose of Joomla 4.1 Duplicate Template Style

Post by brian » Fri Feb 25, 2022 7:56 pm

@per not everyone has used joomla 3 ;)
"Exploited yesterday... Hacked tomorrow"
Blog http://brian.teeman.net/
Joomla Hidden Secrets http://hiddenjoomlasecrets.com/

alan-donny
Joomla! Apprentice
Joomla! Apprentice
Posts: 37
Joined: Fri Apr 13, 2018 7:37 am

Re: Purpose of Joomla 4.1 Duplicate Template Style

Post by alan-donny » Mon Feb 28, 2022 10:31 am

Brian, Per

I'm not sure I fully grasp the purpose of it in J4.1 with the arrival of child themes but I can now understand how it would be used.

Thank you though for the explanation.

jeabramian
Joomla! Apprentice
Joomla! Apprentice
Posts: 17
Joined: Tue Jun 21, 2022 6:02 pm

Re: Purpose of Joomla 4.1 Duplicate Template Style

Post by jeabramian » Fri Jun 24, 2022 5:02 pm

Hello everybody,

Is there any way to copy the template itself, not just the style? I want to make a new template based on Cassiopeia, so I duplicated the style. But as I read above, this seems to copy a set of options. Instead, I'd like a different template so I do not mess up anything from the original one. Help will be appreciated.

herb200mph
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 3592
Joined: Sun Jun 25, 2006 12:12 am
Location: Salisbury, NC/USA (N. of Charlotte)
Contact:

Re: Purpose of Joomla 4.1 Duplicate Template Style

Post by herb200mph » Fri Jun 24, 2022 6:09 pm

We have found that NicePage is a great solution for bespoke template and page layouts, with many features not found in canned templates. There are also a bunch of pagebuilders that create individual page layouts. Either one of these actually over-shadow the cassi-child template feature, which really doesn't do much insofar as layouts and configurations go, but does allow changes in the visuals through css.

P.S. We are not paid evangelicals for NicePage or any other similar program, but only make this reference to identify an alternative to the "child" templates, whose function is grossly understood.
Author: Joomla! 5: Boots on the Ground, Volume 1 @ Amazon.com
Author: Joomla! 4: BASIC TRAINING - Boots on the Ground @ Amazon.com
Joomla! Magazine - https://magazine.joomla.org/all-issues/ ... c-training

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 30920
Joined: Mon Oct 27, 2008 9:27 pm
Location: Romerike, Norway

Re: Purpose of Joomla 4.1 Duplicate Template Style

Post by Per Yngve Berg » Fri Jun 24, 2022 8:43 pm

In J4.1 you can make child templates.

This Joomla Magazine article explained it

https://magazine.joomla.org/all-issues/ ... -templates

gws
Joomla! Champion
Joomla! Champion
Posts: 5944
Joined: Tue Aug 23, 2005 1:56 pm
Location: South coast, UK
Contact:

Re: Purpose of Joomla 4.1 Duplicate Template Style

Post by gws » Sat Jun 25, 2022 7:20 am



Locked

Return to “Templates for Joomla! 4.x”