You could probably get the page ID from Request.QueryString "id" parameter. Get the corresponding PageData and you have your non-FURL in the LinkURL property. You can then use something like this to get the FURL:
UrlBuilder furl = new UrlBuilder(page.LinkURL);
Global.UrlRewriteProvider.ConvertToExternal(furl, page.PageLink, System.Text.UTF8Encoding.UTF8);
If the page has a simple address you can get it from the "PageExternalUrl" property.
Of course you'd have to find a way to skip all of this if the page edited is a new page.
I'm new to EPiServer and I'm trying to create a module which extends the edit view to include a tab with some extra information about a page. Part of this information should be the URL(s) which the user may use when visiting the page. I am a bit lost and would really appreciate some help from someone more experienced with EPiServer.
My environment is:
What I have done is:
I get this code behind file:
[GuiPlugIn(DisplayName = "MyEditTab", Description = "Edit panel description", Area = PlugInArea.EditPanel, Url = "~/MyEditTab.ascx")]
public partial class MyEditTab : System.Web.UI.UserControl
// TODO: Add your Plugin Control Code here.
And this front file after I changed AutoEventWireup to True:
<%@ Control Language="c#" Codebehind="MyEditTab.ascx.cs" AutoEventWireup="True" Inherits="SiteSeeker.MyEditTab" %>
<!-- TODO: Add markup for the plugin here -->
Many thanks for reading! I hope somone will give me a tip.