sitemap

multiple SQL tables with PHP to generate sitemap

一世执手 提交于 2019-12-08 13:42:54
问题 I have a sitemap that's generated with PHP and actually its calling only the table retailers as below: $query = "select * from retailers WHERE status='active' ORDER BY added DESC"; and construct as: while ($row = mysql_fetch_array($result)) { $i_url = SITE_URL.'loja/'.$row['slug_title']; $year = substr($row['added'],0,4); $month = substr($row['added'],5,2); $day = substr($row['added'],8,2); $i_date = ''.$year.'-'.$month.'-'.$day.''; // you can assign whatever changefreq and priority you like

Hiding ASP.NET SiteMap nodes in TreeView control

旧城冷巷雨未停 提交于 2019-12-08 13:18:58
问题 I have a SiteMap with All my nodes. I'm using a TreeView control which is linked to the SiteMap for navigation. Now I would like to hide certain nodes from appearing on the TreeView. Is it possible to do this? 回答1: Yes, it's definitely possible. The way we do it is to add a custom "IsPhantom" attribute to the nodes we don't want shown in the sitemap (and in various other places too): <siteMapNode url="~/Welcome.aspx" title="Welcome" description="" isPhantom="true" /> Then in the sitemap

SiteMap Behaviour

我怕爱的太早我们不能终老 提交于 2019-12-08 12:15:16
问题 I've had a good look through a load of MS documentation only to find a tree view like structure to the use of sitemaps. I don't suppose anyone's aware of how it's possible to have a folder-like structure for sitemap navigation? Take for example a structure as follows Home About Me.aspx MyFamily.aspx MyPets.aspx Contact Telephone.aspx Email.aspx Disclaimer.aspx The "About" and "Contact" would be folders, but the sitemap is never hierarchical on a single page. So, I would have my root page with

Google App Engine - SiteMap Creation for a social network

£可爱£侵袭症+ 提交于 2019-12-08 04:17:25
I am creating a social tool - I want to allow search engines to pick up "public" user profiles - like twitter and face-book. I have seen all the protocol info at http://www.sitemaps.org and i understand this and how to build such a file - along with an index if i exceed the 50K limit. Where i am struggling is the concept of how i make this run. The site map for my general site pages is simple i can use a tool to create the file - or a script - host the file - submit the file and done. What i then need is a script that will create the site-maps of user profiles. I assume this would be something

How to link to a child site-map file from a parent site map in ASP.NET MVC4 using MVCSitemapProvider?

若如初见. 提交于 2019-12-08 03:30:34
问题 I am using MVCSitemapProvider by Maarten Balliauw with Ninject DI in MVC4. Being a large-scale web app, enumerating over the records to generate the sitemap xml accounts for 70% of the page load time. For that purpose, I went for using new sitemap files for each level-n dynamic node provider. <mvcSiteMap xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://mvcsitemap.codeplex.com/schemas/MvcSiteMap-File-4.0" xsi:schemaLocation="http://mvcsitemap.codeplex.com/schemas/MvcSiteMap

Parsing the urls in sitemap with different url format using sitemap spider in scrapy, python

三世轮回 提交于 2019-12-07 20:35:16
问题 I am using sitemap spider in scrapy, python. The sitemap seems to have unusual format with '//' in front of urls: <url> <loc>//www.example.com/10/20-baby-names</loc> </url> <url> <loc>//www.example.com/elizabeth/christmas</loc> </url> myspider.py from scrapy.contrib.spiders import SitemapSpider from myspider.items import * class MySpider(SitemapSpider): name = "myspider" sitemap_urls = ["http://www.example.com/robots.txt"] def parse(self, response): item = PostItem() item['url'] = response

Resource file for MVCSiteMapProvider

断了今生、忘了曾经 提交于 2019-12-07 19:16:18
问题 I'm using MVCSiteMapProvider for generating menus with localization for my application. My program works fine as long as the resource files for the menus are in the App_GlobalResources folder. When I move the resources into another folder, it gives an error mentioning not able to find the resources. I'm using $resources:Resource,menu_Home for accessing the resources in the MVC.sitemap file. I want to keep the resource files in a custom folder without storing them in the App_GlobalResources

asp.net sitemap admin seeing what a user sees

独自空忆成欢 提交于 2019-12-07 15:17:11
问题 I am currently trying to figure out how to best go about implementing an administration side for my application. I have a user site, where users can log in, customize their profile, submit information etc. I would like administration users to be able to log in and be able to choose from a list of users. From there, the administrator can submit information for the user just like the user can. Website Start Page > RogerRabbit > Submit Information Website Start Page > BillyBob > Customize

Escaped # in URLs, sitemap and handling by Google crawler

陌路散爱 提交于 2019-12-07 14:24:50
问题 We have a large set of URLs of which some contain a hash character. The hash is not to indicate a fragment, but part of the URL path, so we escape the hash by %23 , e.g. http://example.com/example%231 http://example.com/another-example%232 … Our sitemap.xml lists these URLs as follows: <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> <url> <loc>http://example.com/example%231</loc> </url> <url> <loc>http://example.com/another-example%232</loc> </url> <!-- and so on … --> </urlset>

MVCSiteMapProvider breadcrumbs incorrect parent node id

半腔热情 提交于 2019-12-07 13:30:49
问题 I have this sitemap: <mvcSiteMapNode title="Projects" controller="Projects" action="Index" key="Home" visibility="!*"> <mvcSiteMapNode title="Projects" controller="Projects" action="Index"> <mvcSiteMapNode title="Project" controller="Projects" action="Details" preservedRouteParameters="id"> <mvcSiteMapNode title="Session" controller="Sessions" action="Details" preservedRouteParameters="id"> <mvcSiteMapNode title="Edit Session" controller="Sessions" action="Edit" preservedRouteParameters="id"/