Free Joomla Extensions by ROALCANA released under the GNU/GPL which permits the sale of free software meaning that free has two legitime means, as free beer and as free speach, GPL refeers to free as free speach.
Free Joomla Extensions by ROALCANA released under the GNU/GPL which permits the sale of free software meaning that free has two legitime means, as free beer and as free speach, GPL refeers to free as free speach.
Access ControlKeep the prying eyes away from your private website. Your content stays confidential. Grant access only to authorized members. Optionally grant access to search engines. See details Get the attentionDon't be at risk of be unnoticed when generous visitors want to donate some cash to your website. Make sure they can find how can it be done. See details Enhance your HomepageUnlash the attracting power of your full content. Keep your home page always attractive for your users. See details Weather InformationSearched for 38+ Milion times a month. Is your website showing weather forecasts already? See details The World Through ImagesDoes your website enable users to upload a avatar? Then you can get rid of those ugly, old-fashioned users lists. See details Say Thank YouThe best way to say Thank You to developers is giving credit for their work. How are you saying thank you? See details |
![]() |
While we were modifying a component to run under Joomla 1.5 native, we did notice that the component uses the class mosTabs to display it's backend content in several tabs. Since mosTabs is not available anymore in Joomla 1.5, here is the solution we found.
You must include this line of code before attempting to call tabs functionality:
jimport ( 'joomla.html.pane');
Then get the instance for the tabs and assign it to a variable as displayed below:
$myTabs = & JPane::getInstance ( 'tabs' );
From here, everything is quite easy. Simply use the code below to insert the required code to get the tabs rendered in the component's area:
// Start the tabbed content, include this line ONLY ONCE
echo $myTabs->startPane( "my_tabbed_content" );
// Start the Tab1 definition
echo $myTabs->startPanel("Tab1 Title","tab1-id");
// Here you can display the content for Tab1
// Close the Tab1 definition
echo $myTabs->endPanel();
// Start the Tab2 definition
echo $myTabs->startPanel("Tab2 Title","tab2-id");
// Here you can display the content for Tab2
// Close the Tab2 definition
echo $myTabs->endPanel();
// Close the tabbed content, include this line ONLY ONCE
echo $myTabs->endPane();
A nice variant for tabbed content is slider. To display your content in sliders just get the instance for 'sliders' instead of 'tabs' as shown in the following line of code:
$myTabs =& JPane::getInstance( 'sliders' );
Source: joomlaportal.de
Want to earn a new revenue stream? Join our Affiliate program today! For each purchase you generate, you receive a huge percentage of the sale price. |
Do visit our blog, where we continue to provide useful tips and handy hints to use, customize and develop Joomla on your websites. Go to blog |
ROALCANA and dojoomla.com are not affiliated to Joomla!, Open Source Matters or any of its subsidiaries.
|