Hi guys,
Im using Joomla 1.0.10 at the moment, im loving this CMS...absolutely outstanding. Anyway, i have recently started using a theme/template called JoomlaCurve and it uses DIVs that can be hidden/shown, see the site here:
http://richl.com
As you can see in the top left, you have a menu (richl.com button), you also have a navigation and content window which can both be "closed" and "opened" (hiding and showing the DIVs), which all work perfectly well with Joomla and mod_rewrite off (URL would be http://DOMAIN/index.php?option=com_content&task=view&id=00&Itemid=00), but if i turn mod_rewrite on and Joomla outputs the URLs to be search engine friendly (URL would be http://DOMAIN/option/com_content/00/00 for example), then the hide/show DIV links dont really work properly unless you are on http://DOMAIN. If you are on a page like http://DOMAN/option/com_content/00/00 when clicked they direct you to http://DOMAIN/ and THEN the divs will show/hide again. The link displays as "#" when hovering over it...
Here is a part of the code from the template:
And an example of a link:
What can i do to be able to use mod_rewrite and have these "#" hide/show divs working properly? Many thanks for any help...
Im using Joomla 1.0.10 at the moment, im loving this CMS...absolutely outstanding. Anyway, i have recently started using a theme/template called JoomlaCurve and it uses DIVs that can be hidden/shown, see the site here:
http://richl.com
As you can see in the top left, you have a menu (richl.com button), you also have a navigation and content window which can both be "closed" and "opened" (hiding and showing the DIVs), which all work perfectly well with Joomla and mod_rewrite off (URL would be http://DOMAIN/index.php?option=com_content&task=view&id=00&Itemid=00), but if i turn mod_rewrite on and Joomla outputs the URLs to be search engine friendly (URL would be http://DOMAIN/option/com_content/00/00 for example), then the hide/show DIV links dont really work properly unless you are on http://DOMAIN. If you are on a page like http://DOMAN/option/com_content/00/00 when clicked they direct you to http://DOMAIN/ and THEN the divs will show/hide again. The link displays as "#" when hovering over it...
Here is a part of the code from the template:
Code:
<script language="JavaScript" type="text/javascript">
function showOrHide(WindowName)
{
{
elbox=document.getElementById(WindowName);
if(elbox.style.visibility=='hidden')
{
elbox.style.visibility='visible';
} else {
elbox.style.visibility='hidden';
}
};
return false;
}
</script>
And an example of a link:
Code:
<a href="#" onclick="showOrHide('MainWin');" class="window_top3" alt="Minimize Window"></a>
What can i do to be able to use mod_rewrite and have these "#" hide/show divs working properly? Many thanks for any help...