Quantcast
Channel: PHPCode » Joomla
Browsing all 10 articles
Browse latest View live

How to check home page or not – Joomla

<?php if(JRequest::getVar(‘view’) == ‘featured’ ) : echo ‘ Home page'; else : echo ‘Inner page'; endif; ?>  

View Article



How to check frontpage page or not – Joomla

<?php if(JRequest::getVar(‘view’) == “frontpage” ) { ?> Home page <?php  } else { ?> Inner Page <?php }; ?>  

View Article

Article name from article id in a module page – Joomla

<?php $dVar=new JConfig(); mysql_connect($dVar->host,$dVar->user,$dVar->password); mysql_select_db($dVar->db); $articleResult = mysql_fetch_assoc(mysql_query(“SELECT * FROM...

View Article

how to add a new position – joomla 1.6

You can add a new position in joomla template by editing the “templateDetails.xml” . Example : <position>debug</position> This code to be added within the “<positions>’ tags.

View Article

include a module inside a content item – Joomla 1.6

The code “{loadposition POSITION-NAME}” will help you to add a module in the content . Follow the below given steps to include a module inside the content 1) Create a module from admin side and assign...

View Article


Disable next and previous article – joomla 1.6

You can disable the text “Next” and “Prev” by disabling the plugin “Content – Page Navigation”

View Article

get admin email address in a component – joomla

$dVar=new JConfig(); $toAddres = $dVar->mailfrom;

View Article

How To Reset Admin Password – Joomla

1) Login to phpmyadmin and select db and the table (jos_users) that store users details   ie table with name end with “_users”2) Make sure that the username  exists in the table( let the user name be...

View Article


How to get article id

<?php echo JRequest::getVar(‘id’);  ?>

View Article


How to get article title

<?php $id= JRequest::getVar(‘id’); $objTitle = $article->load($id); echo $objTitle->get(‘title’); ?>

View Article
Browsing all 10 articles
Browse latest View live




Latest Images