Problems, need help? Have a tip or advice? Post it here.
3 posts Page 1 of 1
I think this is possible, but I'm not sure how to do it .... I have related templates - albums.php and tracks.php. This is in the tracks template
Code: Select all

The album release date album_date is set up along with all the other album details and then the tracks are added. Rather than ask the client to input the album date for each track I would like to get that value from album.php and set it up in the background for each track.

Something like this may be the way to go - but it doesn't work
Code: Select all
<cms:related_pages 'tracks_albums' masterpage='albums.php' show_future_entries='1'>
            track_date="<cms:show album_date />"               

Am I barking up the wrong tree?
If your goal is to display album_date for each track in the backend, it is handy to use cms:editable type='message' (unless you want give client a way to change it for a single track).
... my goal is to set up and save the album_date within the tracks.php template, so the client doesn't have to. I need the date within the tracks.php template for sorting the tracks in listings shown on the site.

Ideally when the tracks.php template is 'opened' to set up a track by the client the track_date field would be pre-filled with album_date by its relation to the albums.php template. My client could alter the date if required, but usually it wouldn't need to be.
3 posts Page 1 of 1

Who is online

In total there are 2 users online :: 0 registered, 0 hidden and 2 guests
(based on users active over the past 5 minutes)

Users browsing this forum: No registered users and 2 guests