-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Template Customization Doesn't Apply #12651
Comments
Caused by #12395. |
I can not confirm this with the latest staging Please can you reconfirm This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/12651. |
It still doesn't seem to work for me. I pull from staging, go through initial set-up, and then immediately go over to Template > Styles > protostar - Default > Edit Style. I change the Template Colour and Fluid Layout, Save, but the changes don't take effect on the main site. |
Can you please double check that there is no JS cached? |
How could I check? I don't have the cache enabled from Global Configuration in Joomla so I'm not certain if JS would be cached from there. I've done a full page refresh (Ctrl + F5) but it didn't change anything. |
If you use chrome you can disable caching in the development console. |
Ah; nope disabling caching from the browser doesn't seem to change anything. |
Ah, I figured it out; it looks like there's no menus assigned by-default for the theme to affect. If I assign it to the Main Menu, changes apply without issue. |
Glad you worked it out. |
This is still incorrect. Please reopen. |
I still cannot replicate this On 1 November 2016 at 13:39, SharkyKZ [email protected] wrote:
Brian Teeman |
If you can show how that's the issue I'd be glad to look further. But |
To replicate, do a fresh install of staging or 3.7. Change some param in Protostar style. See that nothing actually changes. None of the params work. Var dump of
after PR:
A stdClass object named data is added and params are now contained within it. |
This might be a case similar to one Thomas identified where an existing Registry object is being bound to another one, which can cause issues. Especially as the Registry constructor has logic to handle objects (which IIRC is triggered before the string handling code). So not necessarily an issue with that PR, but it exposes we have some cases where we are taking an existing Registry, converting it to a string, then loading it into a new Registry. Woefully inefficient. |
Whatever it is, it's a release blocker. |
I still don't understand how to replicate this
|
Hint: router |
I don't think it's the router, I'm honestly not sure how to replicate it either. I do get the feeling though it's within Since the foreach loop inside that blob modifies each object by reference, it's possible that the Now, with that said, there's also an off chance something that calls |
With a clean-install of Joomla 3.6.4 and git releases prior to maybe a few weeks ago, Protostar would be selected by-default, and any changes applied to it would just-work without having to do anything else. And in my case, switching to Purity III template, I'd just click the Star in ACP. Under the template's Assign menu, no items are checked by-default, but this doesn't seem to matter (changes still apply site-wide). With current git Joomla, the template isn't applied to any menu items by default, and clicking the Star to use a specific template doesn't just-work either. I have to also go under the template's configuration, go under Assignment, and select the menu items I want to have affected. |
If a template is marked as Default it does not need to be assigned to anything not should it be. Default means it is assigned to everything. You only assign a template to a menu item if you want to override the default template for that specific menu item Stating all of that I still cannot replicate the issue reported here of changes to a style not being used. Please provide step by step instructions how a change made to a template style is not presented on a site when that template style is either the default template or a template assigned to a specific menu. At this time as it is completely unclear what this issue is I am removing the "release-blocker" tag. |
(oops someone beat me to that tag removal) |
Hi! I have some problem with styling T3 template after update to J3.6.4. All my styles of site for different menu - default. This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/12651. |
It is happening because we are modifying $templates to add 1 more element to the loop, that is the: https://github.com/joomla/joomla-cms/blob/staging/libraries/cms/application/site.php#L488 Thus the foreach loop will do 1 more execution for the newly added array element, but parameters are already an object. I think my PR: #12688 fixes it |
Closing as there is a PR. Thanks! |
Hmmm... I have not changed with the latest madifications in #12688. All T3 templates have default settings |
They may have similar problem like what my PR fixes in their custom code |
Steps to reproduce the issue
Expected result
Actual result
System information (as much as possible)
Additional comments
The text was updated successfully, but these errors were encountered: