0
Welcome Guest! Login
0 items Join Now

How to remove the "There are no items to display" on the frontpage

    • Chew Hoe Ang's Avatar

    How to remove the "There are no items to display" on the frontpage

    Posted 17 years 8 months ago
    • I got one site that I does not want to show news on the frontpage. But there is always this "There are no items to display" on the frontpage. How to remove it?
  • Re: How to remove the "There are no items to display" on the frontpage

    Posted 17 years 8 months ago
    • Dan L's Avatar
    • Dan L
    • Elite Rocketeer
    • Posts: 1453
    • Thanks: 0

    Re: How to remove the "There are no items to display" on the frontpage

    Posted 17 years 8 months ago
    • You will need to add a condition in the template's index.php to disable mosmainbody from loading if the user is on the frontpage. Find the statement in the template file and change it to the following:
      <?php if ($option != "com_frontpage") : ?>
      &nbsp; &nbsp;  <?php mosMainBody(); ?>
      <?php endif; ?>

      This will ensure the content (mosmainbody) only loads if the user is *not* on the site's homepage.
    • Toolbox Digital | Dribbble | Forrst
    • Chew Hoe Ang's Avatar

    Re: How to remove the "There are no items to display" on the frontpage

    Posted 17 years 8 months ago
    • Thanks. it work excellently.

Time to create page: 0.066 seconds