Search results from hidden albums

Ploink

Joined: 2010-05-09
Posts: 9
Posted: Wed, 2014-02-12 11:06

Dear forum members,

On my site (beeldbank-dhc.nl) i have an album hidden from visitors. This album is supposed to be invisible because it's content needs sorting by a couple of editors before it is published.
Unfortunately, searching the site or clicking on a lable in the tag cloud gives results from that hidden album or error pages, 404, page not found.
Does anyone know how to prevent these results?

Thank you very much in advanve for any help.

Kind regards,

Marjan

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Wed, 2014-02-12 14:23

The Tag cloud does not take permissions into account for the display of the cloud.
You would have to rewrite the tag cloud portion of the module to get the desired results.
There was a ticket for this in the tracker.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
Ploink

Joined: 2010-05-09
Posts: 9
Posted: Wed, 2014-02-12 14:59

OK, thank you very much, I will look it up.
Kind regards,
Marjan

 
tempg

Joined: 2005-12-17
Posts: 1857
Posted: Sat, 2014-02-15 07:11

I think that you can use if(access::can("view",$theme->item()) { } as part of the foreach loops to control what thumbs are returned/displayed, but it won't help the paginator count, the size of the tag name, etc. NOTE that "$theme->item()" may need to change depending on what type of page it's used on.

 
Ploink

Joined: 2010-05-09
Posts: 9
Posted: Sat, 2014-02-15 11:07

Hi Dave and tempg,

Thanks for your help/suggestions. I have looked up the ticket Dave suggested and on https://gist.github.com/grief-of-these-days/245773 indeed, I found the solution. I changed tag.php and it works!
No more tags from hidden albums.

Thank you so much.

Kind regards,

Marjan

 
tempg

Joined: 2005-12-17
Posts: 1857
Posted: Sat, 2014-02-15 14:38

Glad you got that working; I was looking more at your comment about search. (But you can probably use the same method for search that used in the ticket linked.)