0
Welcome Guest! Login
0 items Join Now

SOLVED Particle visable to admins only

    • MartiX's Avatar
    • MartiX
    • Jr. Rocketeer
    • Posts: 46
    • Thanks: 0

    SOLVED Particle visable to admins only

    Posted 3 years 8 months ago
    • Hi,
      Is it possible to have paricle visable to admins only?
      Like we have the utility class to show only for specific devices (desktop, phone, etc.) is it something like that but to show for logged in users with a specific role?

      Thanks
    • MrT's Avatar
    • MrT
    • Preeminent Rocketeer
    • Posts: 101084
    • Thanks: 13481
    • Web Designer/Developer

    Re: SOLVED Particle visable to admins only

    Posted 3 years 8 months ago
    • Yes. Instead of putting the particle directly on the layout of your outline put a "module position" particle in it's place and give that module position a "key" (position name). Next, create a "Gantry 5 particle" module and pick the same type of particle that you previously were using and complete the rest of the setup of that particle. Then, assign that module to the position that you created. Finally, give the module an access level of "registered" (or what access level required) so that only users who are members of an access grouyp that have that access level can see that module.

      Regards, Mark.
    • Please search forums before posting. Please make sure your post includes the version of the CMS you are using and a link to the problem. Annotations on screenshots can also be helpful to explain problems/goals. Please use the "secure" tab for confidential information.
    • MartiX's Avatar
    • MartiX
    • Jr. Rocketeer
    • Posts: 46
    • Thanks: 0

    Re: SOLVED Particle visable to admins only

    Posted 3 years 8 months ago
    • Thanks Mark,
      but just to be clear, is that instruction for Wordpress? When you saying a module, do you mean a widget?
    • MrT's Avatar
    • MrT
    • Preeminent Rocketeer
    • Posts: 101084
    • Thanks: 13481
    • Web Designer/Developer

    Re: SOLVED Particle visable to admins only

    Posted 3 years 8 months ago
    • Oops, my bad that was a Joomla answer - but it's virtually the same for Wordpress. You can create a "Gantry 5 particle" widget and put any particle within that (think of it as a wrapper). Then you can assign that widget to a widget position on the layout of your outline.

      Now, the bit that is left is the control of it's visibility by specific user role or login status. To do that you use a Wordpress plugin - there are several available including "if widget" and "widget options". Joomla has that functionality natively, Wordpress does not.


      Regards, Mark.
    • Please search forums before posting. Please make sure your post includes the version of the CMS you are using and a link to the problem. Annotations on screenshots can also be helpful to explain problems/goals. Please use the "secure" tab for confidential information.
    • MartiX's Avatar
    • MartiX
    • Jr. Rocketeer
    • Posts: 46
    • Thanks: 0

    Re: SOLVED Particle visable to admins only

    Posted 3 years 8 months ago
    • Great, thanks Mark.
      I just thought that it's something build-in in Gantry and can get without an extra plugin.

Time to create page: 0.052 seconds