Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Component in a component?

Participant ,
Nov 24, 2021 Nov 24, 2021

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.

678
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Dec 06, 2021 Dec 06, 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.

Translate
Community Expert ,
Dec 06, 2021 Dec 06, 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Dec 07, 2021 Dec 07, 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!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 07, 2021 Dec 07, 2021
LATEST

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines