0
Welcome Guest! Login
0 items Join Now

Module row positions - exception?

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

    Re: Module row positions - exception?

    Posted 12 years 4 months ago
    • it also depends what you have added in your index.php ...
      I never killed a site by adding a position.

      But just to be sure do a backup and work on a local copy of your website.
  • Re: Module row positions - exception?

    Posted 12 years 4 months ago
    • to recap here's what I've done.

      In index.php of the template folder, I've added this after the "showcase":
      <?php /** tim adding a module row after this **/ ?>

      <div id="rt-exampleposition">
      <?php echo $gantry->displayModules('example','standard','standard'); ?>
      <div class="clear"></div>
      </div>

      <?php /** tim end **/ ?>

      In the templateDetails.xml of the template folder, I've added this:
      <position>example-a</position>
      <position>example-b</position>
      <position>example-c</position>
      <position>example-d</position>
      <position>example-e</position>
      <position>example-f</position>

      In the template-options.xml of the template folder, I've added this:
      <fields name="example" type="position" label="TimsCustom_POS">
      <field name="layout" type="positions" default="3,3,3,3" label="">
      <schemas>1,2,3,4,5,6</schemas>
      <words>2,3,4,5,6,7,8,9,10</words>
      </field>
      <field name="showall" type="toggle" default="0" label="FORCE_POS"/>
      <field name="showmax" type="showmax" default="6" label="POS_COUNT"/>
      </fields>

      Should this work, or am I missing anything? I haven't uploaded the files yet, because I'm scared :) I want to make sure I'm doing this correctly since the tutorial is outdated. Please confirm the above, if you don't mind please.

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

    Re: Module row positions - exception?

    Posted 12 years 4 months ago
    • <?php /** tim adding a module row after this **/ ?>
      <?php /** tim end **/ ?>
      is useless ...but the rest should work
  • Re: Module row positions - exception?

    Posted 12 years 4 months ago
    • :) thanks. Like I said, I'm a bit concerned so I wanted a good comment to see where to "remove" my revisions if I break something. I'll give this a try.
  • Re: Module row positions - exception?

    Posted 12 years 4 months ago
    • Ok, so I added the position. But how do I make it look like "showcase" row...regarding the info in the "Style" tab of my template manager?

      See the new position...which is a white bar on this page...which says "View all updates"
      logochairs.com/j25cms/index.php/product-...canvas-chair-item-12

      Also, I have the following settings in the "Layouts" tab:
      Positions: 2
      10|2
      Force positions: On
      Position Count: 2

      The module you are seeing displayed above is in position: example-a

      Do you know why this isn't working as forced position 10|2 since this is in example-b position?
    • Henning's Avatar
    • Henning
    • Preeminent Rocketeer
    • Posts: 29362
    • Thanks: 954
    • Volunteer

    Re: Module row positions - exception?

    Posted 12 years 4 months ago

Time to create page: 0.049 seconds