Hide frontpage articles 1.6

Everything to do with Joomla! 1.5 templates and templating.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Locked
crashtackle
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 123
Joined: Tue Apr 17, 2007 10:34 am
Location: Durban, South Africa.

Hide frontpage articles 1.6

Post by crashtackle » Tue Mar 18, 2014 1:51 pm

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
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: Select all

<jdoc:include type="component" />
Enclose the above line (and the DIV tag that contains it) so it looks like this:

Code: Select all

<?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

iextensions
I've been banned!
Posts: 1498
Joined: Fri Jul 12, 2013 5:37 pm
Contact:

Re: Hide frontpage articles 1.6

Post by iextensions » Tue Mar 18, 2014 1:59 pm

you can write that code in your template, file "index.php"


Locked

Return to “Templates for Joomla! 1.5”