|
Home > Archive > Microsoft Content Management Server > September 2006 > convert edit mode link to proper url
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 |
convert edit mode link to proper url
|
|
| scottrm38@yahoo.co.uk 2006-09-26, 7:24 am |
| Hi
For a temporary bug fix I have a requirement to convert the url's you
get in edit mode format such as
http://www.mysite.com/NR/exeres/944...tionUnpublished
into the normal format. I would have thought this link would be in the
format /NR/exeres/GUID so I could extract the GUID and get the posting
from there by using Searches.GetByGuid but his does not seem to work.
Any ideas?
Thanks
Scott
| |
| Stefan [MSFT] 2006-09-27, 1:19 pm |
| Hi Scott,
this will work if the posting with the GUID exists in published mode.
Also ensure that add "{" "}" chars around the extracted GUID.
Cheers,
Stefan
--
This posting is provided "AS IS" with no warranties, and confers no rights
<scottrm38@yahoo.co.uk> wrote in message
news:1159266122.663827.226070@m7g2000cwm.googlegroups.com...
> Hi
>
> For a temporary bug fix I have a requirement to convert the url's you
> get in edit mode format such as
> http://www.mysite.com/NR/exeres/944...tionUnpublished
>
> into the normal format. I would have thought this link would be in the
> format /NR/exeres/GUID so I could extract the GUID and get the posting
> from there by using Searches.GetByGuid but his does not seem to work.
> Any ideas?
>
> Thanks
>
> Scott
>
| |
| scottrm38@yahoo.co.uk 2006-09-28, 7:25 am |
| Hi
Thanks for your reply, the page is published and I did remember the
brackets, it seems to be an entirely different GUID that appears in the
link I gave compared to what you get if you retrieve it directly from
some debug code in that page.
Scott
Stefan [MSFT] wrote:[vbcol=seagreen]
> Hi Scott,
>
> this will work if the posting with the GUID exists in published mode.
> Also ensure that add "{" "}" chars around the extracted GUID.
>
> Cheers,
> Stefan
>
> --
> This posting is provided "AS IS" with no warranties, and confers no rights
>
>
> <scottrm38@yahoo.co.uk> wrote in message
> news:1159266122.663827.226070@m7g2000cwm.googlegroups.com...
| |
| Stefan [MSFT] 2006-09-28, 7:25 am |
| Hi Scott,
for new pages this will be the GUID of the channel.
Cheers,
Stefan
--
This posting is provided "AS IS" with no warranties, and confers no rights
<scottrm38@yahoo.co.uk> wrote in message
news:1159433303.055466.103240@m73g2000cwd.googlegroups.com...
> Hi
>
> Thanks for your reply, the page is published and I did remember the
> brackets, it seems to be an entirely different GUID that appears in the
> link I gave compared to what you get if you retrieve it directly from
> some debug code in that page.
>
> Scott
> Stefan [MSFT] wrote:
>
| |
| Stefan [MSFT] 2006-09-28, 7:25 am |
| Hi Scott,
another reason might be that there is more than one item with the same name
in this channel.
Then you cannot get a friendly URL and you will have two items with
different GUIDs and the same name.
Cheers,
Stefan
--
This posting is provided "AS IS" with no warranties, and confers no rights
"Stefan [MSFT]" <stefang@online.microsoft.com> wrote in message
news:uXSLD5t4GHA.3376@TK2MSFTNGP05.phx.gbl...
> Hi Scott,
>
> for new pages this will be the GUID of the channel.
>
> Cheers,
> Stefan
>
> --
> This posting is provided "AS IS" with no warranties, and confers no rights
>
>
> <scottrm38@yahoo.co.uk> wrote in message
> news:1159433303.055466.103240@m73g2000cwd.googlegroups.com...
>
>
|
|
|
|
|