Group Question

tubeman
Posts: 534
Joined: Sat Mar 02, 2013 11:33 am

Group Question

Post by tubeman »

Hi,
When outputting related galleries suppose I first imported all the galleries in group1,group2 and group3 and after that added 200 categories based on filter keywords. Now when I output the related galleries using:

<thumb group=CURRENT_ITEM_GROUP num=1-15></thumb>

It gives galleries from group1,group2 and group3 most of the times and if I skip these group1,group2 and group3 then galleries which did not have any categories assigned based on keywords show empty data in the related galleries. Is there anyway where we can display the related galleries based on CURRENT_ITEM_GROUP but only include related galleries from group1,group2 or group3 if the gallery does not have a category assigned to it?

Regards,
admin
Site Admin
Posts: 37242
Joined: Wed Sep 10, 2008 11:43 am

Re: Group Question

Post by admin »

" if the gallery does not have a category assigned to it?"

so you have galleries with out categories at all ?
Don't forget to run script update
tubeman
Posts: 534
Joined: Sat Mar 02, 2013 11:33 am

Re: Group Question

Post by tubeman »

Sorry what I meant is many galleries which do not have any categories, whos title is for example "hot3122" are in group1,group2 or group3. If I skip these groups then many galleries have no related categories. I am looking to skip group1,group2 and group3 and if a gallery does not have a category assigned from remaining 200 categories then show related gallery from group1,group2 or group 3. Is it possible?
admin
Site Admin
Posts: 37242
Joined: Wed Sep 10, 2008 11:43 am

Re: Group Question

Post by admin »

The only real solution that I see here is to make a of copy gallery's template (lets say custom_gallery_pic2) and set it to those galleries that are in groups 1-3

in custom_gallery_pic - you have regular related tag

in custom_gallery_pic2 - related w\o thoses groups
Don't forget to run script update
tubeman
Posts: 534
Joined: Sat Mar 02, 2013 11:33 am

Re: Group Question

Post by tubeman »

Hi,
If I do this do I need to change anything in the nginx rewrites for site?
admin
Site Admin
Posts: 37242
Joined: Wed Sep 10, 2008 11:43 am

Re: Group Question

Post by admin »

No
Don't forget to run script update
tubeman
Posts: 534
Joined: Sat Mar 02, 2013 11:33 am

Re: Group Question

Post by tubeman »

Hi,
I tried doing this for content_page, so I created content_page2, so on content_page I have regular related tag and on content_page2 I skipped group1-3. Results still not correct. Am I missing something here?
admin
Site Admin
Posts: 37242
Joined: Wed Sep 10, 2008 11:43 am

Re: Group Question

Post by admin »

did you set that contant_page2 as a template for your gallery?
Don't forget to run script update
tubeman
Posts: 534
Joined: Sat Mar 02, 2013 11:33 am

Re: Group Question

Post by tubeman »

How do I do that?
admin
Site Admin
Posts: 37242
Joined: Wed Sep 10, 2008 11:43 am

Re: Group Question

Post by admin »

select gallery, click edit, field = template
Don't forget to run script update
Post Reply