|
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
| |
|
|
|
|
|