Skip navigation

CQ5

Amitdstar
Currently Being Moderated

HOW TO USE PARSYS IN A TAB?

Mar 6, 2012 5:26 AM

Tags: #navigation #cq5 #tab #parsys

Hi All,

 

I really need yours help.

i have a multiple tab in my website and while tab navigation i (author) want to add component , for that i want to add a parsys so that author can add multiple component under one tab . please advice me how to do that.

e.g author can add multiple component under Social tab ,and same for other tab also. I am includng parsys under each tab , but that is not working .

 

please help

 

 

 

 
Replies
  • kasq
    127 posts
    Dec 1, 2011
    Currently Being Moderated
    Mar 9, 2012 12:03 AM   in reply to Amitdstar

    Hi Amitdstar,

     

    It depends on your implementations of tabs component.

     

    One simple solution is to create template (for example: Content Page Tab Template) with parsys inside which will be used to create a content for one separate tab and then in the page in which you want to insert multiple tabs you are creating tabs component in which you only give contributor a possibility to select for each tab a path to page which contains a content created by Content Page Tab Template.

     

    This main component will use path to retrieve a components included in the parsys and then using  <sling:include> tag will include specific component with content.

     

    Second solution is to create a for each tab different parsys, for instance:

     

    <cq:include path="tab1-parsys" resourceType="foundation/components/parsys"/>

    <cq:include path="tab2-parsys" resourceType="foundation/components/parsys"/>

    ....                                                                                    

     

    and then include inside different parsys the same components.

     

    I hope it is clear,

    kasq

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points