Michael, I remembered something I had problem with in 6.5 in the Custom
Browse plugin that would be good if it could be solved.

pageheader.html in 6.5 contained the following two code parts:

Code part 1:

Code:
--------------------
    
  <div class="largeAttribute">[% pagetitle %][% IF artwork && (levelName == 
'album' || levelName == 'age') %] [% "GALLERY" | string %][% END %]</div>
  
--------------------


Code part 2:

Code:
--------------------
    
  [% PROCESS galleryselect.html %]
  
--------------------


In my plugin code I do the following:

Code:
--------------------
    
  [%- pagetitle = 'PLUGIN_CUSTOMBROWSE' | string; pageicon = 
'PLUGIN_CUSTOMBROWSE' -%]
  [% PROCESS pageheader.html %]
  
--------------------


The problem I'm having in 6.5 is in the Custom Browse plugin where I
want a "Sort by" droplist and I want the "Gallery" button. But I want
to the contents of the drop list and the url that is executed when a
drop list item is selected to be totally different. The same situation
also exists for the gallery button, where I want the same icon but a
totally different url to be executed when it's pressed.

It would be great it it was possible to define the "IF artwork" section
and "PROCESS galleryselect.html" section from somewhere outside
pageheader.html. This way I could insert any information I like when
using the pageheader.html on top of my plugin web interface pages. The
while IF artwork statement needs to be possible to replace, because in
the Custom Browse plugin page the levelName attribute isn't used to
indicate if a gallery button should be presented or not.

Something similar to how the pageHeaderInfo section is handled in
pageheader.html would be great.

My current solution is to insert my own gallery icon and sort by list
in the pwd_list handling, but the result is that the alignment doesn't
get completely correct and it feels a bit dirty since this isnt' the
purpose of pwd_list.


-- 
erland

Erland Isaksson
'My homepage' (http://erland.homeip.net) 'My download page'
(http://erland.homeip.net/download)
(Developer of 'TrackStat, SQLPlayList, DynamicPlayList, Custom Browse,
Custom Scan,  Custom Skip, Multi Library and RandomPlayList plugins'
(http://wiki.erland.homeip.net/index.php/Category:SlimServer))
------------------------------------------------------------------------
erland's Profile: http://forums.slimdevices.com/member.php?userid=3124
View this thread: http://forums.slimdevices.com/showthread.php?t=37848

_______________________________________________
beta mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/beta

Reply via email to