Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: How to remove "category" from front page?  (Read 3290 times)

0 Members and 1 Guest are viewing this topic.

ladyluck

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
How to remove "category" from front page?
« on: April 12, 2006, 01:41:08 am »

Hi, I´m using Coppermine 1.4.2, with Igames theme.  The galleries are to be displayed nested into a website with a huge banner on top, so I need to save space in the header.

I´d like the category item not to be shown on the front page. I tried deleting catlist, but then it doesn´t show the album list either. The url to the gallery is http://www.entuguia.com.ar/galeria and to see it in its context, you should go to www.entuguia.com.ar and then click on "La Revista" (second link on the left menu bar).

Thanks in advance.

Lady
Logged

codeslayer

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 24
Re: How to remove "category" from front page?
« Reply #1 on: April 13, 2006, 03:17:50 pm »

login as admin,
go to config. Under "Album list view" remove "catlist" from "The content of the main page"

thats it.

Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: How to remove "category" from front page?
« Reply #2 on: April 13, 2006, 07:35:52 pm »

That's wrong, don't do that. You mustn't remove catlist, under no circumstances (unless you really, really know what you're doing) - as suggested in the docs:
Quote
Unless you really know what you are doing you should always keep catlist and alblist in "the content of the main page", as they make up the core parts of the index page or any gallery site, for that matter.

As far as I can see Ladyluck didn't ask how to get rid of the category list alltogether. I guess she wants to get rid of the table row that reads "Category |   Albums | Files". You will have to get rid of the table caption then. If this is what you're up to, then edit themes/igames/theme.php and add into a new line right before
Code: [Select]
?>this piece of code
Code: [Select]
// HTML template for the category list
$template_cat_list = <<<EOT
<!-- BEGIN header -->
        <!--<tr>
                <td class="tableh1" width="80%" align="left"><b>{CATEGORY}</b></td>
                <td class="tableh1" width="10%" align="center"><b>{ALBUMS}</b></td>
                <td class="tableh1" width="10%" align="center"><b>{PICTURES}</b></td>
        </tr>-->
<!-- END header -->
<!-- BEGIN catrow_noalb -->
        <tr>
                <td class="catrow_noalb" colspan="3"><table border="0"><tr><td align="left">{CAT_THUMB}</td><td align="left"><span class="catlink"><b>{CAT_TITLE}</b></span>{CAT_DESC}</td></tr></table></td>
        </tr>
<!-- END catrow_noalb -->
<!-- BEGIN catrow -->
        <tr>
                <td class="catrow" align="left"><table border="0"><tr><td>{CAT_THUMB}</td><td><span class="catlink"><b>{CAT_TITLE}</b></span>{CAT_DESC}</td></tr></table></td>
                <td class="catrow" align="center">{ALB_COUNT}</td>
                <td class="catrow" align="center">{PIC_COUNT}</td>
        </tr>
        <tr>
            <td class="tableb" colspan="3">{CAT_ALBUMS}</td>
        </tr>
<!-- END catrow -->
<!-- BEGIN footer -->
        <tr>
                <td colspan="3" class="tableh1" align="center"><span class="statlink"><b>{STATISTICS}</b></span></td>
        </tr>
<!-- END footer -->
<!-- BEGIN spacer -->
        <img src="images/spacer.gif" width="1" height="7" border="" alt="" /><br />
<!-- END spacer -->

EOT;

If you actually want the whole category enchilada gone, then move all your albums to the root category (using the album manager) and you should be fine.
Logged
Pages: [1]   Go Up
 

Page created in 0.021 seconds with 15 queries.