2 music tpl pages
Jamroom Help
this is a continuation to this post.
http://www.jamroom.net/the-jamroom-network/forum/design-and-skin-customization/3925/album-questions
If you look at www.versionist.net/music this is the normal .tpl file
if you look at www.versionist.net/music1 this is the .tpl with the code installed.
It does group by album. The issue is that the grouping only needs to apply to quota 4 which are labels.
on music1 it is taking away the second song an artist uploads as well.
So the below code is good but i think i need an extra if statement in there and that is where i am lost.
If quota id = 4 then only group and show the last song uploaded
if it is quota id 2 then show both songs.
This would then allow me to use brains module he created. I could limit artist uploads to 2 and label uploads to 12
And on the charts it would show 2 artist songs and 1 label song off the album they uploaded.
{if isset($_conf.jrProJam_require_images) && $_conf.jrProJam_require_images == 'on'}
{if isset($_post.search_area) && $_post.search_area == 'audio_genre'}
{jrCore_list module="jrAudio" order_by=$order_by search1="audio_genre like `$_post.search_string`" template="music_row.tpl" require_image="audio_image" pagebreak=$_conf.jrProJam_default_pagebreak page=$_post.p}
{elseif !empty($_post._1)}
{jrCore_list module="jrAudio" order_by=$order_by template="music_row.tpl" require_image="audio_image" search="audio_title like `$_post._1`%" pagebreak=$_conf.jrProJam_default_pagebreak page=$_post.p}
{else}
{jrCore_list module="jrAudio" order_by=$order_by group_by="audio_album" template="music_row.tpl" require_image="audio_image" pagebreak=$_conf.jrProJam_default_pagebreak page=$_post.p}
{/if}
{else}
{if isset($_post.search_area) && $_post.search_area == 'audio_genre'}
{jrCore_list module="jrAudio" order_by=$order_by search1="audio_genre like `$_post.search_string`" template="music_row.tpl" pagebreak=$_conf.jrProJam_default_pagebreak page=$_post.p}
{elseif !empty($_post._1)}
{jrCore_list module="jrAudio" order_by=$order_by template="music_row.tpl" search="audio_title like `$_post._1`%" pagebreak=$_conf.jrProJam_default_pagebreak page=$_post.p}
{else}
{jrCore_list module="jrAudio" order_by=$order_by group_by="audio_album" template="music_row.tpl" pagebreak=$_conf.jrProJam_default_pagebreak page=$_post.p}
{/if}
{/if}