Displaying album titles in main view Displaying album titles in main view
 

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]

Main Menu

Displaying album titles in main view

Started by GalFisk, February 13, 2005, 01:47:36 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

GalFisk

I have a gallery with one main category and a couple of sub-categories. What I would ike to do is to display the album titles (in a single column, without thumbnails or anything else) on the main page. In other words, I want it to look something like this:

Category 1
  album 1
  album 2
  Subcategory 1
    album 1
    album 2
  Subcategory 2
    album 1
    Sub-subcategory 1
      album 1
      album 2

I want only the album titles to be displayed, and in a format that is consistent with the way the categories are displayed. I only want to modify the front page, the rest of the gallery should be displayed as default.
If possible, I'd want the DELETE, PROPERTIES and EDIT FILES buttons to be displayed at the right of the album titles when logged in as admin, like this:

Category 1
  album 1 [DELETE] [PROPERTIES] [EDIT FILES]
  album 2 [DELETE] [PROPERTIES] [EDIT FILES]

How would I go about accomplishing this? I'm grateful for any help.

dk415

#1
I'd be interested in seeing how you would go about getting those admin commands next to the album titles as well. Hopefully someone can provide some insight :)

Edit: Okay, someone gave me a fix in a diff. thread on how to remove thumbnails. However, I also wanted to remove the description that says how many files are in the album. By completely deleting that row, I got rid of the admin menu. So it would make sense for me to have it insert next to the album name, like you want it as well. So I played around a little bit and I've got a viable solution, in a way. I'm not sure how you would create the directory tree, but here's the coding that removes the thumnail row (along with description) and places admin menu next to album title.

<!-- BEGIN album_cell -->
        <td width="{COL_WIDTH}%" height="100%" valign="top">
        <table width="100%" height="100%" cellspacing="0" cellpadding="0">
        <tr>
                <td colspan="3" height="1" valign="top" class="tableh2">
                        <a href="{ALB_LINK_TGT}" class="alblink"><b>{ALBUM_TITLE}</b></a>&nbsp;{ADMIN_MENU}
                </td>
   </tr>
        <tr>
                <td colspan="3">
                        <img src="images/spacer.gif" width="1" height="1" alt="" /><br />
                </td>
        </tr>
        </table>
        </td>
<!-- END album_cell -->

GalFisk

Thanks for the reply.
I decided to take the easy way out, and just putting links to the albums in the category description manually. It's not an ideal solution, but much less work.