0
Welcome Guest! Login
0 items Join Now

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

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

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

    Posted 14 years 6 months ago
    • THIS is not valid anymore for Responsive templates.
      This is only for gantry templates with 12 columns (in Joomla 1.5):
      (for J1.7/J2.5 see here )
      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 ...
    • 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 14 years 6 months ago
    • Thanks Henning 8)

      This little project just saved me hours and is working well for my client.

      Once I complete their site I will post a link here so you can see good this little converter is.

      Once again thanks to Henning for the idea and also to Djamil for expanding on it.

      I am a very happy designer now.

    • 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 14 years 6 months ago
    • Henning, THANK YOU, magician ! 8)

    • Alexx.
    • Henning's Avatar
    • Henning
    • Preeminent Rocketeer
    • Posts: 29362
    • Thanks: 954
    • Volunteer

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

    Posted 14 years 6 months ago
    • Most of the templates need some extra css to look perfect with this.
      (most of the times backgrounds)
      See this as a dev-version ...

      :-)
    • 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 14 years 6 months ago
    • For those of you who need to adjust the width of a 16 column gantry layout I have attached a modified version of the mywidth.php as mentioned earlier in this thread.

      In effect all I have done is to change all instances of 12 to 16 and where the margins total 240px in a 12 column grid, this needs to be 320px in a 16 column grid. This then calulates in the same way as the original 12 column version.

      Just follow all of the instructions in Henning's post and substitute the attached file. 8)

      Remember - Backup and save files BEFORE you need them!

      And I need to remember to add files when I post :oops:

    • 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
    • Henning's Avatar
    • Henning
    • Preeminent Rocketeer
    • Posts: 29362
    • Thanks: 954
    • Volunteer

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

    Posted 14 years 6 months ago
    • Nice! 8)
  • Re: Template-width-changer for 12-column-layout of gantry

    Posted 14 years 6 months ago
    • David Goode wrote:
      For those of you who need to adjust the width of a 16 column gantry layout I have attached a modified version of the mywidth.php as mentioned earlier in this thread.

      In effect all I have done is to change all instances of 12 to 16 and where the margins total 240px in a 12 column grid, this needs to be 320px in a 16 column grid. This then calulates in the same way as the original 12 column version.

      Just follow all of the instructions in Henning's post and substitute the attached file. 8)

      Remember - Backup and save files BEFORE you need them!

      Hi, David !

      I need to adjust the width of a 16 column gantry layout, but can not understand, what exectly I have to change in 'mywidth.php' ? Just change 12 to 16 and 240 to 320 - not work. May be not only in this file ?

    • Alexx.
    • 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 14 years 6 months ago
    • Hi there,

      Did you carry out the instructions in the original post at the top of this thread?

      You need to do those first, then use the file attached to my previous post.

      Hope this helps.

    • 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 14 years 6 months ago
    • I accepted all instructions, trick for 12 column layout is ok.
      Trick for 16 columns is NOT working. May be I miss something.

      ... and now I see your attached file ! :D

      Alexx.

    • Alexx.
    • Henning's Avatar
    • Henning
    • Preeminent Rocketeer
    • Posts: 29362
    • Thanks: 954
    • Volunteer

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

    Posted 14 years 6 months ago
    • But you already changed your site to a 16 collumn-layout? That part is working?

Time to create page: 0.074 seconds