Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: Displaying album titles in main view  (Read 2325 times)

0 Members and 1 Guest are viewing this topic.

GalFisk

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Displaying album titles in main view
« on: February 13, 2005, 01:47:36 pm »

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:
Code: [Select]
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:
Code: [Select]
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.
« Last Edit: March 15, 2005, 11:37:12 pm by GauGau »
Logged

dk415

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: Displaying album titles in main view
« Reply #1 on: February 16, 2005, 03:48:23 pm »

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 -->
« Last Edit: February 16, 2005, 04:33:09 pm by dk415 »
Logged

GalFisk

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: Displaying album titles in main view
« Reply #2 on: March 15, 2005, 11:18:34 am »

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.
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 19 queries.