Multiple Rows in Items Tabbed Template?

2 months 3 weeks ago - 2 months 3 weeks ago #74606 by Dave LeDev
I'm not entirely sure how to modify this (duplicate) template to add multiple rows per tab. I believe I've narrowed down the sections I need to modify but don't know how to go about modifying them. Currently the template supports one row per tab. I'd like to support two or more rows. First off, the related areas:
item.xml
(line 84) <fieldgroups>
      <group>subtitle1</group>
      <group>subtitle2</group>
      <group>subtitle3</group>
      <group posrow="subtitle">subtitle_tab1</group>
      <group posrow="subtitle">subtitle_tab2</group>
      <group posrow="subtitle">subtitle_tab3</group>
      <group posrow="subtitle">subtitle_tab4</group>
      <group posrow="subtitle">subtitle_tab5</group>
      <group posrow="subtitle">subtitle_tab6</group>
      <group posrow="subtitle_wrap2">subtitle_tab7</group>
      <group posrow="subtitle_wrap2">subtitle_tab8</group>
      <group posrow="subtitle_wrap2">subtitle_tab9</group>
      <group posrow="subtitle_wrap2">subtitle_tab10</group>
      <group posrow="subtitle_wrap2">subtitle_tab11</group>
      <group posrow="subtitle_wrap2">subtitle_tab12</group>
      <group posrow="img_top">image</group>
      <group posrow="img_top">top</group>
      <group>description</group>
      <group posrow="bottom">bottom_tab1</group>
      <group posrow="bottom">bottom_tab2</group>
      <group posrow="bottom">bottom_tab3</group>
      <group posrow="bottom">bottom_tab4</group>
      <group posrow="bottom">bottom_tab5</group>
      <group posrow="bottom">bottom_tab6</group>
      <group posrow="bottom_wrap2">bottom_tab7</group>
      <group posrow="bottom_wrap2">bottom_tab8</group>
      <group posrow="bottom_wrap2">bottom_tab9</group>
      <group posrow="bottom_wrap2">bottom_tab10</group>
      <group posrow="bottom_wrap2">bottom_tab11</group>
      <group posrow="bottom_wrap2">bottom_tab12</group>
      <group>bottom</group>
      <group>renderonly</group>
   </fieldgroups>

item.php
(line 255) <!-- tab start -->
         <div id="<?php echo $tab_id; ?>" class="tabbertab">
            <h3 class="tabberheading"><?php echo $tabpos_label; ?></h3><!-- tab title -->
            <div class="flexi lineinfo">
               <?php foreach ($item->positions[$tabpos_name] as $field) : ?>
               <div class="flexi element field_<?php echo $field->name; ?>">
                  <?php if ($field->label) : ?>
                  <span class="flexi label field_<?php echo $field->name; ?>"><?php echo $field->label; ?></span>
                  <?php endif; ?>
                  <div class="flexi value field_<?php echo $field->name; ?>"><?php echo $field->display; ?></div>
               </div>
               <?php endforeach; ?>
            </div>
         </div>
         <!-- tab end -->
The most I know is that I want to use Bootstrap to control the rows. Any suggestions appreciated.

Please Log in or Create an account to join the conversation.

2 months 3 weeks ago #74624 by ggppdk
Hello

you want to add multiple "field positions" inside a TAB ?


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star review. Thanks!

Please Log in or Create an account to join the conversation.

2 months 3 weeks ago #74655 by Dave LeDev
Yes, that's correct.

Please Log in or Create an account to join the conversation.

2 months 3 weeks ago #74678 by ggppdk
Hello

you could add positions in the XML file

but then the file
category_items.php
would need to be modified appropriately (the loop that creates the TABs) to make use of them ...

taking time to give custom PHP code here, is non-trivial time,
you should do this yourself

Regards


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star review. Thanks!

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
© 2018 Flexicontent. All Rights Reserved.