Stump the Panel » Site Managers and Site Collection Managers

Having a links list wepart that would flow through entire site

(3 posts)
  1. Hopeful
    Member

    HI,
    I am hoping that I can have one link webpart which I can use throughout my entire site that will use one source for links. I have a list of links that I would like only to update at one time, and have all the webparts throughout the site reflect those updates.

    My first attempt was to use the content query webpart – the problem is that it would only show the TITLE, not the URL. When I put the actual URL in the TITLE column, it would not read the TITLE as a url, just a title. This means users have to click through twice.

    In researching this problem, I found some good resources.

    The first is a link to change the categories in a content query webpart:
    http://msdn.microsoft.com/en-us/library/bb850574(printer).aspx

    The problem is that the webpart now prints the whole URL, and it doesn’t work as a link.

    I kept searching and found these instructions for makng the CQWB read the URL

    http://www.sharepoint-tips.com/2007/01/teach-content-query-web-part-how-to.html

    But it had some caveats (if you get it wrong none of your webparts will work) – and also is a bit beyond my programming capacity. (I am a Site Collection administrator, but the site as a whole is run by our IT department)

    SO – I went back to plan A which was to take the list, create a view and load it onto the site.

    The problem is, I cannot access the list webpart throughout the site, cannot link to it as a webpart, etc.

    SO, I would be back to having a list on every site and subsite, which defeats the whole purpose.

    Any ideas here? Has someone done it without changing the programming in the CQWB? The only thing left to try is to use the URL as a content type – I’m trying that next, but not today…

    Thanks,
    Hopeful

    Posted 5 months ago #
  2. I think you're on the right track with the CQWP. Create a content type with (at minimum) LinkURL (text), Title (text), and LinkTarget (choice, with default). Title will come into the CQWP automatically, but you'll need to add LinkURL and LinkTarget to the CommonViewFields property tag. Then you need to create an ItemStyle template to display these properties. If you google "Customize CQWP" you should get some hits. I don't have my reference list with me atm.

    Posted 5 months ago #
  3. Hopeful
    Member

    Finally got it working -- used the instructions in this link:

    Since I am not really strong at HTML, I stated over using a LinkList so that it matched the HTML in the link below. I cut and paste the text into the style sheet -- it worked just fine.

    http://www.sharepoint-tips.com/2007/01/teach-content-query-web-part-how-to.html

    Then I had to add permissions -- at the member level -- to the style sheet that I changed....

    But it works, and I'm happy :)

    THanks,

    Posted 5 months ago #

RSS feed for this topic

Reply

You must log in to post.