SharePoint -show list data in custom HTML/ CSS
I have a News list and I am requiring to show the News data (Date, Title and Description) in cust开发者_如何学Goom HTML/ CSS.
I am not sure of my options. Do I need a custom web part? A custom view?
Thank you very much for your help.
EDIT: I am using WSS 3.0 and I will then upgrade to MOSS 2007 -thank you.
You have various options.
If you want to use it only in one place, use the dataview webpart as Vladi suggests. If you want to reuse it, you can still create new XSLT web parts and copy the XLST code.
If you want to make it comfortable for the customer to add a webpart here and there on his own, you should develop your own web part.
If you want your view to be available over the default page of the list, you need a custom view. The advantage of this is that you can use your view whereever you display the list (using a ListViewWebPart). On the other hand it probably takes the most effort to implement it.
You should use a dataview web part available in SPD. You can just right-click on a regular list web part and turn it into XSLT web part. Then you can modify it as you like
精彩评论