Link to home
Start Free TrialLog in
Avatar of sullisnyc44
sullisnyc44Flag for United States of America

asked on

sorting displays in DVWP

MOSS2007/WSS3

I saw this awesome post:

http://sympmarc.com/2008/12/16/sorting-displays-in-data-view-web-parts/

but I was wondering where specifically within the DVWP do you add this?

whenever i try to edit anything in the DVWP i get SPD xsl errors...

would also like to add an image next to the Add new Item link but that's a bonus question if you are so inclined.  

Attached is the text of my DVWP
dvwp.txt
ASKER CERTIFIED SOLUTION
Avatar of Ingeborg Hawighorst (Microsoft MVP / EE MVE)
Ingeborg Hawighorst (Microsoft MVP / EE MVE)
Flag of New Zealand image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of sullisnyc44

ASKER

thank you so much. I will give it a try. I know marc's blog is awesome - have to carve out some time to go through it!

I'm trying also trying to create hyperlinks to the calendar list item in this DVWP without much luck.

I have this in the hyperlink of my title field of a calendar event

{@FileRef}/DispForm.aspx?ID={@ID}

but it creates a link that looks like this

http://mydomain/ru/Lists/Calendar/34_.000//DispForm.aspx?ID=34

what am I doing wrong?

needs to look like
http://mydomain/ru/Lists/Calendar/DispForm.aspx?ID=34 
I saw that in your it your other question, but I have no suggestion.
needs to be hard coded - no other way around it. crazy.

where do I add that xls header template of mark's? at the top of the xsl of the DVWP?

Hello,

the position of a template in the xsl does not really matter, as far as I'm aware. Just make sure that it is not nested inside another template, i.e. make sure to put it right after the closing </template> tag of another template. For readability's sake, I'd put the template after the code from which it is being called.

cheers, teylyn