@bharat and G3 team:
I run into interesting situation
"Hide" module extends viewable() method of the item in order to hide it.
it work on general level when enumerating collection's $children list. But in order to see items outside of the current page, I was doing to following in album.html.php
$siblings = $item->children();
and then comparing items in $children and $siblings, anything what does not match assumed to be outside of current page.
Interesting part is that when doing $siblings[i]->viewable() it would not take in consideration override above even though $siblings[i] is an item.
Why are two different? Can I tell $siblings list to take override in consideration?
Posts: 2466
bump
Posts: 2466
bump
Posts: 2466
Bharat or Dave?
Posts: 27300
I have pinged Bharat to chime in, but life/work is taking priority right now.
If I knew the answer I would try.
The hide module is giving me some issues as well.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 7994
I suspect what we need to do is to improve the hide module to overload Item_Model::children to do the right thing. I took at stab at this and checked it in under https://github.com/gallery/gallery3-contrib/commit/228946e98cbb87f115a8a2440cda395c9706fcb8 - this is probably not the only place that we need to fix up the implementation. Let me know if this works.
---
Problems? Check gallery3/var/logs
file a bug/feature ticket | upgrade to the latest code! | hacking G3? join us on IRC!
Posts: 2466
Did not help (assuming that the only thing I need to do is to place the file in libraries folder)
http://photo.dragonsoft.us/chicago/05-11-08_1424
Please note that photo page navigation is working as intended, while thumb navigator and colorbox does not.
Code which is doing enumeration is as following (from the context of photo page)
Serge
_____________________________________________
Photo Gallery | GreyDragon Theme | Follow on Twitter
Posts: 7994
Hm. Can you tell me the steps to set up a test case for this? If I can reproduce it, I can fix it. I'm surprise that this isn't working, since the $item->parent()->children() call should filter out the non-viewable items for you should be able to use $siblings without the additional $sibling->viewable() call.
Did you get the latest version of the hide module from github? You might try that just to be sure that you've got the right code.
---
Problems? Check gallery3/var/logs
file a bug/feature ticket | upgrade to the latest code! | hacking G3? join us on IRC!
Posts: 2466
Re-uploaded, same thing
test case is code above, sample page is a link above
if you'd like live code, please download thumbnav module and see for yourself
Serge
_____________________________________________
Photo Gallery | GreyDragon Theme | Follow on Twitter
Posts: 2466
bump
any news on that?
Serge
_____________________________________________
Photo Gallery | GreyDragon Theme | Follow on Twitter