<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.7.2" -->
<rss version="2.0">
	<channel>
		<title>How to determine which page you are on from within a Joomla! 1.5 template</title>
		<description>Comments for How to determine which page you are on from within a Joomla! 1.5 template at http://www.howtojoomla.net , comment 1 to 10 out of 10 comments</description>
		<link>http://www.howtojoomla.net</link>
		<lastBuildDate>Sat, 05 Jul 2008 16:10:42 +0100</lastBuildDate>
		<generator>FeedCreator 1.7.2</generator>
		<item>
			<title>...</title>
			<link>http://www.howtojoomla.net/content/view/85/6/#comment-886</link>
			<description>Great question, Zee. My answer to that is, it depends on the situation. Sometimes you just need a small modification based on which page you are on. Making a separate template is a lot of work for a small modification when you can easily use this technique to make that modification within the same template.

Also, when you are dealing with multiple templates and you need to make a style change, you have to do it in more than one place. Keeping it all within one template limits the need to make changes in several places.

Thanks for the question, and thanks for visiting! - Cory</description>
			<pubDate>Wed, 02 Jul 2008 23:50:42 +0100</pubDate>
		</item>
		<item>
			<title>...</title>
			<link>http://www.howtojoomla.net/content/view/85/6/#comment-885</link>
			<description>As another option, couldn't you create another template and tell the menu item which template to use?  Or do you find the method above easier? - Zee</description>
			<pubDate>Wed, 02 Jul 2008 23:39:28 +0100</pubDate>
		</item>
		<item>
			<title>...</title>
			<link>http://www.howtojoomla.net/content/view/85/6/#comment-810</link>
			<description>Just a simple question, how do you add the colors in your articles for php coding for example, and how you format it like that? - Fernando</description>
			<pubDate>Tue, 27 May 2008 04:20:46 +0100</pubDate>
		</item>
		<item>
			<title>...</title>
			<link>http://www.howtojoomla.net/content/view/85/6/#comment-809</link>
			<description>On top of page : 
[? $pageoption = JRequest::getVar( 'option', '' ); ?]
[? $pageview = JRequest::getVar( 'view', '' ); ?]

On body : 
[? if ($pageoption == 'com_virtuemart') {echo &quot;&quot;;}
   elseif ($pageview == 'article') {echo &quot;&quot;;} 
       else { ?]
       
    [ } ?]

* change [ ] to &lt; &gt; - links</description>
			<pubDate>Sun, 25 May 2008 01:05:07 +0100</pubDate>
		</item>
		<item>
			<title>...</title>
			<link>http://www.howtojoomla.net/content/view/85/6/#comment-808</link>
			<description>uh sorry, i think i need to quote my code :
On top of page : 
[quote]


[/quote]
On body : 
[quote]

       
    
[/quote] - links</description>
			<pubDate>Sun, 25 May 2008 01:01:38 +0100</pubDate>
		</item>
		<item>
			<title>...</title>
			<link>http://www.howtojoomla.net/content/view/85/6/#comment-807</link>
			<description>this simple article is life safer !, i search all day in jm and vm forum but can't found this solution, one question : is my php right if need to hide from several component :

On top of page :



On body :

       
 - links</description>
			<pubDate>Sun, 25 May 2008 00:59:36 +0100</pubDate>
		</item>
		<item>
			<title>...</title>
			<link>http://www.howtojoomla.net/content/view/85/6/#comment-800</link>
			<description>Hi Lisa... this should work with SEF URL's because you are using Joomla's &quot;JRequest::getVar&quot; command. I could go into a lengthy explanation of why this works, but basically Joomla automatically knows what the request parameters are even if you use SEF URL's. - Cory</description>
			<pubDate>Mon, 19 May 2008 07:30:31 +0100</pubDate>
		</item>
		<item>
			<title>...</title>
			<link>http://www.howtojoomla.net/content/view/85/6/#comment-799</link>
			<description>But what if you are using SEF URL's? Is tehre still a way to achieve this?

Thank you by the way for an excellent blog - both entertaining and educational!

/Lisa - Lisa</description>
			<pubDate>Mon, 19 May 2008 01:25:25 +0100</pubDate>
		</item>
		<item>
			<title>...</title>
			<link>http://www.howtojoomla.net/content/view/85/6/#comment-771</link>
			<description>Good question, Jon. You need to check for the value of &quot;view&quot;. In this case, view=frontpage. - Cory</description>
			<pubDate>Thu, 01 May 2008 17:19:11 +0100</pubDate>
		</item>
		<item>
			<title>...</title>
			<link>http://www.howtojoomla.net/content/view/85/6/#comment-770</link>
			<description>Great tip for the Joomla masses. I use this technique a lot as well. 

One question I have though, since I'm new to Joomla 1.5 I'm finding it hard to figure out if I'm on the frontpage. In 1.0.x $option would equal com_frontpage, but in Joomla 1.5 com_content is used for the frontpage as well as regular content.
Do you know of a simple way to distinguish the frontpage from within the template? - Jon</description>
			<pubDate>Thu, 01 May 2008 17:05:54 +0100</pubDate>
		</item>
	</channel>
</rss>
