: Tuesday, 7 June 2011 11:49 AM
To: ozMOSS
Subject: RE: 2007 - currentPublishingSite
Sweet. I was that close. ;)
Thanks Dan.
From: ozmoss-boun...@ozmoss.com [mailto:ozmoss-boun...@ozmoss.com] On Behalf Of
Daniel Brown
Sent: Tuesday, 7 June 2011 10:58 AM
To: 'ozMOSS'
Subject: RE: 2007
site when you run this code?
-DB
From: ozmoss-boun...@ozmoss.com [mailto:ozmoss-boun...@ozmoss.com] On Behalf
Of Paul Noone
Sent: Wednesday, 8 June 2011 3:36 PM
To: ozMOSS
Subject: RE: 2007 - currentPublishingSite
Unfortunately this check still fails to identify the name of the web
] On Behalf Of
Paul Noone
Sent: Wednesday, 8 June 2011 3:36 PM
To: ozMOSS
Subject: RE: 2007 - currentPublishingSite
Unfortunately this check still fails to identify the name of the web. This
function is part of a feature receiver at site creation.
I'm wondering whether it's unable to get the name
...@ozmoss.com] On Behalf Of
Paul Noone
Sent: Wednesday, 8 June 2011 3:36 PM
To: ozMOSS
Subject: RE: 2007 - currentPublishingSite
Unfortunately this check still fails to identify the name of the web. This
function is part of a feature receiver at site creation.
I'm wondering whether it's unable to get
Of
Paul Noone
Sent: Thursday, 9 June 2011 8:47 AM
To: ozMOSS
Subject: RE: 2007 - currentPublishingSite
Wouldn't you use currentPublishingSite.Title?
Beats the heck out of me. That's why I'm asking. :)
Without fully seeing what your trying to do... I assume you passing in
currentPublishingSite
Hey Paul.
I think you can test the current web title with;
if (SPContext.Current.Web.ToString() == News)
{
}
On Mon, Jun 6, 2011 at 1:34 PM, Paul Noone
paul.no...@ceosyd.catholic.edu.au wrote:
Hi all,
** **
I am trying to check if the current site’s Title (or Name) equals “News”
Wanted to caveat that with the fact I'm not a coder ;)
On Tue, Jun 7, 2011 at 10:52 AM, Dan Sheedy sheedy...@gmail.com wrote:
Hey Paul.
I think you can test the current web title with;
if (SPContext.Current.Web.ToString() == News)
{
}
On Mon, Jun 6, 2011 at 1:34 PM, Paul Noone
Thanks. Will give it a go. I'm sure it should be that simple.
Coding isn't the problem. Finding a detailed API on the other hand... :)
From: ozmoss-boun...@ozmoss.com [mailto:ozmoss-boun...@ozmoss.com] On Behalf Of
Dan Sheedy
Sent: Tuesday, 7 June 2011 10:56 AM
To: ozMOSS
Subject: Re: 2007
Sweet. I was that close. ;)
Thanks Dan.
From: ozmoss-boun...@ozmoss.com [mailto:ozmoss-boun...@ozmoss.com] On Behalf Of
Daniel Brown
Sent: Tuesday, 7 June 2011 10:58 AM
To: 'ozMOSS'
Subject: RE: 2007 - currentPublishingSite
SPContext.Current.Web.Title
http://msdn.microsoft.com/en-us/library
Hi all,
I am trying to check if the current site's Title (or Name) equals News but
appear to be having some syntax issues. :)
Can someone please point me in the right direction?
if (currentPublishingSite.Title.Equals(News))
Kind regards,
Paul Noone
10 matches
Mail list logo