Support Forum
Welcome, Guest
Please
Lost Password? No account yet? Register
enhancement for custom head plugin (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: enhancement for custom head plugin
#230
NumericalExampleCom (User)
Fresh Boarder
Posts: 5
graphgraph
User Offline Click here to see the profile of this user
Numerical Example Birthdate: 2001-01-01
enhancement for custom head plugin 1 Month, 2 Weeks ago Karma: 0  
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/c
mponent/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
 
Report to moderator   Logged Logged  
 
Last Edit: 2008/07/21 00:52 By NumericalExampleCom.
  The administrator has disabled public write access.
#231
Joomler! (User)
Expert Boarder
Posts: 145
graph
User Offline Click here to see the profile of this user
Re:enhancement for custom head plugin 1 Month, 2 Weeks ago Karma: 1  
Thank you for your good idea.

I do my best to be able to support it in the next version.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#238
NumericalExampleCom (User)
Fresh Boarder
Posts: 5
graphgraph
User Offline Click here to see the profile of this user
Numerical Example Birthdate: 2001-01-01
Re:enhancement for custom head plugin 1 Month, 1 Week ago Karma: 0  
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}
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#246
NumericalExampleCom (User)
Fresh Boarder
Posts: 5
graphgraph
User Offline Click here to see the profile of this user
Numerical Example Birthdate: 2001-01-01
Re:enhancement for custom head plugin 1 Month ago Karma: 0  
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.
 
Report to moderator   Logged Logged  
 
Last Edit: 2008/08/05 19:23 By NumericalExampleCom.
  The administrator has disabled public write access.
#252
NumericalExampleCom (User)
Fresh Boarder
Posts: 5
graphgraph
User Offline Click here to see the profile of this user
Numerical Example Birthdate: 2001-01-01
Re:enhancement for custom head plugin 3 Weeks, 5 Days ago Karma: 0  
The toheader content plugin described above is now available:

See also my posting on joomler.net:
http://www.joomler.net/compone
t/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.
 
Report to moderator   Logged Logged  
 
Last Edit: 2008/08/10 17:24 By NumericalExampleCom.
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop