NavigationUser loginSpecial FeatureRelated Books |
Image Gallery AccessSubmitted by law on Sat, 04/07/2007 - 00:09.
This as been a frustrating exercise. Based upon the desire to provide category and/or role based access to select content, my first contributed module discovery was Taxonomy_Access_Control. It is a sweet concept. And worked like a charm for the intended purpose. Then I wanted to add images. And an image gallery. Enter mass confusion. The Image Module was an easy find. And, it seemed to meet the requirements. I got all manner of slick additions to the Administer functions. Under Content Management, there is a new Image Gallery function to define galleries - just like the content. Sweet! Weights, parent-child relationships. Oh! I'm going to like this! Nifty little Test Gallery, with two children. It mimics layout I want. I added a Primary Link to the Test gallery. Click on the Gallery link, and you see the sub-galleries - the children. Sweet. Go to Blocks, and select a location for the "new" Random Image. Even sweeter. Run back into Access Control, and set all roles to view images. Logout, and what do you see? Nothing. ARGH! There's the Random Image block. With nothing under it. There's the Gallery link, but the galleries are empty. Yes. I can see an image in a post. But that's it. Hunt, change, hunt, change. Nothing. The resolution? Galleries are a form of categories - vocabulary and terms. Guess where they're controlled. Uh huh. Taxonomy Access control. Well d'oh. Oh. But it's not that simple. If you forget to check the little "list" boxes, the selected roles can see the images and the random images, but not "list" the galleries. Drupal is certainly turning out to be a whole new mindset. And it's far more than theming. Trackback URL for this post:http://notebookhacks.com/trackback/43
|