0
Welcome Guest! Login
0 items Join Now

grunge: section and category name in front page

    • barnic's Avatar
    • barnic
    • Jr. Rocketeer
    • Posts: 40
    • Thanks: 0

    grunge: section and category name in front page

    Posted 14 years 10 months ago
    • Hello,
      is it possible to hide the section ande the category name in frontpage?
  • Re: grunge: section and category name in front page

    Posted 14 years 10 months ago
    • Hi Barnic,

      Well actually this was deliberate on my part (good or bad not sure). However to remove it is very simple all you need to do is the following in the html/com_content/frontpage/default.php you will need to remove the following lines 19 and 20. they should look like this.
                          <div class="sectiontitle"><?php echo $this->escape($this->item->section) ?></div> 
                          <h1 class="title"><?php echo $this->escape($this->item->category) ?></h1>

      Cheers
    • The following users have thanked you: HAAP

    • barnic's Avatar
    • barnic
    • Jr. Rocketeer
    • Posts: 40
    • Thanks: 0

    Re: grunge: section and category name in front page

    Posted 14 years 10 months ago
    • Thankyou!
      :cheesy:
  • Re: grunge: section and category name in front page

    Posted 14 years 10 months ago
    • Not a problem!

      Cheers
    • Pako's Avatar
    • Pako
    • Sr. Rocketeer
    • Posts: 198
    • Thanks: 13

    Re: grunge: section and category name in front page

    Posted 14 years 4 months ago
    • Sean Habing wrote:
      Hi Barnic,

      Well actually this was deliberate on my part (good or bad not sure). However to remove it is very simple all you need to do is the following in the html/com_content/frontpage/default.php you will need to remove the following lines 19 and 20. they should look like this.
       
                      <div class="sectiontitle"><?php echo $this->escape($this->item->section) ?></div> 
                      <h1 class="title"><?php echo $this->escape($this->item->category) ?></h1>
       

      Cheers

      Deleting these two lines only works for the first article listed on the front page, all other articles listed on the front page below the first one still as the Section and Category listed. Thoughts?

      [EDITED]
      You also need to comment out lines 41 and 42 as this deals with additional articles on the page.
       
      <?php /*?><div class="sectiontitle"><?php echo $this->escape($this->item->section) ?></div> 
                                         <h1 class="title"><?php echo $this->escape($this->item->category) ?></h1><?php */?>
       
  • Re: grunge: section and category name in front page

    Posted 14 years 3 months ago
    • I am having a problem with the template. The front page articles are listed not as hown in the demo, but scrollable content. Meaning, if I have three front page articles, the pages are shown one at a time with page numbers. How can I resolve this?

      Instead of having the pagination how can I make it show individual front page articles:

      The code that I am looking at is on line 63 - 72
      <?php if ($this->params->def('show_pagination', 2) == 1  || ($this->params->get('show_pagination') == 2 && $this->pagination->get('pages.total') > 1)) : ?>
                <?php if( $this->pagination->get('pages.total') > 1 ) : ?>
                <p class="counter">
                     <?php //echo $this->pagination->getPagesCounter(); ?>
                </p>
                <?php endif; ?>
                <?php if ($this->params->def('show_pagination_results', 1)) : ?>
                     <?php echo $this->pagination->getPagesLinks(); ?>
                <?php endif; ?>
           <?php endif; ?>

Time to create page: 0.067 seconds