Open shoulders opened 5 years ago
Hello,
Couple of options here.
Thanks,
tracking code was example. perhaps I should of said CSS code. perhaps add and editor for the custom.css , custom.js, custom.scss directly in this section
I think this should be re-looked at
You could have another tab called 'Global Code' and this would be treated like a static variable in a PHP class.
You could also tie this in with editing custom.css, custom.scss and custom.js with in the template by making these files (+header.html) the repositories for the code
tracking code was example. perhaps I should of said CSS code. perhaps add and editor for the custom.css , custom.js, custom.scss directly in this section
You can edit files using Joomla's template system. remember, we want to offer the functionality but not re-invent the whell.
I think this should be re-looked at
You could have another tab called 'Global Code' and this would be treated like a static variable in a PHP class.
You could also tie this in with editing custom.css, custom.scss and custom.js with in the template by making these files (+header.html) the repositories for the code
Let's re-look at it. I have reopened the task.
I am just looking at this from an end (naive), user's point of view, he wouldn't know how to make sense of all this.
I completely understand butI think an end user who is using a template framework to build his site should know the difference between global and page specific rules. However I bet you guys have to deal with more end users than me. lol
Some Reasons for a global code tab
If this is not possible it is not a game changer and I could live without, but I could also use this feature at the same time.
You guys definately do not have to re-invent the wheel, if you did it probably would be well designed, like this framework. I might have point out a load of isses and features but it really is great and will make the transition to Joomla 4 very easy becasue of the naked/clean bootstrap code.
I dont know if this is going to be a real issue but I am just thinking ahead.
In the template options you have the custom code feature (which is brilliant) but it is per template style. As you can see in the image I have Google anayltics code in there. If I only every use one or 2 styles this will not be an issue. However if I then have 10 styles and for some reason I change the google anayltics or want to add another script I will have to add it 10 times.
This is not the end of the world and to be honest I will never do anything that complex but here are a few Ideas
Thanks