Channel Custom Properties Question.
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Microsoft Content Management Server > Channel Custom Properties Question.




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Channel Custom Properties Question.  
Dwayne


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
06-29-04 01:57 PM

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





[ Post a follow-up to this message ]



    Re: Channel Custom Properties Question.  
Stefan [MSFT]


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
06-29-04 01:58 PM

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...>
MCMS+2002+-+(complete)+FAQ.htm
MCMS Blog: http://blogs.msdn.com/stefan_gossner/category/4983.aspx
MCMS Sample Code:
http://www.gotdotnet.com/community/...nagement+Server
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







[ Post a follow-up to this message ]



    Re: Channel Custom Properties Question.  
Dwayne


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
06-29-04 10: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] 
>
>
>.
>





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 09:27 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register