Add Gallery to Welcome Zone

Post

Posted
Rating:
#5816 (In Topic #1380)
Avatar
Standard member
iamageneralist is in the usergroup ‘Fan in action’

I would like to add a public/guest viewable gallery to the Welcome Zone

I have galleries in the Site Zone that are only viewable by members. I would like to add one gallery that is viewable by the public (guests) without having to log on in the Welcome Zone. Is this possible? If so, how do I add a gallery to the Welcome Zone or move one there from the Site Zone? Thanks.
Online now: No Back to the top

Post

Posted
Rating:
#5820
Avatar
Site director
Chris Graham is in the usergroup ‘Administrators’
Hi,

Galleries don't exist in a zone. They exist only under the module they relate to (i.e. galleries module), and that module is what exists in a zone.

It is possible to have a module appear in multiple zones, using the redirects system (Admin Zone > Structure > Redirects). You'd set up a transparent redirect, :galleries → site:galleries.

It is also possible to do various things to make it appear like each gallery module is separate, such as altering the breadcrumbs.

If you edit the breadcrumbs (Admin Zone > Structure > Breadcrumb overrides), you can define a rule so that an individual gallery called test (just an example) goes right back to Home with no other breadcrumbs:

Code

   <substitution match_key=":galleries:browse:test">
      <link label="{!HOME}">:</link>
   </substitution>

You'd link direct to this gallery rather than the whole galleries module.

With some thought and creativity you can then make it look to the user like the galleries are in different parts of the site.

I won't pretend this is simple. At it's core Composr is a module-based system, which it draws many strengths from - this is working against the normal operation of that kind of system.


Become a fan of Composr on Facebook or add me as a friend. Add me on on Twitter. Follow me on Minds (where I am most active). Support me on Patreon

Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about Composr whenever you see the opportunity or support me on Patreon.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying Composr on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Online now: No Back to the top

Post

Posted
Rating:
#5824
Avatar
Standard member
iamageneralist is in the usergroup ‘Fan in action’
Thanks Chris for your response.

A few follow up questions and clarifications.

1- Is it possible to have more than one gallery module on a website or are we limited to one. Could you have one in the Welcome zone and one in the Site zone for example? If so how do I add a gallery module to the Welcome zone?

2- The website structure, if I understand correctly, is that there is a portion (which I think is a zone called Welcome and has a path of index.php?page=….)  that is accessible by the public and there is a limited access section for which you need to log on (which I think is a zone called Site and has a path of /site/index.php?page=……)

I can place a block on a page in the public Welcome zone that displays thumbnails from a gallery but because the gallery module is in the restricted Site zone if you click on the thumbnail to see the full image or to view the gallery you get a guest does not have authorization notice. Wouldn't setting up a redirect have the same issue?

3- If I can't have some galleries that are in the Welcome zone and accessible for guests and others in the Site zone that are restricted would you have a suggestion for a work around? Just create a hierarchy of pages for the public images? Is this something that categories (which I have not had a chance to fully wrap my head around) could provide some structure and search capability for? Would there be another feature/tool in Composr that would be better suited to build this functionality off of? Or, is the best solution to move the gallery module to the Welcome zone and then use permissions to restrict viewing of some galleries to logged in members. If so, what is the best way to move the module.

To restate: the functionality that I am trying to achieve is having a gallery that can be viewed by the public without a logon and other galleries that are only visible to particular usergroups, requiring a logon.

Thanks
Online now: No Back to the top

Post

Posted
Rating:
Item has a rating of 5 (Liked by Chris Graham)
#5825
Avatar
Site staff
Adam is in the usergroup ‘Super-moderators’
Hi. I don't have specific answers for your recent questions, but if you have no use for the Welcome Zone you can turn it off and make the Site zone the public zone. This will likely solve your galleries issues as you can set Permissions on each Gallery via the edit screen (and any other modules to suit your requirements).

spz.png
If you wish to keep the Welcome Zone, an alternative method would be to use Permissions (and the Permissions Tree Editor) to make the Site Zone and the Galleries module viewable to Guests (this is what I did, but you might need to secure some other modules for Members only).

view_access.png
Online now: No Back to the top

Post

Posted
Rating:
#5830
Avatar
Site director
Chris Graham is in the usergroup ‘Administrators’
Adam's answer is a good one.

If you prefer to keep separate welcome and site zones you can also 'move' the galleries module.
Composr Tutorial: Tools for subsites and subcommunities - Composr

Not using the galleries addon and just manually attaching images to a hierarchy of Comcode pages would be another good workaround (as you suggest). Search would just be done as part of the Comcode page search function (i.e. like searching any other Comcode pages).

More background…

You can't have 2 copies of a Composr module unless you give it a different name and duplicated anything linking to it to point to the new name. Actually that'd be the least of it, as you'd need to also create a whole new set of database tables, and also duplicate the module for managing the gallery content.

Think of it like this - different parts of Composr need to be able to generate a link to galleries/images/videos. To do that, they link in to the gallery module, asking it to display that particular gallery/image/video. That's very fundamental to how a system like Composr works.
Some other systems work on the basis of a single tree structure with different kinds of content added at any position in that single shared structure.
Each has its advantages and disadvantages.


Become a fan of Composr on Facebook or add me as a friend. Add me on on Twitter. Follow me on Minds (where I am most active). Support me on Patreon

Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about Composr whenever you see the opportunity or support me on Patreon.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying Composr on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Online now: No Back to the top
1 guest and 0 members have just viewed this.

Statistics

Users online:

Salman, Manu, John Connor, gabriel58, MVLipwig, ManojSree, Philip, babu

Forum statistics:
  • 1,079 topics, 5,225 posts, 6,071 members
  • Our newest member is hutbephotavico
Birthdays:
Back to Top