convert edit mode link to proper url
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Microsoft Content Management Server > convert edit mode link to proper url




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    convert edit mode link to proper url  
scottrm38@yahoo.co.uk


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
09-26-06 12:24 PM

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






[ Post a follow-up to this message ]



    Re: convert edit mode link to proper url  
Stefan [MSFT]


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
09-27-06 06: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
>







[ Post a follow-up to this message ]



    Re: convert edit mode link to proper url  
scottrm38@yahoo.co.uk


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
09-28-06 12:25 PM

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






[ Post a follow-up to this message ]



    Re: convert edit mode link to proper url  
Stefan [MSFT]


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
09-28-06 12:25 PM

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







[ Post a follow-up to this message ]



    Re: convert edit mode link to proper url  
Stefan [MSFT]


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
09-28-06 12:25 PM

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







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 02:38 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register