Skip to main content
Inspiring
November 24, 2021
Answered

Component in a component?

  • November 24, 2021
  • 1 reply
  • 629 views

Hi There,

 

I have a simple breadcrumb component that I put together.  Example:  (Component 1)

 

Home page >  Task List

 

When I dive deeper in the site it looks like this:

 

Home page > Task List > Details

 

I would like to create second component (component 2) that "inherits" from Component 1.

 

I could then easily override the "Details" link in Component 2 with various pages that appear in details.  Example:

 

Home page > Task List > Notes

Home page > Task List > Documents

Home page > Task List > Communication

 

I have tried, and it appears to work, however in new Component 2 which effectively "inherits" from Component 1, the Home Page & Task List links break.

 

Is what I am doing possible?

 

Thank you.

 

 

XD allows me to do this, but it seems to break the links.

    This topic has been closed for replies.
    Correct answer AkinGn

    Hi, if I'm not missing something, I tried to simulate the situation here and links look like working in the way I did in my example. You can see the video: https://www.dropbox.com/s/8v4beyd7ywo4xos/component-in-a-component-test.mp4?dl=0

    And the sample file: https://www.dropbox.com/s/hecz9dsh52d63iv/component-in-a-component-test.xd?dl=0


    Hope this helps.

    1 reply

    AkinGn
    Community Expert
    AkinGnCommunity ExpertCorrect answer
    Community Expert
    December 6, 2021

    Hi, if I'm not missing something, I tried to simulate the situation here and links look like working in the way I did in my example. You can see the video: https://www.dropbox.com/s/8v4beyd7ywo4xos/component-in-a-component-test.mp4?dl=0

    And the sample file: https://www.dropbox.com/s/hecz9dsh52d63iv/component-in-a-component-test.xd?dl=0


    Hope this helps.

    Inspiring
    December 7, 2021

    Hi AkinGn,

     

    Thank you for your response.  I was unable to open either of your links (500 error), but it did prompt me to try this again with a fresh cup of coffee and it worked exactly as you said.

     

    Thank you!

    AkinGn
    Community Expert
    Community Expert
    December 7, 2021

    Hi @Doug21784293dvss , you're welcome, glad you resolved the issue!