0
Welcome Guest! Login
0 items Join Now

Multiple RokBox links opening mutiple Custom HTML modules?

    • bobjenson's Avatar
    • bobjenson
    • Sr. Rocketeer
    • Posts: 113
    • Thanks: 0
    • Web Designer and Online Marketing

    Multiple RokBox links opening mutiple Custom HTML modules?

    Posted 9 years 10 months ago
    • I've managed to get the RokBox plug to popup open a Custom HTML module. But is there a way to have different RokBox links open different Custom HTML modules?
      EG. Link 1 would popup the 'Join Now' Custom HTML module
      Link 2 would popup the 'Prices' Custom HTML module
      etc

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

    Re: Multiple RokBox links opening mutiple Custom HTML modules?

    Posted 9 years 10 months ago
    • yes - wouldn't it be just more of the same? How did you do it DOM object method?

      Could you please post a URL to your site (this can be done in the secure area tab if you prefer) so we can look for you. Without a link to page where the problem is on your site it is quite hard for us to provide the best solution due to so many variables. We try to provide file names and line numbers for code changes and if changes have already been made then our advice may be incorrect.


      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.
    • bobjenson's Avatar
    • bobjenson
    • Sr. Rocketeer
    • Posts: 113
    • Thanks: 0
    • Web Designer and Online Marketing

    Re: Multiple RokBox links opening mutiple Custom HTML modules?

    Posted 9 years 10 months ago
    • Thanks for the quick reply.

      I used this code for the link;
      <a href="#" class="readon" data-rokbox="" data-rokbox-element="#rt-popupmodule"><strong>The link text</strong></a>

      And for the 1 Custom HTML module I set its position to 'popup'

      I've added the dev site to the secure tab.

      Thanks again.
    • Last Edit: 9 years 10 months ago by bobjenson.
    • MrT's Avatar
    • MrT
    • Preeminent Rocketeer
    • Posts: 101084
    • Thanks: 13484
    • Web Designer/Developer

    Re: Multiple RokBox links opening mutiple Custom HTML modules?

    Posted 9 years 10 months ago
    • Ok - so you are using a DOM element - but you using one we created which we have already hidden.

      So the way to do this is is for you custom html module(s) wrap them the content within a div with an ID:
      <div id="mymodule1">
         .... your module content ...
      </div>

      And publish them to (say) debug position and give them a module class suffix of " nomarginall nopaddingall".

      Then you hide them from view in the debug position by the use of CSS:
      #rt-debug #mymodule1 {
          display: none;
      }

      Now you just change your rokbox link to use "#mymodule1" instead of "#rt-popupmodule"

      Give that a whirl.

      This is how to create a custom CSS compatible with Gantry 4...

      Simply create a file called "<TEMPLATENAME>-custom.css" and put this file in the CSS folder of the template (where <TEMPLATENAME> is the name of the template as seen in template manager e.g. rt_iridescent would be rt_iridescent-custom.css). GANTRY4 will automatically load this CSS file. If you wish, you can also have browser specific files by appending, for example, "-ie9" making the filename "<TEMPLATENAME>-custom-ie9.css"



      Regards, Mark.
    • The following users have thanked you: bobjenson

    • 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.
    • bobjenson's Avatar
    • bobjenson
    • Sr. Rocketeer
    • Posts: 113
    • Thanks: 0
    • Web Designer and Online Marketing

    Re: Multiple RokBox links opening mutiple Custom HTML modules?

    Posted 9 years 10 months ago
    • Thanks Mark, that makes sense, I understand.
      I do have a concern though regarding display:none and possibly Google misinterprecting that as me trying to keyword stuff.
      I've already made a post regarding this in the rok-sprocket forum. Is it agaist the RT forum rules to post a link to it here?
    • MrT's Avatar
    • MrT
    • Preeminent Rocketeer
    • Posts: 101084
    • Thanks: 13484
    • Web Designer/Developer

    Re: Multiple RokBox links opening mutiple Custom HTML modules?

    Posted 9 years 10 months ago
    • bobjenson's Avatar
    • bobjenson
    • Sr. Rocketeer
    • Posts: 113
    • Thanks: 0
    • Web Designer and Online Marketing

    Re: Multiple RokBox links opening mutiple Custom HTML modules?

    Posted 9 years 10 months ago
    • MrT's Avatar
    • MrT
    • Preeminent Rocketeer
    • Posts: 101084
    • Thanks: 13484
    • Web Designer/Developer

    Re: Multiple RokBox links opening mutiple Custom HTML modules?

    Posted 9 years 10 months ago
    • Both topics ask about display none - so yes they have different questions as well but also the same question in both topics.

      Anyway - no matter - have I answered your concern ok?

      Also, just another couple of tips - it's always best to keep a topic to one question (or very closely related questions), and it's best to post in the "template" forum in the first instance as many template have overrides to the extensions and this will have a bearing on our answers - some aspects of our answer may only apply to the extension in that particular template. So only use the extension forum if you are sure it's nothing template related. Having said all that, I can see that the display none question is appropriate to the roksprocket forum.

      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.

Time to create page: 0.092 seconds