Ejemplo n.º 1
0
 /// <summary>
 /// Registers the area.
 /// </summary>
 /// <param name="context">The current context</param>
 public override void RegisterArea(AreaRegistrationContext context)
 {
     WebPiranha.InitManager(context);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Generates the correct url.
 /// </summary>
 /// <param name="permalink">The permalink name</param>
 /// <returns>The url</returns>
 private string GetPermalink(string permalink)
 {
     return(WebPiranha.GetSiteUrl() + "/" + (!WebPiranha.PrefixlessPermalinks ? WebPiranha.GetUrlPrefixForHandlerId("PERMALINK") + "/" : "") + permalink);
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Generates the correct url.
 /// </summary>
 /// <param name="permalink">The permalink name</param>
 /// <returns>The url</returns>
 private string GetPermalink(string permalink)
 {
     return(WebPiranha.GetSiteUrl() + "/" + (!WebPiranha.PrefixlessPermalinks ? Application.Current.Handlers.GetUrlPrefix("PERMALINK") + "/" : "") + permalink);
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Initializes the webb app.
 /// </summary>
 public static void AppInitialize()
 {
     WebPiranha.Init();
     WebPiranha.InitServices();
 }