Head flexibility really needed

Everything to do with Joomla! 1.5 templates and templating.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
User avatar
masterchief
Joomla! Hero
Joomla! Hero
Posts: 2247
Joined: Fri Aug 12, 2005 2:45 am
Location: Brisbane, Australia
Contact:

Re: Head flexibility really needed

Post by masterchief » Thu Nov 29, 2007 3:28 am

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.

User avatar
Jenny
Joomla! Champion
Joomla! Champion
Posts: 6206
Joined: Sun Aug 21, 2005 2:25 pm
Contact:

Re: Head flexibility really needed

Post by Jenny » Thu Nov 29, 2007 4:36 am

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

User avatar
masterchief
Joomla! Hero
Joomla! Hero
Posts: 2247
Joined: Fri Aug 12, 2005 2:45 am
Location: Brisbane, Australia
Contact:

Re: Head flexibility really needed

Post by masterchief » Thu Nov 29, 2007 5:20 am

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.

User avatar
Jenny
Joomla! Champion
Joomla! Champion
Posts: 6206
Joined: Sun Aug 21, 2005 2:25 pm
Contact:

Re: Head flexibility really needed

Post by Jenny » Thu Nov 29, 2007 5:25 am

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

User avatar
masterchief
Joomla! Hero
Joomla! Hero
Posts: 2247
Joined: Fri Aug 12, 2005 2:45 am
Location: Brisbane, Australia
Contact:

Re: Head flexibility really needed

Post by masterchief » Thu Nov 29, 2007 5:30 am

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.

User avatar
Jenny
Joomla! Champion
Joomla! Champion
Posts: 6206
Joined: Sun Aug 21, 2005 2:25 pm
Contact:

Re: Head flexibility really needed

Post by Jenny » Thu Nov 29, 2007 6:53 am

Moving up one forum level.  Thanks Andrew! :)
Co-author of the Official Joomla! Book http://officialjoomlabook.com
Marpo Multimedia http://marpomultimedia.com

bryankaran
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Thu Dec 14, 2006 6:51 pm

Re: Head flexibility really needed

Post by bryankaran » Fri Dec 21, 2007 12:22 am

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?

User avatar
Jenny
Joomla! Champion
Joomla! Champion
Posts: 6206
Joined: Sun Aug 21, 2005 2:25 pm
Contact:

Re: Head flexibility really needed

Post by Jenny » Fri Dec 21, 2007 12:31 am

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

papotico
Joomla! Apprentice
Joomla! Apprentice
Posts: 8
Joined: Wed Jan 21, 2009 11:44 pm

Re: Head flexibility really needed

Post by papotico » Mon Jun 22, 2009 7:57 pm

bryankaran 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 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 URL

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

trgraglia
Joomla! Apprentice
Joomla! Apprentice
Posts: 47
Joined: Sat Jan 27, 2007 8:13 am
Contact:

Re: Head flexibility really needed

Post by trgraglia » Sat Dec 26, 2009 8:15 pm

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

trgraglia
Joomla! Apprentice
Joomla! Apprentice
Posts: 47
Joined: Sat Jan 27, 2007 8:13 am
Contact:

Re: Head flexibility really needed

Post by trgraglia » Sat Dec 26, 2009 9:07 pm

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.

ChaosPower
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Sun May 09, 2010 6:36 pm

Re: Head flexibility really needed

Post by ChaosPower » Mon May 10, 2010 6:21 pm

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.

gonzela2006
Joomla! Intern
Joomla! Intern
Posts: 50
Joined: Thu Jan 14, 2010 2:06 am

Re: Head flexibility really needed

Post by gonzela2006 » Tue Jul 06, 2010 1:40 pm

Really we need a flexibility head
??? ??? ??? ???

User avatar
griiettner
Joomla! Intern
Joomla! Intern
Posts: 97
Joined: Wed Nov 19, 2008 7:25 pm
Location: NYC
Contact:

Re: Head flexibility really needed

Post by griiettner » Tue Dec 14, 2010 9:26 pm

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

proveyourself
Joomla! Apprentice
Joomla! Apprentice
Posts: 14
Joined: Thu Oct 15, 2009 2:12 pm

Re: Head flexibility really needed

Post by proveyourself » Wed Feb 02, 2011 12:12 pm

I totally agree with you griiettner. Joomla 1.6 has the same issue!
I need to change head information and hardcoded sux. :)

acreativepage
Joomla! Apprentice
Joomla! Apprentice
Posts: 27
Joined: Sat Mar 27, 2010 7:12 am

Re: Head flexibility really needed

Post by acreativepage » Thu Feb 17, 2011 12:09 pm

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??

MatthewSchenker
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 233
Joined: Tue Nov 25, 2008 7:10 pm

Re: Head flexibility really needed

Post by MatthewSchenker » Thu Feb 17, 2011 12:47 pm

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

acreativepage
Joomla! Apprentice
Joomla! Apprentice
Posts: 27
Joined: Sat Mar 27, 2010 7:12 am

Re: Head flexibility really needed

Post by acreativepage » Fri Feb 18, 2011 1:59 am

Agreed!! I think Joomla has a couple years to go before it will be perfected (for the most part anyway).

chillweb
Joomla! Apprentice
Joomla! Apprentice
Posts: 10
Joined: Mon Feb 22, 2010 6:08 pm

Re: Head flexibility really needed

Post by chillweb » Wed Jul 06, 2011 5:03 pm

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.

Code: Select all

unset($this->_scripts);
$this->_scripts["the path to your javascript file"] = "text/javascript";
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. :D
Chill Technologies
Sit back and chill, We're here to help

Biomehaniker
Joomla! Intern
Joomla! Intern
Posts: 74
Joined: Tue Jul 11, 2006 8:17 pm

Re: Head flexibility really needed

Post by Biomehaniker » Sun Jun 10, 2012 10:18 pm

I really would vote for that. The best way would be via a kind of template overwrite I think.

User avatar
RustyJoomla
Joomla! Explorer
Joomla! Explorer
Posts: 409
Joined: Wed Aug 01, 2007 12:08 am
Location: UK
Contact:

Re: Head flexibility really needed

Post by RustyJoomla » Fri Feb 06, 2015 2:18 pm

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
Follow me on Twitter - http://twitter.com/RustyJoomla
Company Joomla Website - https://storm.agency


Locked

Return to “Templates for Joomla! 1.5”