| Danny Hille 2005-08-26, 7:53 am |
| Hi Stefan,
I agree that you should almost never use rawcontent... but there are
exceptions and this is one of them.
The code i submitted was just example code, the real code i use... well ill
have to give you some background before going into the details.
We have a MCMS driven site that hosts about 45 national sites, and about
15000 postings. We use hostheader mapped sites, wich gives us a great deal of
problems.
But the mail issue is that we have a lot of specialized custom placeholder
controles (build inhouse). and we have around 200 authors, all with different
cms skills.
So the advanced users can make a site/structure bank sort of a template site.
And not to the real issue. Wi have a site/structure copy function that
copys a branch of the CMS "Channels" tree and automatically changes the links
to the correct location.
Ex: you have a channel: Channels/www.sitename.com/myTestSite/tests
in this thannel there are 1 posting called test1, and one subchannel called
subtest
in the test1 posting some custom placeholders and some html placeholders
containing links to the subchannel subtest....
now i you use sitemanager to copy the channel to "Channels\test2"
the structure is copyed, the postings are copyed but the links still points
to:Channels/www.sitename.com/myTestSite/tests/subtest
our function parses all placeholders an finds the links and parses the links
pointing them to the corect location... (and does som language checks,
replaces banned words, and a lot of other stuff)
so i really need to work with the rawcontent...
in a test if i write the replaced content back to the placeholder and writes
the content to a file... the file version is ok but all links in the
placeholder is replaced with ?nrmode=unpublished urls
I really hope you can help me with this issue.
Thanks
Danny
"Stefan [MSFT]" wrote:
> Hi Danny,
>
> never ever use datasource.rawcontent.
> See here for explanation:
> http://blogs.technet.com/stefan_gos.../24/119546.aspx
>
> Check if this solves the problem.
>
> Cheers,
> Stefan
>
> --
> This posting is provided "AS IS" with no warranties, and confers no rights
>
> New to MCMS?
> Check out this book: Building Websites Using MCMS: http://tinyurl.com/6zj44
> ----------------------
>
>
> "Danny Hille" <DannyHille@discussions.microsoft.com> wrote in message
> news:5B6125F0-012C-4D6C-A4D0-2810F7C82C5B@microsoft.com...
>
>
>
|