Re: Ideas around an enhanced list view in WSS?

From: Ian Morrish (ian_morrish_at_hotmaildotcom)
Date: 11/29/04


Date: Mon, 29 Nov 2004 14:41:27 +1300

The menu on my home page adds a parameter to the url. This is how I did it
with the concat directive...
Look for this line of code

< SPAN><a><xsl:attribute name="href"><xsl:value-of select="@DisplayName"/>

Now we need to add the tool tip using the Title field, replace the href
value with with the URL Path (@FileRef is the URL Path field that you see in
the DataSource Propertiesfor adocument library) and append the Menu name so
that we can try and use it in the future to expand the correct menu.
Replace the code above with

<a title="{@Title}"><xsl:attribute name="href"><xsl:value-of
select="concat(@FileRef, '?menu=', @Menu)"/>

Adding an onclick event is a bit more complicated but I have done this also
http://www.wssdemo.com/Pages/visio.aspx?menu=Articles
This demo updates the scr attribute of an activex control on the page.

Regards,
Ian
http://www.wssdemo.com

"Bil Simser [MVP]" <bsimser@shaw.ca> wrote in message
news:eB7NEBb1EHA.3376@TK2MSFTNGP12.phx.gbl...
> Thanks Ian. It's easy adding options to the drop-down menus. I'm not sure
> how to add say an option to a column in a DVWP that would relate to the
> item in that row? So I could launch another page and pass something like
> ID=3 to it? Got an example to look at?
>
> --
> Bil Simser
> http://weblogs.asp.net
>
>
>
> "Ian Morrish" <ian_morrish@hotmaildotcom> wrote in message
> news:ian_morrish@hotmaildotcom:
>> You can either add your command to the drop-down context menu or use a
>> DVWP
>> and add client side code in the body template of the sxl.
>> I use both methods regularly, see this demo...
>> http://www.wssdemo.com/Pages/DocEdit.aspx?menu=Articles
>> for drop-down menu example
>> Regards,
>> Ian
>> http://www.wssdemo.com
>>
>> "Bil Simser [MVP]" <bsimser@shaw.ca> wrote in message
>> news:%236qLdtV1EHA.2804@TK2MSFTNGP15.phx.gbl...
>> > Hi guys,
>> >
>> > Was wondering if anyone has come up across building a list (and view)
>> > where you want a button across each row like Print, Preview, Email,
>> > etc.
>> >
>> > This would be in a document library (or maybe a form library) where I
>> > want
>> > to do each action against the current item in the view. Not sure how to
>> > do
>> > this so looking for some ideas? DVWP? Or is this going to be a custom
>> > coding job?
>> >
>> > Bil Simser
>> > http://weblogs.asp.net
>> >
>> >
>