Joomler!.net - Decided on Joomla!

デル株式会社

Wiki or Wordpress? No it is JContentPlus.

Latest Posts

jQuery JS on component pages ? - cb register page
Avatar rexkramer 2010/05/28 07:55
Really cool and elegant plugin. Though, I doubt i can load and "access" the JS scrip...
Re:Installation?
Avatar kicmail 2010/04/25 05:26
念のため、私は日本語英語から私の質問を翻訳するGoogleの翻訳を使用しています。ですから、日本語で対応するならば、私はもう一度参考に応答を決定するためにGoogleの翻訳を使用して試すことがで...
Problems with Custom Head Tag (SOLVED)
Avatar Homer55 2010/04/06 06:08
Greetings, Joomler: > I seem to be having some problems with your Custom Head Tags plug-in....
Re:Content ToHeader plugin
Avatar NumericalExampleCom 2009/04/03 19:27
I am using toheader plugin and the custom head tag plugin now on a japanese website as well: www....
Re:Custom head tag question...
Avatar Joomler! 2008/10/15 08:20
Hi, The content of Head tag is obtained by the following codes. $mainframe->_head; And...

Popular Posts

Custom head tag question...
Avatar tomcat 2008/10/13 17:08
Can you tell me, can I add php code in custom head tag mambot or use include function to call a f...
Content ToHeader plugin
Avatar NumericalExampleCom 2008/08/10 17:15
I wrote a content plugin that complements the CustomHeaderTag Plugin: the ToHeader Content Plugin...
enhancement for custom head plugin
Avatar NumericalExampleCom 2008/07/20 20:15
Hello, Thanks for writing the custom head tag joomla plugin ! This is an absolutely great plug...
jQuery JS on component pages ? - cb register page
Avatar rexkramer 2010/05/28 07:55
Really cool and elegant plugin. Though, I doubt i can load and "access" the JS scrip...
Installation?
Avatar kicmail 2010/04/24 11:17
Anyone have any thoughts why I can't get this thing installed into Joomla 1.5? When I try to inst...

Forum Stats

All times are UTC + 9 hours
Total Topics:201
Total Posts:1137
New Members:
Avatar JimJo

Forum Online

Total Online:73
Total Guest:73
Bottom
Home » Support » Plugins » Free Plugin » Custom Head Tag » enhancement for custom head plugin
enhancement for custom head plugin
enhancement for custom head plugin
Sunday, 20 July 2008 20:15
0 votes
Hello,

Thanks for writing the custom head tag joomla plugin ! This is an absolutely great plugin. And thanks for making a version for joomla 1.5 native !

I would like to use this plugin. Although it''s a great plugin I have a few comments, based on what I saw on the youtube video and on the description at http://extensions.joomla.org/component/option,com_mtree/task,viewlink/link_id,4179/Itemid,35/

The plugin in is very flexible, but it can be made even more flexible.

Right now you have to enter the menu id''s and content id''s in the plugin configuration, that is fine. In addition the custom html/javascript/css code is entered in the plugin configuration, which is fine as well.

What I would like is adding extra html/javascript at the end of the custom code from the content pages like this:
{customheader: calenderheader,
"<style type=''text/css''>
...
</style>
<script type=''texst/javascript''>
function xyz(a, b, c) { return a*b*c; }
....... more javascript
</script>"
}

For the content items with this {customheader: .. , ..} tag, it will not be necessary to use the content id in the plugin configuration.

Splitting up the javascript and style code into several plugin arguments (path and code arguments both for script and styles) is fine as well though not necessary.

In this case the name "calendarheader" is the name of the customhtml plugin. So I can have several pages including different copies of the plugin, for example "calendarheader", "weddingplannerheader", but also "dojoheader" and "jqueryheader". The copies of the custom header plugin would contain configuration for including resp. dojo and jquery scripts.

Such an enhancement makes the custom head plugin better usuable for mixing javascript frameworks like dojo and jquery with joomla. With the current plugin I probably can achieve the same. However with an enhanced plugin I do not need a separate copy of the plugin for every page containing custom dojo/or jquery code any more. In addition the content and the custom javascript code will be only at the content page rather than partly in a plugin and partly in the content page. That makes site administration easier if you have many pages with different custom jquery/dojo code in the html head tag.

Calculators: www.numericalexample.com
Stories: www.factsandpeople.com
NumericalExampleCom
Fresh Boarder
Fresh Boarder
6
2008/07/21
Last update:Monday, 21 July 2008 00:52
Re:enhancement for custom head plugin
Monday, 21 July 2008 08:46
0 votes
Thank you for your good idea.

I do my best to be able to support it in the next version.
Joomler!
Platinum Boarder
Platinum Boarder
477
2007/08/26
Re:enhancement for custom head plugin
Monday, 28 July 2008 05:24
0 votes
You could also consider adding css/javascript from the code like this:
{customheader: calenderheader}
<style type=''text/css''>
...
</style>
<script type=''texst/javascript''>
function xyz(a, b, c) { return a*b*c; }
....... more javascript
</script>
{/customheader}
NumericalExampleCom
Fresh Boarder
Fresh Boarder
6
2008/07/21
Re:enhancement for custom head plugin
Tuesday, 05 August 2008 19:22
0 votes
In fact the plugin I requested is a content-plugin and you have written a system plugin.

I did some programming and now I am almost finished with a content plugin that can be included in the content of a page, by putting text like this in the content:
<toheader>
<script src="..."/>
<style>...</style>
<script>...
..
</script>
</toheader>

This content plugin complements your customtag plugin.

I will make the content plugin available under the same license as the custom head tag plugin on www.factsandpeople.com
as soon as I have completely tested it. The content plugin will only work for joomla 1.5 with php 5 by the way.

I also tested using jquery with these two plugins. So some examples on how to use the two plugins with jquery will be added as well.
NumericalExampleCom
Fresh Boarder
Fresh Boarder
6
2008/07/21
Last update:Tuesday, 05 August 2008 19:23
Re:enhancement for custom head plugin
Sunday, 10 August 2008 17:19
0 votes
The toheader content plugin described above is now available:

See also my posting on joomler.net:
http://www.joomler.net/component/option,com_fireboard/Itemid,17/func,view/id,251/catid,20/

See the ToHeader Content Plugin page for more information and the download link.

P.S. the ToHeader Content Plugin only works with joomla 1.5 native and PHP 5.
NumericalExampleCom
Fresh Boarder
Fresh Boarder
6
2008/07/21
Last update:Sunday, 10 August 2008 17:24
 
Home » Support » Plugins » Free Plugin » Custom Head Tag » enhancement for custom head plugin
joomler.net is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla!(R) name is used under a limited license from Open Source Matters in the United States and other countries.
joomler.net is not affiliated with or endorsed by Open Source Matters or the Joomla! Project.