The Joomla! Forum ™



Forum rules


Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.



Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Tue Mar 18, 2014 1:51 pm 
Joomla! Enthusiast
Joomla! Enthusiast

Joined: Tue Apr 17, 2007 10:34 am
Posts: 112
Location: Durban, South Africa.
Hello,

I know this is for J1.5 but I can't find a 1.6 section?

I need to hide the articles from the front page, but I still need the articles to be published on the front page.

I originally found this in an article

Quote:
Go to the HTML view of your template (or the$template/html/com_content/frontpage/default.php file), and search for the following line of code:

Code:
<jdoc:include type="component" />


Enclose the above line (and the DIV tag that contains it) so it looks like this:

Code:
<?php if (JRequest::getVar('view') != 'frontpage'): ?>
<div id="xxxx">
<jdoc:include type="component" />
</div>
<?php endif ?>



But I can't find that code anywhere... is it the same in J1.6?

Regards
Bevan


Top
 Profile  
 
PostPosted: Tue Mar 18, 2014 1:59 pm 
I've been banned!

Joined: Fri Jul 12, 2013 5:37 pm
Posts: 1505
you can write that code in your template, file "index.php"


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 



Who is online

Users browsing this forum: No registered users and 24 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group