Microsoft Content Management Server - Channel Custom Properties Question.

This is Interesting: Free IT Magazines  
Home > Archive > Microsoft Content Management Server > June 2004 > Channel Custom Properties Question.





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Channel Custom Properties Question.
Dwayne

2004-06-29, 8:57 am

Hey,
I'm trying to find a way to display a channel custom
property as a meta tag, but only need to show one. I have
a total of five custom properties, but do not want the
others displayed. Does anyone have a sample of calling up
just one channel custom property to dispplay it's name
and value?
Thanks,
Dwayne
Stefan [MSFT]

2004-06-29, 8:58 am

Hi Dwayne,

use similar code as the following:

<META name="my property" value="<%
=CmsHttpContext.Current.Channel.CustomProperties["myProperty"].Value %>">

This will do the job.

Cheers,
Stefan

--
This posting is provided "AS IS" with no warranties, and confers no rights.

MCMS FAQ:
http://download.microsoft.com/downl...6a/MCMS+2002+-+(complete)+FAQ.htm
MCMS Blog: http://blogs.msdn.com/stefan_gossner/category/4983.aspx
MCMS Sample Code:
http://www.gotdotnet.com/community/...t+S
erver

MCMS Whitepapers and other docs:
http://blogs.msdn.com/stefan_gossne...2/07/41859.aspx
--------------------------------


"Dwayne" <anonymous@discussions.microsoft.com> wrote in message
news:226a501c45de5$1d962690$a601280a@phx
.gbl...
> Hey,
> I'm trying to find a way to display a channel custom
> property as a meta tag, but only need to show one. I have
> a total of five custom properties, but do not want the
> others displayed. Does anyone have a sample of calling up
> just one channel custom property to dispplay it's name
> and value?
> Thanks,
> Dwayne



Dwayne

2004-06-29, 5:52 pm

That did it.
Thanks again Stefan.

Dwayne
>-----Original Message-----
>Hi Dwayne,
>
>use similar code as the following:
>
><META name="my property" value="<%
>=CmsHttpContext.Current.Channel.CustomProperties

["myProperty"].Value %>">
>
>This will do the job.
>
>Cheers,
>Stefan
>
>--
>This posting is provided "AS IS" with no warranties, and

confers no rights.
>
>MCMS FAQ:
>http://download.microsoft.com/download/4/2/5/4250f79a-

c3a1-4003-9272-2404e92bb76a/MCMS+2002+-+(complete)+FAQ.htm
>MCMS Blog:

http://blogs.msdn.com/stefan_gossner/category/4983.aspx
>MCMS Sample Code:
>http://www.gotdotnet.com/community/...ples/Default.as

px? ProductDropDownList=Content+Management+S
erver
>MCMS Whitepapers and other docs:
>http://blogs.msdn.com/stefan_gossne...ve/2003/12/07/4

1859.aspx
>--------------------------------
>
>
>"Dwayne" <anonymous@discussions.microsoft.com> wrote in

message
> news:226a501c45de5$1d962690$a601280a@phx
.gbl...
have[vbcol=seagreen]
up[vbcol=seagreen]
>
>
>.
>

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com