Text Size

Login

Joomla! Works Tabs and Slides -JWTS and Flexicontent

Tutorials, Tips & Tricks, FAQ, and Documentation Resources

Joomla! Works Tabs and Slides -JWTS and Flexicontent

Postby kippa » Tue 27 Jul 2010 03:32

Hi

I am using Joomla! Works Tabs and Slides (JWTS) plugin with FLEXIcontent' to display submitted form data in a tabular format.

The example below shows how to add JWTS to FLEXIcontent’s item layout - available zone - description field.

When an available field is dragged and dropped into the template available zones description field, its contents will be rendered in a tab layout on a Joomla webpage.

I first copied the default template (named it default-1) and then made changes to the default-1.php file located at

..\components\com-flexicontent\template\default-1\item.php.


Use a text editor to change the code:

Code: Select all
<!-- BOF description -->
   <div class="description">
      <?php foreach ($this->item->positions['description'] as $field) : ?>
         <?php if ($field->label) : ?>
      <div class="desc-title"><?php echo $field->label; ?></div>
         <?php endif; ?>
      <div class="desc-content"><?php echo $field->display; ?></div>
      <?php endforeach; ?>
   </div>
<!-- EOF description -->


to:

Code: Select all
<!-- BOF description -->
   <div class="description">
      <?php $content = ''; ?>
      <?php foreach ($this->item->positions['description'] as $field) :
            if (!empty($field->display)) : {
               $content .= '{tab=';
               $content .= $field->label;
               $content .= '}';
               $content .= $field->display;
            }
            endif;            
         endforeach;      
         if (!empty($content)):
            $content .= '{/tabs}';
            echo JHTML::_('content.prepare', $content);
         endif;
      ?>   
   </div>
<!-- EOF description -->


The code checks if there is any data in the FLEXIcontent available zones description field. It then assigns the $field->label as the JWTS label and the $field->display to the JWTS text. In this example the JWTS behaves dynamically and only the fields that are in the FLEXIcontent available zones description field, that contain display data are displayed on a Joomla! webpage.

All you need to do now is open up the item layout of default-1 template in FLEXIcontents template manager. Next drag n drop a field into the available zones description field.

Enjoy - Hope this helps...
Last edited by yopyop001 on Tue 27 Jul 2010 14:19, edited 1 time in total.
Reason: Title change
kippa
FLEXIcontent Fledgling
 
Posts: 1
Joined: Thu 10 Jun 2010 02:55

Re: Joomla! Works Tabs and Slides -JWTS and Flexicontent

Postby Nudles » Wed 25 Aug 2010 16:44

Hello,
I change the code and than I get
In discription field this {tab=} {tab=FieldLabel}
Any Ideas?
Moin moin und immer eine handbreit Wasser unter dem Kiel
User avatar
Nudles
FLEXIcontent Enthusiast
FLEXIcontent Enthusiast
 
Posts: 29
Joined: Sat 6 Mar 2010 15:38

Re: Joomla! Works Tabs and Slides -JWTS and Flexicontent

Postby Nudles » Wed 25 Aug 2010 17:48

Problem solved, my mistake. Sorry.
Moin moin und immer eine handbreit Wasser unter dem Kiel
User avatar
Nudles
FLEXIcontent Enthusiast
FLEXIcontent Enthusiast
 
Posts: 29
Joined: Sat 6 Mar 2010 15:38

Re: Joomla! Works Tabs and Slides -JWTS and Flexicontent

Postby micker » Wed 1 Sep 2010 08:20

cool thanks
1. If you have problem logging in our forums, PLEASE CLEAR BROWSER cookies that have flexicontent.org (or ALL cookies or try a different browser)

2. FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks!
User avatar
micker
Global Moderator
Global Moderator
 
Posts: 8305
Joined: Sat 3 Oct 2009 11:42
Location: toulouse

Re: Joomla! Works Tabs and Slides -JWTS and Flexicontent

Postby DonS » Fri 17 Dec 2010 16:06

Kippa,

Your workaround for JWTS works fine except I get an errant "{tab=}" presenting itself above the article description field.
http://www.artsouthend.com/pi/index.php?option=com_flexicontent&view=items&id=159:flexitest-article-3&Itemid=281

Does anyone know if JWTS can work somehow without entering user field names as Kippa has configured? We want to use TS in quantity and on many pages, editing content frequently, and Kippa's excellent solution is cumbersome for this scenario. I tried inserting JWTS as a module inside a Flexicontent article but with no luck.

Am out of ideas and php knowledge.

Any hope here?

Thanks.
User avatar
DonS
FLEXIcontent Fledgling
 
Posts: 1
Joined: Wed 11 Aug 2010 06:39
Location: Boston/London

Re: Joomla! Works Tabs and Slides -JWTS and Flexicontent

Postby hossam abohassan » Sat 18 Dec 2010 00:54

Greaaaaaaaaaaat
thank you :)
hossam abohassan
FLEXIcontent Intern
FLEXIcontent Intern
 
Posts: 80
Joined: Wed 24 Mar 2010 11:19

Re: Joomla! Works Tabs and Slides -JWTS and Flexicontent

Postby Janiba » Thu 10 Feb 2011 20:36

Hi, this is great solution. You can use also a Tabberhttp://www.nonumber.nl/extensions/tabber?tab=downloadwhich is much better that tabs&slide because you can link direct into a Tab.

Changes you need to make are the same like above!
Janiba
FLEXIcontent Fledgling
 
Posts: 10
Joined: Sun 2 Jan 2011 22:27

Re: Joomla! Works Tabs and Slides -JWTS and Flexicontent

Postby micker » Wed 16 Feb 2011 13:37

cool news
regards
1. If you have problem logging in our forums, PLEASE CLEAR BROWSER cookies that have flexicontent.org (or ALL cookies or try a different browser)

2. FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks!
User avatar
micker
Global Moderator
Global Moderator
 
Posts: 8305
Joined: Sat 3 Oct 2009 11:42
Location: toulouse

Re: Joomla! Works Tabs and Slides -JWTS and Flexicontent

Postby themine » Wed 23 Feb 2011 16:28

i tried this template
the first plugin woks but it takes long time to appear

i tried the other plugin "tabber"
but it didn't work

can you please provide me with a template file edited?
thanks for your patience
and sorry for disturbing you
themine
FLEXIcontent Fledgling
 
Posts: 20
Joined: Sun 16 Jan 2011 21:48

Re: Joomla! Works Tabs and Slides -JWTS and Flexicontent

Postby themine » Sun 27 Feb 2011 00:57

any help please :(
themine
FLEXIcontent Fledgling
 
Posts: 20
Joined: Sun 16 Jan 2011 21:48

Next

Return to Documentation and Tutorials

Who is online

Users browsing this forum: No registered users and 1 guest