0
Welcome Guest! Login
0 items Join Now

ROCKETTHEME IS CLOSING ON JUNE 30, 2025. As a thank-you to our community, enjoy 50% off all themes with the promo code THANKYOU before we shut down. Read our Farewell Blog Post for more details.

Hiding an empty module

    • ces's Avatar
    • ces
    • Newbie
    • Posts: 9
    • Thanks: 0

    Hiding an empty module

    Posted 14 years 1 month ago
    • Under 1.6 there is no version of Advanced Module Manager.

      I have Gantry installed and am using it with Mercado. Can anyone advise on how to prevent a module displaying if the content is empty?
    • prim's Avatar
    • prim
    • Preeminent Rocketeer
    • Posts: 17290
    • Thanks: 217

    Re: Hiding an empty module

    Posted 14 years 1 month ago
    • If you mean the main body thing then you can check the template settings.
    • Please reply with a direct link to the issue & create a new thread for each new issue.

      A template is only as good as the content that goes into it ;) - DanG
    • ces's Avatar
    • ces
    • Newbie
    • Posts: 9
    • Thanks: 0

    Re: Hiding an empty module

    Posted 14 years 1 month ago
    • prim wrote:
      If you mean the main body thing then you can check the template settings.
      No, I mean say a sidebar
    • prim's Avatar
    • prim
    • Preeminent Rocketeer
    • Posts: 17290
    • Thanks: 217

    Re: Hiding an empty module

    Posted 14 years 1 month ago
    • Yeah, you can disable the side-bar menu in the template settings.
    • Please reply with a direct link to the issue & create a new thread for each new issue.

      A template is only as good as the content that goes into it ;) - DanG
    • ces's Avatar
    • ces
    • Newbie
    • Posts: 9
    • Thanks: 0

    Re: Hiding an empty module

    Posted 14 years 1 month ago
    • I'm not specifically referring to the sidepanel.

      What I am asking is if I have a module published to one of the numerous possible positions (e.g. top-a) and it's empty, how do I prevent it from displaying.
    • Kat05's Avatar
    • Kat05
    • Preeminent Rocketeer
    • Posts: 25898
    • Thanks: 334

    Re: Hiding an empty module

    Posted 14 years 1 month ago
    • ces wrote:
      I'm not specifically referring to the sidepanel.

      What I am asking is if I have a module published to one of the numerous possible positions (e.g. top-a) and it's empty, how do I prevent it from displaying.
      hi there,

      why would you publish an empty module? can you not unpublish it?
      if there is no module published in a certain position, then that position will collapse and the space will be taken up by the neighbooring modules.

      if you feel like we're misunderstanding your question, feel free to post a link and screenshots so we understand you better.

      kat :)
    • Kat05 / QA Lead & Support / Germany
    • ces's Avatar
    • ces
    • Newbie
    • Posts: 9
    • Thanks: 0

    Re: Hiding an empty module

    Posted 14 years 1 month ago
    • Hi,
      My site is localhost/dev so a bit tricky to send links. But hopefully this explanation will be clear!- I think in your last post you understood the issue but not how it would arise.

      I have additional information to display that is dynamically generated only when a specific module is shown in mainbody. So I want to be able to show the module holding this extra dynamic information some of the time but not always.

      If I publish this 'extra' module to all pages, then it will always show, but be empty where the relevant mainbody isn't being shown. What I want in that instance is for the 'extra' module not to be shown at all.
    • ces's Avatar
    • ces
    • Newbie
    • Posts: 9
    • Thanks: 0

    Re: Hiding an empty module

    Posted 14 years 1 month ago
    • While the templates for RocketTheme are good, the support is (I'm sorry to say) pretty weak. I responded to a support point within 15mins and I've had to wait 4 days and still no response.

      I can't see myself buying other RT products in future.
      :cry: :cry: :cry:
    • Kat05's Avatar
    • Kat05
    • Preeminent Rocketeer
    • Posts: 25898
    • Thanks: 334

    Re: Hiding an empty module

    Posted 14 years 1 month ago
    • hi again,

      i am sorry but i do not have a reply for you here. i do understand your request, but i am not able to help you with this customization. i will ask the other moderators for help, but i believe this requires some hacking of the template.

      kat :)
    • Kat05 / QA Lead & Support / Germany
  • Re: Hiding an empty module

    Posted 13 years 7 months ago
    • I''m having the same problem - the module in question is "HiddenByJuga". What it does is render results based on the extended profile of the user. ie Buyers have one profile, Sellers have another. The module (in my case) displays all the Seller tools to update their products, but should not display that to Buyers. So, the module must be published, but for Buyers, the module renders nothing, and leaves blank space in the sidebar (Crystalline for me).

      My sloppy work around is to put redundant links in there for the Buyers so that there is at least something there, though is no the result desired by myself or my client....

      Is there somewhere in the template, or gantry that asks "is there content to be rendered" before it constructs the output based on all the settings. Something like:

      if (empty($module->content)) {
      return true;
      }

Time to create page: 0.094 seconds