Re: Sort photos on gallery application
Posted by
jsmoraes on
Nov 01, 2013; 2:27pm
URL: https://support.nabble.com/Sort-photos-on-gallery-application-question-SOLVED-tp7587650p7587667.html
I created macros with the same code of the original and did some tests.
Changing
app_topic_filter macro I got some thing, but not sorted by Subject. So, to change any thing in it or under it will not solve my problem.
using this:
<macro name="app_topic_filter_jsm" requires="node_page,servlet">
<n.cache var="app_topic_filter" value="subject='Terzan 7 - Agl. Globular' or subject='IC 4651 - Agl. Aberto' " />
</macro>
or this:
<macro name="app_topic_filter_jsm" requires="node_page,servlet">
<n.cache var="app_topic_filter" value="subject='IC 4651 - Agl. Aberto' or subject='Terzan 7 - Agl. Globular'" />
</macro>
The result is the same: only two photos with the same position on the page.
In the
gallery_tabel.naml macro I only can think in
sort="pinned-and-root-node-date"<override_macro name="gallery_table">
<table class="gallery">
<n.page_node.topics_list. sort="pinned-and-root-node-date" start="[n.app_index_record/]" length="[n.app_rows_per_page/]" filter="[n.app_topic_filter_jsm/]" >
<n.handle_empty_gallery/>
<n.loop.>
<n.gallery_table_row/>
</n.loop.>
</n.page_node.topics_list.>
</table>
</override_macro>
Am I in the right way ?