0
Welcome Guest! Login
0 items Join Now

Template-width-changer for 12-column-layout of gantry

  • Re: Template-width-changer for 12-column-layout of gantry

    Posted 13 years 8 months ago
    • HI

      This is not working for me using Reflex 1.7

      Do you have any help for me to make the template wider than 960.

      I changed the template details.xml and uploaded the mywidth.php and the site collapsed to very narrow width?

      Thanks for you help

      PETER

      Henning wrote:
      This is only for gantry with 12 columns (in Joomla 1.5):
      it gives you an option in the template parameters to change the width of the template based on the width of a single column: default is 60px.
      the width of the template will be calculated like this:
      (12 * column-width) + 240px
      example:
      (12 * 60px) + 240px = 960px
      (12 * 70px) + 240px = 1080px
      (12 * 80px) + 240px = 1200px

      in templateDetails.xml add at the end of the code but before </params></install>
       <param name="experiment" type="gspacer" default="" description="" label=" " glabel="EXPERIMENTAL" />
                  <param name="dyngrid" default="60" type="text" class="text-short" label="mywidth"/>

      As always be sure to clear all kinds of caches and more important: keep a backup of your files.

      move the file mywidth.php into the features-folder of your template.
      It leaves styledeclaration.php untouched ...

      Djamil was so nice to pick up and improve my idea, so the credits for the code go to Mr. Legato.

      Don't forget to clear your Joomla cache (in the backend under "tools") to make this work ...
    • Henning's Avatar
    • Henning
    • Preeminent Rocketeer
    • Posts: 29362
    • Thanks: 954
    • Volunteer

    Re: Template-width-changer for 12-column-layout of gantry

    Posted 13 years 8 months ago
    • It's not working that way in J 1.7 ... of course not!

      Perhaps you want to read what you quoted:
      This is only for gantry with 12 columns (in Joomla 1.5)!

      I just have to repeat it again:
      This is only for gantry with 12 columns (in Joomla 1.5)!

      Got that?

      Right ... you should just read the the post right before your post.
      David was so nice to write things up for Joomla 1.7:
      www.rockettheme.com/forum/index.php?f=30...pic&start=45#p698654
  • Re: Template-width-changer for 12-column-layout of gantry

    Posted 13 years 8 months ago
    • HI David,
      Thanks for such clear instructions. I was able to get the results but my Maintop Position modules got messed up...Instead of showing 3 positions (out of 4 available) scrolling in my Mercado Template for J1.7 now the positions are not equally assigned in the given space in the Main body..and the third module is overflowing into the next line. So with the width expanded the module positions did not expand proportionately. I guess the widths of these positions is calculated based on the new width. Might you know what do I need to do to adjust that back ..Which files do I need to edit for that?

      Also...can I move the Cart position to little right to align with the ending side of the right Sidepanel?
      I have attached the screen shots how it looks with widths 60 and 80.

      Thanks,
      Bhupinder
    • Henning's Avatar
    • Henning
    • Preeminent Rocketeer
    • Posts: 29362
    • Thanks: 954
    • Volunteer

    Re: Template-width-changer for 12-column-layout of gantry

    Posted 13 years 8 months ago
    • David Goode's Avatar
    • David Goode
    • Preeminent Rocketeer
    • Posts: 17058
    • Thanks: 890
    • Web Designer and Host

    Re: Template-width-changer for 12-column-layout of gantry

    Posted 13 years 8 months ago
    • Thanks Henning,

      I must try and make some time to collate our work on this one so we have a list of link for what is available and tested.

      Cheers. 8)

    • 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
  • Re: Template-width-changer for 12-column-layout of gantry

    Posted 13 years 8 months ago
    • Thanks Henning! The new code works better. It doesn't give the symmetric look with both the sidepanels and simply makes the whole thing wider which is fine.

      For some reason some of my modules that I have assigned to the extreme Right sides such as in (Custom HTML) Bottom and (Google Translate) Maintop positions do not go all the way to the Right like the Ecwid Cart module in the Top-F position goes all the way to the Right. The cart module behaves well even in Bottom and Maintop positions but any other module (like Google Translate in Main Top position doesn't go all the way to the Right). I checked the positioning in Gantry and can't figure out what might be different for these modules and why are they not behaving properly.

      Please see the screeshot from my localhost. I haven't implemented this on my actual site ..just wanted to try out on localhost.
      Thanks,
      Bhupinder
  • Re: Template-width-changer for 12-column-layout of gantry

    Posted 13 years 8 months ago
    • Henning's Avatar
    • Henning
    • Preeminent Rocketeer
    • Posts: 29362
    • Thanks: 954
    • Volunteer

    Re: Template-width-changer for 12-column-layout of gantry

    Posted 13 years 8 months ago
    • ... keep in mind that not all widths are possible.
      Everything is based on the width of the smallest single column width.
      To learn more about that:
      960.gs/

      There is no way to change that ...
  • Re: Template-width-changer for 12-column-layout of gantry

    Posted 13 years 8 months ago
    • THANKS,
      ITS OK :)
  • Re: Template-width-changer for 12-column-layout of gantry

    Posted 13 years 8 months ago
    • I have tried with the Modulus template using Joomla 1.7 and it seems to work well..

      Thank you guys!! 8)

      Louise
    • Joomla Version: 1.7.5
      Wordpress Version: 3.3.1
      Using: Firebug 1.8.2, Style Master 4.6 & Altova MissionKit 2011
      Books Reading:CSS: The Missing Manual
      Website: www.cool-freebies.co.uk - Template Modulus
      Website: www.cool-freebies.co.uk/wordpress - Template Modulus

Time to create page: 0.093 seconds