That's certainly do-able but I was hoping to reduce overhead by
determining the sitename before the query and render takes place.

 

I'd wrap both web parts into one and then offer a choice of XSL template
based on the sitename, except that I don't think you can have two
datasources applied to a single DFWB.


What I'd like to know is whether the sitename is accessible from within
the XSL stylesheet -

 

i.e. <xsl:value-of select="sitename"/>

 

And whether more than one datasource (site) can be defined.

 

Thanks,

 

Paul

 

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Witherdin, Nigel
Sent: Thursday, 21 August 2008 6:07 PM
To: [email protected]
Subject: RE: [OzMOSS] Show/hide web part based on site name

 

Not sure, but sounds to me like it could be something done with some
clever javascript - and the old "display : none" style

 

Cheers

 

Nigel Witherdin

Senior Support Analyst

Eversheds

 

Direct Dial: +44 (0) 84 549 754 17

Mobile: +44 (0) 7738 553256

 

www.eversheds.com <http://www.eversheds.com/> 

 

 

________________________________

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Paul Noone
Sent: 21 August 2008 06:18
To: [email protected]
Subject: [OzMOSS] Show/hide web part based on site name

Hi guys,

I have placed two DFWPs on a layout page. One displays a rollup of
"Recent Posts" for the root site while the other does the same for our
News subsite. At present both display at once.

What I would like to do (similar to audience targeting) is hide one or
the other based on the current site name. Anyone know if this can be
done within the XSL portion(s) of the page?

e.g. <xsl:if test="not($spweb.name = 'news'>

<xsl:template name="dvt_1"> 

...

I'm trying to avoid having to create a whole bunch of layout pages just
to display site-centric data for each site's article pages, or have more
than one site collection. Unless someone has a smarter idea?

Kind regards,

Paul

________________________________

________________________________________________________________________
____
This e-mail is intended for the use of the addressed recipient(s) only
and may contain confidential and privileged information. If you have
received this message in error, please delete the message and any
attachments and copies immediately; and notify the sender by return
e-mail.

Any views expressed in this message or any attachments are those of the
individual sender and do not necessarily represent the corporate opinion
of the Catholic Education Office (CEO), Sydney.

The CEO Privacy Policy is located at http://www.ceo.syd.catholic.edu.au
________________________________________________________________________
____ 

-------------------------------------------------------------------
OzMOSS.com - to unsubscribe from this list, send a message back to the
list with 'unsubscribe' as the subject.
Powered by mailenable.com 

********* This email is sent for and on behalf of Eversheds LLP
*********

This email is sent for and on behalf of Eversheds LLP which is a limited
liability partnership, registered in England and Wales, registered
number OC304065. Registered office One Wood Street, London, EC2V 7WS.
Registered VAT number GB820704559.  A list of the members' names and
their professional qualifications is available for inspection at the
above office. Regulated by the Solicitors Regulation Authority (see
www.sra.org.uk <http://www.sra.org.uk/> ). 

Confidentiality: This email and its attachments are intended for the
above named only and may be confidential. If they have come to you in
error you must take no action based on them, nor must you copy or show
them to anyone; please reply to this email and highlight the error.

************* [ www.eversheds.com <http://www.eversheds.com/>  ]
************* 

-------------------------------------------------------------------
OzMOSS.com - to unsubscribe from this list, send a message back to the
list with 'unsubscribe' as the subject.
Powered by mailenable.com 



____________________________________________________________________________
This e-mail is intended for the use of the addressed recipient(s) only and may 
contain confidential and privileged information. If you have received this 
message in error, please delete the message and any attachments and copies 
immediately; and notify the sender by return e-mail.

Any views expressed in this message or any attachments are those of the 
individual sender and do not necessarily represent the corporate opinion of the 
Catholic Education Office (CEO), Sydney.

The CEO Privacy Policy is located at http://www.ceo.syd.catholic.edu.au
____________________________________________________________________________



------------------------------------------------------------------- OzMOSS.com 
- to unsubscribe from this list, send a message back to the list with 
'unsubscribe' as the subject.

Powered by mailenable.com

Reply via email to