Sort photos on gallery application (question SOLVED)
Posted by
jsmoraes on
Oct 31, 2013; 9:53pm
URL: https://support.nabble.com/Sort-photos-on-gallery-application-question-SOLVED-tp7587650.html
Is it possible sort the photos on gallery application by the Subject instead of Date ?
I see something at view_gallery_table macro, but I don't know what change at line 50 to do it.
<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/]" >
<n.handle_empty_gallery/>
<n.loop.>
<n.gallery_table_row/>
</n.loop.>
</n.page_node.topics_list.>
</table>
</macro>
It seems to be with
sort="pinned-and-root-node-date" or with
filter="[n.app_topic_filter/]No success with the first. If I try change the text
pinned-and-root-node-date with any thing, I have message of:
NAML exception in customized site: 'sort' attribute not setAnd with the second I got something, But shows only one photo with subject="'IC 4651 - Agl. Aberto'", or using subject="'N%'" I have all photos that subject begins with letter N, but no sorted by Subject
I caused an error to see the constuction of SQL line and, cleanning the character that cause the error, it shows:
NAML exception in customized site: select * from node where pin is not null and parent_id = ? and is_app is null and (subject like'N%') order by pin
What I think I need is change
order by pin to
order by subject . Is that ?