$trickOfMySoftware
by mtambulut
JavaScript
/*
localStorage.getItem("CampusCity").charAt(0).toUpperCase() + localStorage.getItem("CampusCity").slice(1)
-------------------
return returnColl.Select(p => new
{
Code = p.Id,
Name = p.Name,
SeoName = p.SeoName,
IsActive = p.IsActive
});
-------------------
/// Seo sayfaları için
string pageUrl = HttpContext.Current.Request.RawUrl;
var serviceProxy = new MetaDefinitionServiceProxy();
var storePages = new string[4] { "subeler","dominos-kampuste/", "-kampusleri", "-kampusleri/" };
if (storePages.Any(p => pageUrl.Contains(p))){
string title = SiteMapHelper.GetValue("title");
string description = SiteMapHelper.GetValue("description");
if (!string.IsNullOrEmpty(title))
ltlTitleMeta.Text = title;
if (!string.IsNullOrEmpty(description))
ltlDescriptionMeta.Text = description;
// Ayrıca _sitemaps => TR.sitemap içinde /default.aspx 'e ve sitemapSettings.config'te yazmış olduğun
(App_Code => SitemapProvider => UniversitySitemapProvider'i eklemen gerek ayrıca,
App_Code => RoutingHelper içine yönlendireceğin url'leri tanımlaman gerek ) UniversitySitemapProvider eklemen
gerek.
//Yönlendirme için Webten Mobile _assets =>xml => UserAgentRedirection.xml' RegeX yazabılırsın
//Web tarafında yönlendirmelerin _controls => core => useragent.ascx.cs içinde yapılıyor (storePages)
//Mobil kısımda ise default.aspx.cs 'e yönlendirilmiş (storePages)
//UniversitySitemapProvider.cs
using Dominos.OnlineOrder.Rest.ServiceProxy;
using Dominos.OnlineOrder.MobileSite.Routing;
using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Globalization;
using System.Linq;
using System.Web;
namespace Dominos.OnlineOrder.MobileSite.SitemapProvider
{
public class...