0
Welcome Guest! Login
0 items Join Now

Looking for help re module html (chromes) styles....

    • safeworld4women's Avatar
    • safeworld4women
    • Elite Rocketeer
    • Posts: 634
    • Thanks: 26
    • Website designer and Administrator

    Looking for help re module html (chromes) styles....

    Posted 13 years 5 months ago
    • Hi there
      I am trying to incorporate the 'Modules Anywhere' plugin into articles created with the Paradox Theme
      (this is the extension http://www.nonumber.nl/extensions/modulesanywhere )

      The reason is that I need to have small modules sitting in the content rather than in the traditional modular grid positions.

      While the extension works fine and I have placed modules inside articles OK I am unable to display the title of the module as well as the module contents.

      The developer of the extension just wrote to suggest I ask you guys
      Specifically the following:
      Best to ask the template devs for what the module html styles (chromes) are.

      Could someone let me know what I should be looking for?

      Thanks

      Andrew
    • My wife and I design, build and maintain websites - for non-profit organisations, therapists, artists, local community groups and small businesses.
    • Henning's Avatar
    • Henning
    • Preeminent Rocketeer
    • Posts: 29362
    • Thanks: 954
    • Volunteer

    Re: Looking for help re module html (chromes) styles....

    Posted 13 years 5 months ago
    • Module chromes are inside the html folder of your template in the file modules.php.
      (there as a "higher form" of chromes in the layouts folder of your template and in the gantry core ... but for now you really don't have to think about that)
      Just as an extra pointer ... check this ...
      www.gantry-framework.org/documentation/j...custom-module-chrome

      I would say this is advanced joomla stuff ...
    • safeworld4women's Avatar
    • safeworld4women
    • Elite Rocketeer
    • Posts: 634
    • Thanks: 26
    • Website designer and Administrator

    Re: Looking for help re module html (chromes) styles....

    Posted 13 years 5 months ago
    • Henning wrote:
      I would say this is advanced joomla stuff ...

      Hi Henning
      Yes it is horribly way out of my depth! But I had never used Joomla until about 2 years ago and now its my life! The only way to learn is to learn!
      By the way I think the link you meant to send was this http://www.gantry-framework.org/documentation/joomla/customize/custom-module-chrome

      I will go and read it now!

      Thanks for the reply mate!

      Andrew
    • My wife and I design, build and maintain websites - for non-profit organisations, therapists, artists, local community groups and small businesses.
    • safeworld4women's Avatar
    • safeworld4women
    • Elite Rocketeer
    • Posts: 634
    • Thanks: 26
    • Website designer and Administrator

    Re: Looking for help re module html (chromes) styles....

    Posted 13 years 5 months ago
    • Hi Henning again!

      Having looked through the links and the coding of the modules.php file I decided to give up!
      or rather a simpler way around the problem is to just add a title by hand inside a div surrounding the plugin code.
      I think if it was a simple matter of changing or working with the template coding or Gantry's module placement there was no problem. Trying to mix and match the Module Anywhere code to The RT Module code is just not worth the time and effort!

      Adding a module position - is no problem. I have done this on a couple of times using the excellent documentation here
      www.gantry-framework.org/documentation/j...ing-module-positions
      Hacking two sets of code together is beyond my time-pressure zones!

      But again I thank you for your help.

      Invaluable

      Best

      Andrew
    • My wife and I design, build and maintain websites - for non-profit organisations, therapists, artists, local community groups and small businesses.
    • Henning's Avatar
    • Henning
    • Preeminent Rocketeer
    • Posts: 29362
    • Thanks: 954
    • Volunteer

    Re: Looking for help re module html (chromes) styles....

    Posted 13 years 5 months ago
    • Hi Andrew,

      doh! Dont give up that fast ...

      you find this in modules.php:

      (... some code ...)
      function modChrome_standard($module, &$params, &$attribs)
      (... some code ...)

      means "standard" is the name of the modchrome!
      so the code using NonNumber 'Modules Anywhere' plugin
      should look like this
      {module Bottom A|standard}

      as you can see its {module [name of the mod-position] | [name of the modchrome] }

      But because Peter is such an awesome developer you can even use mod-suffxes like this:
      {module Bottom A|standard|moduleclass_sfx=box2}

      Really brilliant stuff ...
    • safeworld4women's Avatar
    • safeworld4women
    • Elite Rocketeer
    • Posts: 634
    • Thanks: 26
    • Website designer and Administrator

    Re: Looking for help re module html (chromes) styles....

    Posted 13 years 5 months ago
    • Henning
      You are a marvel to behold
      Your explanation is so clear and easy to understand
      Yes Peter is awesome!
      As it turned out I decided to go another route for the particular design job I am working on.
      Because I realised I was going to have to use the Mod Anywhere too many times (and because others will need to do stuff when i am not around) I took a different design view!
      Essentially I wanted to avoid using a second sidebar thus Mod Anywhere came into the equation
      In the end I dropped the idea and am using a second sidebar on a per menu basis with some hacking of the widths to achieve the 'look'

      While I am at it - I am about to post a question in the RokNavMenu section - if you happen to be around ...!

      Thanks muchly - especially for the encouragement. I will be using the Mod Anywhere later in the proceedings and this will solve the issue!

      Best

      Andrew
    • My wife and I design, build and maintain websites - for non-profit organisations, therapists, artists, local community groups and small businesses.
    • safeworld4women's Avatar
    • safeworld4women
    • Elite Rocketeer
    • Posts: 634
    • Thanks: 26
    • Website designer and Administrator

    Re: Looking for help re module html (chromes) styles....

    Posted 13 years 5 months ago
    • Henning wrote:
      Hi Andrew,

      doh! Dont give up that fast ...

      you find this in modules.php:

      (... some code ...)
      function modChrome_standard($module, &$params, &$attribs)
      (... some code ...)

      means "standard" is the name of the modchrome!
      so the code using NonNumber 'Modules Anywhere' plugin
      should look like this
      {module Bottom A|standard}

      as you can see its {module [name of the mod-position] | [name of the modchrome] }

      But because Peter is such an awesome developer you can even use mod-suffxes like this:
      {module Bottom A|standard|moduleclass_sfx=box2}

      Really brilliant stuff ...

      Just out of interests sake where does thje box2 come from?

      A
    • My wife and I design, build and maintain websites - for non-profit organisations, therapists, artists, local community groups and small businesses.
    • Henning's Avatar
    • Henning
    • Preeminent Rocketeer
    • Posts: 29362
    • Thanks: 954
    • Volunteer

    Re: Looking for help re module html (chromes) styles....

    Posted 13 years 5 months ago
    • safeworld4women's Avatar
    • safeworld4women
    • Elite Rocketeer
    • Posts: 634
    • Thanks: 26
    • Website designer and Administrator

    Re: Looking for help re module html (chromes) styles....

    Posted 13 years 5 months ago
    • Henning wrote:
      Ah, that's how you are supposed to do it!
      Not my convoluted and overstuffed css template overrides then!

      :)
    • My wife and I design, build and maintain websites - for non-profit organisations, therapists, artists, local community groups and small businesses.

Time to create page: 0.068 seconds