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
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
Am I barking up the wrong tree?
- Code: Select all
<cms:editable
type='relation'
name='tracks_albums'
masterpage='albums.php'
has='one'
no_gui='1'
label=' '
/>
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:config_form_view>
<cms:related_pages 'tracks_albums' masterpage='albums.php' show_future_entries='1'>
<cms:persist
track_date="<cms:show album_date />"
/>
</cms:related_pages>
</cms:config_form_view>
Am I barking up the wrong tree?