Microsoft Content Management Server - Remove Office Smarttags from Posting

This is Interesting: Free IT Magazines  
Home > Archive > Microsoft Content Management Server > November 2004 > Remove Office Smarttags from Posting





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 Remove Office Smarttags from Posting
Gurmeet Singh

2004-11-03, 2:47 am

Hi Everyone,

Please help me to remove the extra smart tags stored in postings.

When a new posting is done and somebody copies the content from Microsoft
Word, the XML schema is also copied with it which is creating problem for me
when i want to get all postings and display news ticker etc.

Something like this is saved in the html placeholder which is simple and
does not allow any formatting.

This is sample news.

BECOMES -->

This is sample <?xml:namespace prefix = "st1" ns =
"urn:schemas-microsoft-com:office:smarttags"
/><st1:State><st1:place>News</st1:place></st1:State>, .<?xml:namespace prefix
= "o" ns = "urn:schemas-microsoft-com:office:office" />

Please help in how to get content from HTML Placeholder without the extra
tags.

Thanking you in advance.

With regards,
Gurmeet Singh
Stefan [MSFT]

2004-11-03, 2:47 am

Hi Gurmeet,

this can either be done in the CmsPosting_PlaceholderPropertyChanging
workflow event or using a custom placeholder control which does the
stripping before the save.
See here for a sample which needs to be tailored to your needs:
http://www.gotdotnet.com/Community/...5F-B47D4C58230F

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


"Gurmeet Singh" <GurmeetSingh@discussions.microsoft.com> wrote in message
news:0C5107F4-3C87-4FD0-9609-3113993C6BDA@microsoft.com...
> Hi Everyone,
>
> Please help me to remove the extra smart tags stored in postings.
>
> When a new posting is done and somebody copies the content from Microsoft
> Word, the XML schema is also copied with it which is creating problem for

me
> when i want to get all postings and display news ticker etc.
>
> Something like this is saved in the html placeholder which is simple and
> does not allow any formatting.
>
> This is sample news.
>
> BECOMES -->
>
> This is sample <?xml:namespace prefix = "st1" ns =
> "urn:schemas-microsoft-com:office:smarttags"
> /><st1:State><st1:place>News</st1:place></st1:State>, .<?xml:namespace

prefix
> = "o" ns = "urn:schemas-microsoft-com:office:office" />
>
> Please help in how to get content from HTML Placeholder without the extra
> tags.
>
> Thanking you in advance.
>
> With regards,
> Gurmeet Singh



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com