Forum Discussion

chrigu's avatar
chrigu
Guide
13 years ago

Inclusion of a component in a Wrapper

Hi   In our current setup we have some custom navigation in the Page Header Wrapper. Now we'd like to display the "Ask an expert", the "breadcrumbs" and the "User Navigation Links" components on ev...
  • MoniqueL's avatar
    13 years ago

    Hi chrigu, and welcome to the Lithosphere!

     

    I'm not sure what your community looks like, but you have a couple of options as far as global navigation goes.

     

    You can continue to add components inside of your page header (your company's header that wraps the lithium community, which has its own header) but I might suggest tweaking the community's header layout + Page-Quilt to add the user nav and bread crumb in there, as that's where they normally live out of the box.

     

    Just like your company's header that lives in the Page Head section in studio, elements placed inside the community's Header Page-Quilt in studio will appear on every page type in the community. Hence why important components like the user nav, search, breadcrumb and page tile live there.

     

    If you'd rather continue to add the components to your Company's header, you can, although you may need to wrap the component in the same div tags lithium uses if you want to have the community style still apply to these component now that they're technically inside the wrapper for the community, as opposed to being inside the community.

     

    The code to paste inside a page wrapper for those components listed:

     

    <@component id="common.widget.breadcrumb" />
    <@component id="common.widget.user-navigation"/>
    <@component id="qanda.widget.ask-an-expert" discussionStyle="forum"/>