Reputation: 25
I need to customize a joomla theme for only one of my page. Is this achievable?
Let me know the steps to do it.
Thanks in advance.
Upvotes: 0
Views: 1138
Reputation: 11
If u are using Joomla 2.5
you can use different color themes of the same template in different pages
it is very easy:
for using different themes
In Joomla 1.5
Different themes can be used in different pages
goto Extensions>>Template manager>>click any theme name that u want in a page
then select your page from "Menu Assignment" section.
Upvotes: 0
Reputation: 417
try it..
global $my;
$my->id; $usermname_is_id="$my->id"; if(!$usermname_is_id=="") :{?>
Upvotes: 1
Reputation: 10609
There is a simple way to achieve what you want. Joomla menu items have a parameter called Page Class Suffix. This allows you to add a CSS selector to your pages based on the menu item. You just need to use that so you can add page specific CSS so you can modify specific pages. Add this to your temaplate/index.php file:
</head>
<?php
$menu = &JSite::getMenu();
$active = $menu->getActive();
$pageclass = "";
if (is_object( $active )) :
$params = new JParameter( $active->params );
$pageclass = $params->get( 'pageclass_sfx' );
endif;
?>
<body id="<?php echo $pageclass ? $pageclass : 'default'; ?>">
Now all pages will have have either <body id="default">
or <body id="yourPageClassSuffix">
. Combine this with specifying modules per menu item and you can completely customize any page within your site without having to use multiple templates.
Upvotes: 1
Reputation: 5834
Check out the joomla-wiki. It is the first resource for tutorials and tips to develop your own extensions (including templates).
Here is a list of all tutorials and recommended reading within the joomla-wiki concerning templates/themes:
http://docs.joomla.org/Template_Development
Upvotes: 0