JArticleFontsize will work on any article, even displayed in a blog or through the frontpage component,
as long as the id parametered for the plugin is present.
If the id is "contenu" and your template's overrides don't provide for this (and you do not want to modify your overrides), you can add it in the article content.
Example:
Code:
<div id="contenu">{fontsize}
<p>some text</p>
<hr id="system-readmore" />
<p>other text</p>
</div>
Therefore this will work with the default joomla container for the article which is a class "contentpaneopen"
Quote:
<table class="contentpaneopen">
<tr>
<td valign="top">
<span class="small">
Written by Administrator </span>
</td>
</tr>
<tr>
<td valign="top" class="createdate">
Tuesday, 05 August 2008 10:26 </td>
</tr>
<tr>
<td valign="top">
<div id="contenu"><div id="fontsize"><div class="article-font">Font Size<a href="javascript:ts('contenu',1)"> <img border="0" src="http://http://mysite.com/plugins/content/jarticlefontsize/font_up.gif" alt="Larger Font" title="Larger Font"/></a><a href="javascript:ts('contenu',-1)"> <img border="0" src="http://mysite.com/plugins/content/jarticlefontsize/font_down.gif" alt="Smaller Font" title="Smaller Font"/></a></div></div>
<p>some text</p>
<p>other text</p>
</div>
etc.
Now, if you want to apply JArticleFontsize to ALL articles on the site, you have to make overrides for all instances (blog, article, frontpage) where you modify the code to be sure there is a container with the same id in each.
This container can be limited to the content of the article or include all of it i.e. title, readmore.
Example: Beez has an override for Articles default display where the container is
<div id="page"> (/templates/beez/html/com_content/article/default.php)
Choosing "page' as the id parameter will therefore let JArticleFontsize work on the whole display of the article, including Title, etc.
Adding this container in the category/blog_item.php and in frontpage/default_item.php lets therefore JArticleFontsize work on ALL site article display.
_________________
Jean-Marie Simonet / infograf ·
http://www.info-graf.fr Multilanguage in 2.5: http://help.joomla.org/files/EN-GB_multilang_tutorial.pdf---------------------------------
Joomla Translation Coordination Team • Joomla! Production Working Group