Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Carlos 338 posts 472 karma points
    Nov 04, 2009 @ 23:08
    Carlos
    0

    HELP Please! Cross site content

    Ok, Here is my issue.  I am meeger at XSLT and kinda new to Umbraco but love the product.  I  have been given a project and need some help.

    I am trying to make a right hand column list of external links. I want to use the content editor to make these links, but every page needs to have this list on it cross site. I am able to make a sidebar tab but it applies it the sidebar tab to each page but no the list of links.  How can I make a content box that can be cross site, edited once and makes all the changes across the site?  I am on kind of a tight dead line and need help aSAP. Thanks in advance.

    I am on Verson 4.0

  • Carlos 338 posts 472 karma points
    Nov 04, 2009 @ 23:09
    Carlos
    0

    P.S. I know this should not be this hard but I am stuck . Thanks again.

  • Jan Skovgaard 11280 posts 23678 karma points MVP 12x admin c-trib
    Nov 04, 2009 @ 23:19
    Jan Skovgaard
    0

    If I understand you problem correctly I would make a branch on the site, which is not visible on you page but where you can make a branch of the links, which should be the same in the sidebars across the site.

    I would make a document type called "Links" and a document type called "Link". Then I would allow "Links" to contain "Link". On the link document type I would set a property to hold a link and then I would create all the links under "links" in the content tree.

    Then you could create a XSLT macro and place that macro in a placeholder in your template section. In that way you only need to manage your links in one place, but can reuse them on several pages.

    Hope this makes sense and that it helps!

    /Jan

  • Carlos 338 posts 472 karma points
    Nov 05, 2009 @ 00:01
    Carlos
    0

    I get it until the XSLT Macro part.  Do I need to write any XSLT? And how would I have this editable within the content editor area for our content writers?

  • Carlos 338 posts 472 karma points
    Nov 05, 2009 @ 01:30
    Carlos
    0

    I have figured it out. I wanted a list of external links that would be cross site and yet be editable within the CMS.  So I remembered how titles were created by using the "recursive" property seeing that if it not in the tree it will climb up it until if finds that property for the template. Easy enough. 

    Solution:

    Create new tab in Home or top template called Sidebar with Alias of SidebarList.

    In Master Template added
    <umbraco:Item field="SideBarList" runat="server" recursive="true" />
    which means that if the is in the CMS area in the Home Content it will get that property and add it to all the child templates. I am going to add another Sidebar LIst of links to another template because they want separate links than the cross site ones, in which case the those will override the Master Template's sidebar because it is in that tab is populated.    Pretty easy.
    Any questions me know. I still have no idea how to make cross site linking of pages using a dynamic side bar but that is for another time. There are packages for that,.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies