Hello,
I'm working on a Gallery extension..i created a gallery section in
the admin panel (to manage files uploading / sorting etc) and a
Gallery page type..
when I create a gallery page i use shomething like this in the body
part:
<r:gallery:if_index>
<ul>
<r:galleries:each>
<li><r:link /></li>
</r:galleries:each>
</ul>
</r:gallery:if_index>
<r:gallery:unless_index>
<ul>
<r:gallery:each>
<li><img src="<r:gallery:thumb width="55" />" /></li>
</r:gallery:each>
</ul>
</r:gallery:unless_index>
if request_uri is shomething like:
/gallery_page/
..it displays the galleries list..
if it is:
/gallery_page/:id
it displays the list of images/files in the selected gallery.
I use this code because the body part is displayed by default..
It could be better to split the code in different part..in the body
part the code for the galleries and in a 'gallery' part
the code used to display the list of files..and then render the right
part if in the request_uri there is the id or not..
is it possible using some hack in my gallery model? or i can use
another method?
thx
-----
Andrea Franz
Think BigChief: http://think.bigchief.it
_______________________________________________
Radiant mailing list
Post: Radiant@lists.radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site: http://lists.radiantcms.org/mailman/listinfo/radiant