Head flexibility really needed
Moderator: General Support Moderators
Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
- masterchief
- Joomla! Hero
- Posts: 2247
- Joined: Fri Aug 12, 2005 2:45 am
- Location: Brisbane, Australia
- Contact:
Re: Head flexibility really needed
It's a bit of both, but I'd go with tcp. It's more in the realm of template designers and there are workarounds to the issue. They are the ones that are going to be poking around with this mostly.
Andrew Eddie - Tweet @AndrewEddie
<><
http://eddify.me
http://www.kiva.org/team/joomla - Got Joomla for free? Pay it forward and help fight poverty.
<><
http://eddify.me
http://www.kiva.org/team/joomla - Got Joomla for free? Pay it forward and help fight poverty.
- Jenny
- Joomla! Champion
- Posts: 6206
- Joined: Sun Aug 21, 2005 2:25 pm
- Contact:
Re: Head flexibility really needed
Perhaps it shouldn't be in template overrides? It goes beyond the scope of that by having to modify (or ignore/create a replacement as in your example) the core file. It also changes what the standard practice of how you call the head information into your template is (also by using your example). Confusing to say the least.
Co-author of the Official Joomla! Book http://officialjoomlabook.com
Marpo Multimedia http://marpomultimedia.com
Marpo Multimedia http://marpomultimedia.com
- masterchief
- Joomla! Hero
- Posts: 2247
- Joined: Fri Aug 12, 2005 2:45 am
- Location: Brisbane, Australia
- Contact:
Re: Head flexibility really needed
Well, it could go up one I guess.
Andrew Eddie - Tweet @AndrewEddie
<><
http://eddify.me
http://www.kiva.org/team/joomla - Got Joomla for free? Pay it forward and help fight poverty.
<><
http://eddify.me
http://www.kiva.org/team/joomla - Got Joomla for free? Pay it forward and help fight poverty.
- Jenny
- Joomla! Champion
- Posts: 6206
- Joined: Sun Aug 21, 2005 2:25 pm
- Contact:
Re: Head flexibility really needed
Is there a core hack/workaround forum area that might be more fitting?
Co-author of the Official Joomla! Book http://officialjoomlabook.com
Marpo Multimedia http://marpomultimedia.com
Marpo Multimedia http://marpomultimedia.com
- masterchief
- Joomla! Hero
- Posts: 2247
- Joined: Fri Aug 12, 2005 2:45 am
- Location: Brisbane, Australia
- Contact:
Re: Head flexibility really needed
Well, it's not really a core hack because the designer is applying this within the template and not touching the core code. It's more akin to "if you really want to do this, here's how to do it the long way by emulating what the core method would do". Just move it up one level. There's really no other specific area for it in the 1.5 sub-tree.
Andrew Eddie - Tweet @AndrewEddie
<><
http://eddify.me
http://www.kiva.org/team/joomla - Got Joomla for free? Pay it forward and help fight poverty.
<><
http://eddify.me
http://www.kiva.org/team/joomla - Got Joomla for free? Pay it forward and help fight poverty.
- Jenny
- Joomla! Champion
- Posts: 6206
- Joined: Sun Aug 21, 2005 2:25 pm
- Contact:
Re: Head flexibility really needed
Moving up one forum level. Thanks Andrew!
Co-author of the Official Joomla! Book http://officialjoomlabook.com
Marpo Multimedia http://marpomultimedia.com
Marpo Multimedia http://marpomultimedia.com
-
- Joomla! Apprentice
- Posts: 6
- Joined: Thu Dec 14, 2006 6:51 pm
Re: Head flexibility really needed
I'm wondering if a core change is needed, for example Google requres a META Tag insertion for verification of site ownership
Please let me know if there is another easy way to do this?
Please let me know if there is another easy way to do this?
- Jenny
- Joomla! Champion
- Posts: 6206
- Joined: Sun Aug 21, 2005 2:25 pm
- Contact:
Re: Head flexibility really needed
You can just add that META tag in your template file, in the head.
Co-author of the Official Joomla! Book http://officialjoomlabook.com
Marpo Multimedia http://marpomultimedia.com
Marpo Multimedia http://marpomultimedia.com
-
- Joomla! Apprentice
- Posts: 8
- Joined: Wed Jan 21, 2009 11:44 pm
Re: Head flexibility really needed
I have the same problem i just put the meta line into the html code and google can't read it i received an error like this We weren't able to verify your site. Did you add the meta tag to the following URLbryankaran wrote:I'm wondering if a core change is needed, for example Google requres a META Tag insertion for verification of site ownership
Please let me know if there is another easy way to do this?
I don't know why?
Can give any information whre can i find the file head.php or the file tha tdefines the order to present the meta tags i can't find it.
Thanks for your help
-
- Joomla! Apprentice
- Posts: 47
- Joined: Sat Jan 27, 2007 8:13 am
- Contact:
Re: Head flexibility really needed
So what exactly has happened with this thread? I just read the whole thing and it all makes sense but has it become a reality? I think it would be nice instead of having it in the system folder to have it in each template's html folder.
For example, I am currently building an iphone template for my site. I does need all of the mootools bells and whistles that currently load. I would like to make the load time as fast as possible because it is on a mobile handset.
So basically I would like to overload it there and not have everything load... only the important things. It would be an easy core hack with some template name checking and if statements but if i can make it an override, it would make it easy to release the template as a whole package for people and to reuse it myself from site to site.
Please let me know where this has gone and if i can help. THANKS
For example, I am currently building an iphone template for my site. I does need all of the mootools bells and whistles that currently load. I would like to make the load time as fast as possible because it is on a mobile handset.
So basically I would like to overload it there and not have everything load... only the important things. It would be an easy core hack with some template name checking and if statements but if i can make it an override, it would make it easy to release the template as a whole package for people and to reuse it myself from site to site.
Please let me know where this has gone and if i can help. THANKS
-
- Joomla! Apprentice
- Posts: 47
- Joined: Sat Jan 27, 2007 8:13 am
- Contact:
Re: Head flexibility really needed
I know this is sloppy but i placed the above code directly into the template and commented the parts I did not need right now. I left out the standard joomla head tag and thats that... works like a charm and without errors.
I know this is not the best fix but for all the people who read this thread and are perhaps on a level of basic understanding of joomla, they can still use this and not be held up for hours as we all have been once upon a time with dev.
Thank you everyone for the help here. please visit my site on your iphone and let me know what you think. I hope to release the template soon.
I know this is not the best fix but for all the people who read this thread and are perhaps on a level of basic understanding of joomla, they can still use this and not be held up for hours as we all have been once upon a time with dev.
Thank you everyone for the help here. please visit my site on your iphone and let me know what you think. I hope to release the template soon.
-
- Joomla! Fledgling
- Posts: 2
- Joined: Sun May 09, 2010 6:36 pm
Re: Head flexibility really needed
I hope that someday there would be a backend for choosing/adding frontend javascript frameworks without conflicts.
I agree with the topic. Flexibility is really needed.
I agree with the topic. Flexibility is really needed.
-
- Joomla! Intern
- Posts: 50
- Joined: Thu Jan 14, 2010 2:06 am
Re: Head flexibility really needed
Really we need a flexibility head
- griiettner
- Joomla! Intern
- Posts: 97
- Joined: Wed Nov 19, 2008 7:25 pm
- Location: NYC
- Contact:
Re: Head flexibility really needed
Man... this topic is up since 2007 and apears that nobody from Joomla! Core really took it in consideration.
Like some foks up there are saying.. Fleibility is important...
I do think, that, we.. designers. must have control of the heading and head.php file inside the template/template_name/html folder is the best solution for this matter.
Jick made his point and I tottaly agree with him and I miss this function
Like some foks up there are saying.. Fleibility is important...
I do think, that, we.. designers. must have control of the heading and head.php file inside the template/template_name/html folder is the best solution for this matter.
Jick made his point and I tottaly agree with him and I miss this function
-
- Joomla! Apprentice
- Posts: 14
- Joined: Thu Oct 15, 2009 2:12 pm
Re: Head flexibility really needed
I totally agree with you griiettner. Joomla 1.6 has the same issue!
I need to change head information and hardcoded sux.
I need to change head information and hardcoded sux.
-
- Joomla! Apprentice
- Posts: 27
- Joined: Sat Mar 27, 2010 7:12 am
Re: Head flexibility really needed
I REALLY need to change the order in which the title, description and keywords show in the head tags. My website went from #3 on Google to noweher to be found because of the way the head tags are arranged. Is there a solution to fiox the way the head tags are arranged??
-
- Joomla! Enthusiast
- Posts: 233
- Joined: Tue Nov 25, 2008 7:10 pm
Re: Head flexibility really needed
Hello,
Just wanted to add my voice to this discussion.
When I first started using Joomla three years ago, I was still learning about overall site structure. Now that I have more awareness of how sites are designed and structured, I'm finding often that it is more complicated than I like to implement the kinds of things mentioned in this discussion.
Other CMSs, like ExpressionEngine and MODx, have more "open" flexibility, but they don't have the powerful range of extensions we see for Joomla. What I want (and I think others want as well) is to have the power of Joomla, but weave in more of the flexibility.
I'm feeling this every day now in my design work. (I'm also starting to feel this in template structures, which is another related matter.)
Glad to know I'm not along in this!
Thanks,
Matthew
Just wanted to add my voice to this discussion.
When I first started using Joomla three years ago, I was still learning about overall site structure. Now that I have more awareness of how sites are designed and structured, I'm finding often that it is more complicated than I like to implement the kinds of things mentioned in this discussion.
Other CMSs, like ExpressionEngine and MODx, have more "open" flexibility, but they don't have the powerful range of extensions we see for Joomla. What I want (and I think others want as well) is to have the power of Joomla, but weave in more of the flexibility.
I'm feeling this every day now in my design work. (I'm also starting to feel this in template structures, which is another related matter.)
Glad to know I'm not along in this!
Thanks,
Matthew
-
- Joomla! Apprentice
- Posts: 27
- Joined: Sat Mar 27, 2010 7:12 am
Re: Head flexibility really needed
Agreed!! I think Joomla has a couple years to go before it will be perfected (for the most part anyway).
-
- Joomla! Apprentice
- Posts: 10
- Joined: Mon Feb 22, 2010 6:08 pm
Re: Head flexibility really needed
I don't know if this will help anyone, but I have just found that I can modify the header using unset, then replacing the array information.
However once you unset the _scripts, you will need to replace it with another javascript file, because the header file will error out.
I hope this helps!
Also maybe if the header core file could have some type of conditional statement a to allow you to unset things that you wont be using. That would allow designers to get around styling and script files that they don't plan to use without having to hack the core.
Code: Select all
unset($this->_scripts);
$this->_scripts["the path to your javascript file"] = "text/javascript";
I hope this helps!
Also maybe if the header core file could have some type of conditional statement a to allow you to unset things that you wont be using. That would allow designers to get around styling and script files that they don't plan to use without having to hack the core.
Chill Technologies
Sit back and chill, We're here to help
Sit back and chill, We're here to help
-
- Joomla! Intern
- Posts: 74
- Joined: Tue Jul 11, 2006 8:17 pm
Re: Head flexibility really needed
I really would vote for that. The best way would be via a kind of template overwrite I think.
- RustyJoomla
- Joomla! Explorer
- Posts: 409
- Joined: Wed Aug 01, 2007 12:08 am
- Location: UK
- Contact:
Re: Head flexibility really needed
This is something I'd really love to see in Joomla 3.x, any future plans?
I've just found this, which I think is a great start:
https://gist.github.com/proweb/4634662
I've just found this, which I think is a great start:
https://gist.github.com/proweb/4634662