Mar
6
Fun With Announcements – Part 4
Create a “More” link to view the details of each announcement
Here is how to display a “More” link on your announcements web part, so that users will have an obvious link to click on, to read more of each announcement.
- Create a new column in your announcements list called “More”, with a field type of “Hyperlink or Picture”
- In SharePoint Designer, create a new workflow – Open SharePoint Designer, and click <File> and <Open Site>
- Put in the URL of the site where you’d like to create the workflow, and open it.
- Click <File>, then <New>, then <Workflow>
- Pick your Announcements list from the drop-down list. Only check the box “Automatically start this workflow when a new item is created”.
- This workflow will have no condition.
Action: Build Dynamic String
Click on dynamic string, which will take you to the String Builder dialogue box. Type a backslash, then click the <Add Lookup> button.
Pick the Path field, and click OK, then type the rest of the string as so:
(The reason for the comma and “Click Here” is so that users aren’t presented with a big long URL to click, but some nice, short text)Give the variable a name such as AnnouncementURL
- Next Action: Set Field in Current Item –
Set the More field to … click the function button.
In the Source drop-down box, choose “Workflow Data”, and for the field, choose the variable that you called “AnnouncementURL” in step 6 above.
- Now, in the announcements web part on your site, edit the web part properties, edit the current view, and add the new “More” field to the view.
- You can even hide this new field, so it doesn’t display on your announcement forms. In the announcements list settings, go to Advanced settings. Change the setting “Allow management of content types” to Yes.
- Now, there’s a new section in your list’s settings called Content Types that contains one content type called “Announcement”.
- Click on the Announcement content type, click on the More field, and change it to Hidden. This will still allow the column to be added to any view, but the field will be hidden when opening or editing the announcement itself.
Note: If there is already a workflow running when a new item is created in this list, such as the one created in the first section of this article, I recommend adding this as a new step in the same “Create Announcement” workflow, as opposed to having two different workflows running when each item is created in the list.
Hopefully, these have been useful little tips for you when working with announcement lists in SharePoint. Enjoy!
Oh, another cool little trick with Announcements would be to roll up all of a site collection’s announcements, and display them in one list. Read my blog post here, and skip to the part called “Linked Source in SharePoint Designer”. Just use this same method for announcements lists instead of document libraries.
Author: Laura Rogers, Birmingham, AL
http://spinsiders.com/laurar
http://twitter.com/wonderlaura
Laura Rogers is currently a SharePoint Administrator at HealthSouth Corporation in Birmingham, Alabama. She has ten years of experience with Microsoft’s messaging and collaboration systems. This includes four years in SharePoint implementation, training, and customization. Laura has been a MCSE since 1999, with her most recent certifications being MCSE 2003 + Messaging, MCTS in MOSS and MCTS in WSS 3.0 Configuration. She also wrote a chapter in the Microsoft Office SharePoint Server 2007 Administrator’s Companion by Bill English.
Articles in this series
- Fun With Announcements - Part 4
- Fun With Announcements - Part 3
- Fun With Announcements - Part 2
- Fun With Announcements - Part 1
Thanks! This is just what I needed!
Thank you thank you thank you!!!!
Another winner from EUSP
[...] http://www.endusersharepoint.com/?p=1405 [...]
Thanks Laura, I have been impressed with your posts. Visited your site and have interacted with you on the Stump the Panel. You’re doing a great job. With this set of posts, I love the concept to click more, I am looking to modify this is a way to have the click more in a popup or new window. I would like to see maybe the first line of the text from the body, similar to the SP default functionality. Any Thoughts?
Hi
is there anyway to have the hyperlink open automatically in a new window or tab, rather than simply be redirected to the url?
thanks
Sergio
Hi Laura,
nice information from you.
I want to make my announcements as running news in MOSS 2007. Can you help me how to do it?
Regards,
Jeganraj.K
Laura,
I enjoy reading your posts and also like the idea from the above posts about pop up in new window but are having trouble with the view. I have the workflow and the more column visible but the the view is showing the complete body. Do I hide the body on the webpart and just have the title and more columns visible? I was trying to have my announcements look similar to those on Path to Sharepoint without the scrolling eg title small amount of text…more What can I do to get that effect?
Thanks for the “Fun with Announcements” series. What I’d really like to see is a way to list announcements with alternat shaded rows or a divider of some sort. I end up with several announcements on a page and they seem to blend together. I am looking for a way to help define separation of the announcements. – Thanks again.
Excellent post! This was a huge help. I must admit that I was a little shocked to find that this feature wasn’t part of Sharepoint out-of-the-box.
By the way, I know it’s petty, but in step 6, those aren’t backslashes.
I do not see the option “More” in my dropdown. I have SharePoint Designer 2007. Are you using MOSS and perhaps that is why you have different selections in your dropdown? I only see the following selections: Attachments, Body, Expires, Idea. Any thoughts? Thanks!