How to use one placeholder content multiple times..
Windows Server Forum Index Windows Server
Server discussion on Windows platform.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web winserverhelp.com
How to use one placeholder content multiple times..

 
Post new topic   Reply to topic    Windows Server Forum Index -> CMS Server
Author Message
Ravi
Guest





Posted: Tue Jan 18, 2005 4:35 am    Post subject: How to use one placeholder content multiple times.. Reply with quote

Hi,

I have a requrement to display placeholder content as
mailto anchor. I need to use the one placeholder content 2
times when it renders to the user.

My current template has placeholder of Email. User should
able to click this link to send a mail.
So i believe i have to use placeholder content to display
anchor like,

<a href="mailto:ravi@css.com.au">ravi@css.com.au</a>


Could anyone outline how can i display placeholder content
as mailto anchor..

Thanks,
Ravi
Back to top
Angus Logan [MVP]
Guest





Posted: Tue Jan 18, 2005 6:41 am    Post subject: Re: How to use one placeholder content multiple times.. Reply with quote

HI Ravi,

See http://blogs.msdn.com/stefan_gossner/archive/2004/04/24/119546.aspx

Regards
--
________________________________________

Angus Logan (MCAD/MCDBA/MCP/MVP for MCMS)
Product Specialist
Microsoft Application Solutions
Data#3 Limited
E angus_logan@data3.com.au
BLOG www.anguslogan.com
________________________________________
"Ravi" <anonymous@discussions.microsoft.com> wrote in message
news:1d7b01c4fce4$d8428e40$a401280a@phx.gbl...
Quote:
Hi,

I have a requrement to display placeholder content as
mailto anchor. I need to use the one placeholder content 2
times when it renders to the user.

My current template has placeholder of Email. User should
able to click this link to send a mail.
So i believe i have to use placeholder content to display
anchor like,

a href="mailto:ravi@css.com.au">ravi@css.com.au</a


Could anyone outline how can i display placeholder content
as mailto anchor..

Thanks,
Ravi
Back to top
Stefan [MSFT]
Guest





Posted: Tue Jan 18, 2005 5:20 pm    Post subject: Re: How to use one placeholder content multiple times.. Reply with quote

Hi Ravi,

you can easily retrieve the placeholder content by code in your code behind
file by using the following code:

string content =
CmsHttpContext.Current.Posting.Placeholders["PlaceholderName"].Html;

Then render this content in your mailto link.

Cheers,
Stefan.

"Ravi" <anonymous@discussions.microsoft.com> wrote in message
news:1d7b01c4fce4$d8428e40$a401280a@phx.gbl...
Quote:
Hi,

I have a requrement to display placeholder content as
mailto anchor. I need to use the one placeholder content 2
times when it renders to the user.

My current template has placeholder of Email. User should
able to click this link to send a mail.
So i believe i have to use placeholder content to display
anchor like,

a href="mailto:ravi@css.com.au">ravi@css.com.au</a


Could anyone outline how can i display placeholder content
as mailto anchor..

Thanks,
Ravi
Back to top
 
Post new topic   Reply to topic    Windows Server Forum Index -> CMS Server All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




New Topics Powered by phpBB