Adding more TABs to FLEXIcontent templates (7 or more)

More
10 years 10 months ago #44029 by ldps
Hello!
How create new subtitle_tab7 ?
Thanks!

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

More
10 years 10 months ago #44049 by ggppdk
Hello


1. create an new custom template 'mydefault'



2. edit file:
components/com_flexicontent/templates/mydefault/item.xml

copy paste line (to add parameter for TAB title):
<field name="subtitle_tab6_label" type="text" default="TAB06" label="Label for Tab 6" description="The text for this label is filter via JText (you can add to your ini language files)" />

and change it ... (replace 6 with 7)

copy-paste line (to add the new position in template):
<group posrow="subtitle">subtitle_tab6</group>

and change it ... (replace 6 with 7)


3. then clear Joomla cache and the new template position will appear in template edit form



4. edit file item.php or item_html5.php
components/com_flexicontent/templates/mydefault/item.php

as instructions (instructions inside item.php) say replace contents of item.php with modular.php
find:
Code:
<?php // Find if at least one tabbed position is used $tabcount = 6; $createtabs = false; for ($tc=1; $tc<=$tabcount; $tc++) { $createtabs = @$createtabs || isset($item->positions['subtitle_tab'.$tc]); } ?>
and replace $tabcount = 6; with $tabcount = 7;

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...

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

More
10 years 10 months ago #44068 by ldps
thank you! it worked out!

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.581 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline