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
Posts: 27300
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
Posts: 9
OK, thank you very much, I will look it up.
Kind regards,
Marjan
Posts: 1857
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.Posts: 9
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
Posts: 1857
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.)