Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

On my home page I am displaying some news. Every news has "read more" button clicking on which will take user to news detail page. I was thinking about doing in SharePoint like following. Please let me know if my approach is right or you do things differently.

1- Create a list at back end that will hold news

2- Create a web part on home page where let's say top 5 news will be displayed form that list with "read more" links. The link will be something like:

http://myserver.com/mysite/English/Pages/News.aspx?id=5

3- For news detail, create another page to which we will pass the ID of news through GET (as shown in previous step)

4- Create web part for that news detail page which will take that ID, and then read list to display news detail

Is this how it is done in SharePoint?

share|improve this question
add comment

1 Answer 1

If all your news is in one site collection, just use the Content Query Web part which will fetch your news articles. You can filter them there and use custom xsl for rendering etc.

If your news is scattered all over the place (multiple web apps), use Core Results web part (ie Search). Create a custom search scope, managed properties if needed, and configure the web part how you like.

The web parts display a roll-up of your news. The links contained will navigate to the actual pages.

share|improve this answer
    
Ok I added "Content Query" web part but it is not showing any "read more" or related link. Instead it is displaying complete list (which contain 3 items) on home page. Secondly I don't see any customization options to apply my own CSS. –  Frank Martin Apr 13 '13 at 11:31
    
You need to customise the default xslt and use that with the web part. That's the SharePoint way of doing things. The html that is being rendered can be customised and you can throw in your own classes or however you want it to be rendered. –  Grooverinthesouth Apr 16 '13 at 9:58
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.