Forum for discussing general topics related to Couch.
8 posts Page 1 of 1
Hi again,

I'm having a slight bit of trouble with projecting only 'one' gallery folder image on the homepage which should link back to the specified folder. The problem is that for each image I upload within a folder, it applies another image of that folder when I only need one? I then want to add the specific <cms:show k_folder_link/> to the image.
The attached image shows five folder images. I've uploaded two tracks and images for Deltiimo and three for L&O, but showing additional images for each upload. How can I limit it to each one?

Below is what is in index.php
Code: Select all
<cms:pages masterpage='artist-gallery.php'>
         
   <div class="col-sm-4">
         <a href="<cms:show k_folder_link />" alt=""><img alt="" src="<cms:show k_page_folderimage/>" width="440" height="440"><cms:show k_folder_title/></a>
      </div>
      </cms:pages>


Thanks in advance guys!

Attachments

Ok, as far as I could decypher - you uploaded 5 tracks as cloned pages. You also created 2 folders in that template as 'albums'. Next, you want to list those 2 albums and show a picture of the album with a link to the folder-view (perhaps you want visitors to be able to click that link and land on album page with all tracks).
Is my guessing correct?

@moderators: please move the topic to another subforum.
Hi Trendoman, thanks for your reply.

That's pretty much it. I've used the gallery template to reduce the time factor and adapted it to upload music albums and tracks.
I've tried showing just one of each album folders on the homepage, but it seems to have counted the tracks within the folders.
cloudpilot wrote: Hi Trendoman, thanks for your reply.

That's pretty much it. I've used the gallery template to reduce the time factor and adapted it to upload music albums and tracks.
I've tried showing just one of each album folders on the homepage, but it seems to have counted the tracks within the folders.


You are welcome. I see 2 ways of resolving this - (a) in each folder's edit screen (in admin's 'manage folders' section) there is a way to upload an image. There you can upload one for the album and show it within a folder-listing tag cms:folders.
Code: Select all
<cms:folders>
    <img src="<cms:show k_folder_image />" >
</cms:folders>

(b) Take any single page from each folder and output its cover image
Code: Select all
<cms:folders>
    <cms:pages folder=k_folder_name limit='1'>
        <img src="<cms:show gg_image />" > <!-- Or <img src="<cms:show k_page_folderimage />" > -->
    </cms:pages>
</cms:folders>


Take your pick. Does it help?
Hi again Trendoman,

I've tried both scenarios, but not working. I can get the individual track and album covers to show but not the Artist cover which is the folder image? When I use the <cms:folders> tag I get five blank cards?
Okay, something is not connecting. Could you please attach a zip with template?
Hi Trendoman,

Thanks for your help; however, I managed to solve the issue as shown below:
It took me a while.. I also managed to get the folder name to appear in the dropdown menu using the same principle.

Homepage:
Code: Select all
<cms:folders masterpage='artist-gallery.php' >
   <div class="col-sm-4">
   
   <cms:pages folder=k_folder_name include_subfolders='0' limit='1'>   
                  
   <a href="<cms:show k_folder_link />"><img class="label" alt="<cms:show k_folder_title />" src="<cms:show k_folder_image />" width="400" height="400"></a>
            
   </cms:pages>
   
   </div>
      </cms:folders>


Dropdown Menu:
Code: Select all
<cms:folders masterpage='artist-gallery.php' >
                <cms:pages folder=k_folder_name include_subfolders='0' limit='1'>   
            <a class="dropdown-item" href="<cms:show k_folder_link />"><cms:show k_folder_title /></a>
            </cms:pages>
                </cms:folders>
Good job :)
8 posts Page 1 of 1