- Moderated by:
- Support Team
-
- rank:
-
Helper
- registered:
- March 2007
- Status:
- offline
- last visit:
- 07.11.08
- Posts:
- 143
Hi !
I would like to show the Pagesetter data thanks to several tabs.
For example :
- a tab with all the basic data about a product
- a tab with a video presenting the product
- a table with the technical data of the product
- etc...
But I would also like for the tabs not to be visible if there's no video, for example.
Has anyone ever tried to do something like that ? Or do you have any idea how I could do that ?
Thanks for your help -
- rank:
-
Professional
- registered:
- March 2003
- Status:
- offline
- last visit:
- 19.11.08
- Posts:
- 901
Make a pub with following fields:
- title
- art nr
- text [HTML or plain]
- media-upload
- several fields [strings/text] for the additional data
then I would make CSS tabs [something cnn is using eg.]
Code
<!--[if $mediaupload.url != ""]-->show media tab <!--[/if]-->
this would be the easiest and fastest way...
you could try other ways too with inLinePub lists...
- Igor
--
Have a nice day
zikulapro.be is currently running
Zikula 1.0.2 -
- rank:
-
Freshman
- registered:
- February 2004
- Status:
- offline
- last visit:
- 04.06.08
- Posts:
- 45
You could use a the tabifier-js-script for example.
Here you can find a page where someone is using it in a Pagesetter template.
What i really would love to see are tabbed input forms for the Pagesetter data. -
- rank:
-
Helper
- registered:
- March 2007
- Status:
- offline
- last visit:
- 07.11.08
- Posts:
- 143
Can you give me an example of your code where you used it because I've tryed it but it doesn't display tab :s
I've uploaded the tabber.js file in modules/pagesetter/pntemplates/plugins/tabber.js
And I use it like this :
Code
<div class="tabber">
and it only show texte
<div class="tabbertab">
<h2>Tab 1</h2>
<!--[$genre]-->
</div>
<div class="tabbertab">
<h2>Tab 2</h2>
<p>Tab 2 content.</p>
</div>
</div>
but it only display :
Code
Tab 1
Comédie
Tab 2
Tab 2 content.
Tab 3
Tab 3 content.
without link, tab... Only text !
Thanks for your help
--
-
- rank:
-
Professional
- registered:
- March 2003
- Status:
- offline
- last visit:
- 19.11.08
- Posts:
- 901
tabber.js is javascript, not a Pagesetter plugin [no plugin whatsoever]. Move tabber.js to your javascript folder and include following line in your master.htm and home.htm [if you use Xanthia templates].
Code
script type="text/javascript" src="javascript/tabber.js" >< /script>
Make sure you read the 'howto' in the js file [if there's one of course].
- Igor
--
Have a nice day
zikulapro.be is currently running
Zikula 1.0.2
