Menu Assignment to other template do not work in 3.8.1

Everything to do with Joomla! 3.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.
Nodracol
Joomla! Apprentice
Joomla! Apprentice
Posts: 11
Joined: Fri Oct 06, 2017 6:48 pm

Menu Assignment to other template do not work in 3.8.1

Postby Nodracol » Fri Oct 06, 2017 7:05 pm

Just updated to Joomla 3.8.1 and trying to use the duplicate template feature with different styles. No problem creating the copies with different names but the style of both is defined by the original template Can't find a way to have two different styles. The duplicated template has it's own style but it is not picked up in the front end. Any help appreciated.

User avatar
jackrabbit
Joomla! Ace
Joomla! Ace
Posts: 1473
Joined: Thu May 21, 2009 3:12 am
Location: Florida
Contact:

Re: Cannot change style of duplicated template

Postby jackrabbit » Fri Oct 06, 2017 7:46 pm

I don't get that template duplication system. It just creates a duplicate database name of the template but not a copy of the folder and files so the changes made are those of the original.

It's best to manually make a copy of the entire template folder, then install with the Discover tool in Extensions Manager.
Reset Joomla super user password and username simply | http://cmsenergizer.com/website-energy- ... d-remotely

Nodracol
Joomla! Apprentice
Joomla! Apprentice
Posts: 11
Joined: Fri Oct 06, 2017 6:48 pm

Re: Cannot change style of duplicated template

Postby Nodracol » Sat Oct 07, 2017 11:49 am

Thanks for the tip. I'll try that and see what happens.

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

Re: Cannot change style of duplicated template

Postby Per Yngve Berg » Sat Oct 07, 2017 4:50 pm

Extensions->Templates->Templates, open the template and click the copy template button

It does copy the template to a new folder. It also creates a default style for the new template.

Nodracol
Joomla! Apprentice
Joomla! Apprentice
Posts: 11
Joined: Fri Oct 06, 2017 6:48 pm

Re: Cannot change style of duplicated template

Postby Nodracol » Sat Oct 07, 2017 4:56 pm

Yes it creates a copy of the original template in a new folder and with a default style. The problem is that this style is not picked up in the front end. It uses the style of the original template and no matter what I do to the User CSS or the template CSS it still doesn't see the new style

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

Re: Cannot change style of duplicated template

Postby Per Yngve Berg » Sat Oct 07, 2017 6:08 pm

It worked when I copied Protostar to test. Changed text to red in test-Default. Got red text in front-end.

What template are you copying? The path to the css files may be hard-coded in your template, so they are still loaded from the old folder. This is how Protostar loads css:

Code: Select all

// Add Stylesheets
JHtml::_('stylesheet', 'template.css', array('version' => 'auto', 'relative' => true));

// Check for a custom CSS file
JHtml::_('stylesheet', 'user.css', array('version' => 'auto', 'relative' => true));

Nodracol
Joomla! Apprentice
Joomla! Apprentice
Posts: 11
Joined: Fri Oct 06, 2017 6:48 pm

Re: Cannot change style of duplicated template

Postby Nodracol » Sat Oct 07, 2017 6:24 pm

I'm using protostar. I have even tried using a completely different template but the style is the same as the original. I think the problem is something to do with the fact that the original template is the default for all pages irrespective of template and I can't seem to change it

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

Re: Cannot change style of duplicated template

Postby Per Yngve Berg » Sat Oct 07, 2017 6:34 pm

Extensions->Templates->Styles
The default is marked with a yellow star. You can move it to another entry.

Nodracol
Joomla! Apprentice
Joomla! Apprentice
Posts: 11
Joined: Fri Oct 06, 2017 6:48 pm

Re: Cannot change style of duplicated template

Postby Nodracol » Sun Oct 08, 2017 4:17 pm

When I move the default style to another entry as you suggest for example to an entry in the new template then this new style is also applied to the original template. There seems to be no way I can have one style for the original template and another for the new template. The default style is applied to all pages irrespective of the template chosen.

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

Re: Cannot change style of duplicated template

Postby Per Yngve Berg » Sun Oct 08, 2017 4:24 pm

Open the Style. On the Details Tab it says what template the style is working on.

Nodracol
Joomla! Apprentice
Joomla! Apprentice
Posts: 11
Joined: Fri Oct 06, 2017 6:48 pm

Re: Cannot change style of duplicated template

Postby Nodracol » Mon Oct 09, 2017 5:59 pm

The style details for the template show the correct settings. Also when I look at the template preview in Templates (Customise) It shows the home page with all the correct styling. Its just not seeing it in the front end.

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

Re: Cannot change style of duplicated template

Postby Per Yngve Berg » Mon Oct 09, 2017 7:39 pm

Does it work when you set the Style as default, or is it Menu Assignment that do not work?

Nodracol
Joomla! Apprentice
Joomla! Apprentice
Posts: 11
Joined: Fri Oct 06, 2017 6:48 pm

Re: Cannot change style of duplicated template

Postby Nodracol » Tue Oct 10, 2017 5:10 pm

Yes it works when the style is put as default but then all pages change to this style, not just the ones in the duplicated template

Nodracol
Joomla! Apprentice
Joomla! Apprentice
Posts: 11
Joined: Fri Oct 06, 2017 6:48 pm

Re: Cannot change style of duplicated template

Postby Nodracol » Tue Oct 10, 2017 5:13 pm

Sorry, yes - it's the Menu Assignment that isn't working. The default template is used on all pages, even though we've assigned a different template to some of them. We also tried going into the menu settings and making sure the assignment is correct there too - it is. Thanks for the help

Nodracol
Joomla! Apprentice
Joomla! Apprentice
Posts: 11
Joined: Fri Oct 06, 2017 6:48 pm

Re: Cannot change style of duplicated template

Postby Nodracol » Wed Oct 11, 2017 8:46 pm

Its definitely the menu assignment that doesn't seem to be working. Any help much appreciated.
Thanks

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

Re: Menu Assignment to other template do not work in 3.8.1

Postby Per Yngve Berg » Thu Oct 12, 2017 4:45 am

Mod. Note: Changed the title to more reflect the issue.

There have been bugs with the menu assignments from time to time. Looks like this bug is back in 3.8.1.

Nodracol
Joomla! Apprentice
Joomla! Apprentice
Posts: 11
Joined: Fri Oct 06, 2017 6:48 pm

Re: Menu Assignment to other template do not work in 3.8.1

Postby Nodracol » Thu Oct 12, 2017 8:03 am

Thanks for the advice. Hope something comes up.

Nodracol
Joomla! Apprentice
Joomla! Apprentice
Posts: 11
Joined: Fri Oct 06, 2017 6:48 pm

Re: Menu Assignment to other template do not work in 3.8.1

Postby Nodracol » Fri Oct 13, 2017 6:08 pm

Has anyone got any ideas how to solve the menu assignment problem? I'm stuck!

Jaydot
Joomla! Apprentice
Joomla! Apprentice
Posts: 29
Joined: Sun Jun 04, 2017 12:11 pm

Re: Menu Assignment to other template do not work in 3.8.1

Postby Jaydot » Sat Oct 14, 2017 3:26 pm

Hi,
I'm not sure this will help, but I have a 3.8.1 sandbox site where I experiment with template modifications - see attachment.
I duplicate, copy, assign, remove, re-assign templates all the time there.
When I want to use a "new copy" of the template, I duplicate it, click on the style name, and assign it to any page using the "menu assignment" tab.
It all works flawlessly, front-end and back-end, so I don't believe it's a bug in 3.8.1...
By the way: I am a fanatical cache cleaner.
You do not have the required permissions to view the files attached to this post.


Return to “Templates for Joomla! 3.x”

Who is online

Users browsing this forum: No registered users and 7 guests