08-26-05 12:53 PM
Hi Danny,
no you don't have to use rawcontent.
You can cast the item to the correct placeholder type and then access the
content using the correct properties.
The fact that nrmode=unpublished is added is interesting. Actually you are
in update mode - so I would understand that nrmode=update is being added but
not unpublished.
Anyway: this can happen if the URL format is not correct. Then MCMS will not
be able to identify that the URL points to a managed item and you will end
up with an invalid URL.
I would suggest to check the code that generates the URL.
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:BB2B2E10-7E24-4A10-B948-A26DC7A0CD81@microsoft.com...[vbcol=seagreen]
> 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:
>
[ Post a follow-up to this message ]
|