Zikula: A Flexible Open Source Content Management System
home | forum | contact us

Dizkus

Bottom
Show the pagesetter data through several tabs
  • Posted: 31.03.2007, 18:39
     
    Starguezer
    rank:
    Helper 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
  • Posted: 31.03.2007, 19:11
     
    videokid
    rank:
    Professional 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
  • Posted: 01.04.2007, 16:14
     
    Starguezer
    rank:
    Helper Helper
    registered:
     March 2007
    Status:
    offline
    last visit:
    07.11.08
    Posts:
    143
    Thanks for the answer but how can I display several tabs in a full template ?
    How build it ?
  • Posted: 01.04.2007, 20:42
     
    DaleB.
    rank:
    Freshman 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.
  • Posted: 02.04.2007, 02:44
     
    Starguezer
    rank:
    Helper Helper
    registered:
     March 2007
    Status:
    offline
    last visit:
    07.11.08
    Posts:
    143
    Great ! Thanks a lot, I will try it when I will have more time.
  • Posted: 02.04.2007, 23:03
     
    Starguezer
    rank:
    Helper 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

    --
  • Posted: 02.04.2007, 23:38
     
    videokid
    rank:
    Professional 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
  • Posted: 02.04.2007, 23:54
     
    Starguezer
    rank:
    Helper Helper
    registered:
     March 2007
    Status:
    offline
    last visit:
    07.11.08
    Posts:
    143
    OMG ! Thanks a lot ! It works really better like that !

    And now, try to resolve the problem : why pictures doesn't display well icon_frown

    --

Main Menu

Extensions Database

Documentation

Development

Login

Donate to Zikula