I want to show a list of the titles of all pages in a wiki on the home page. I can't find anything in the documentation, there doesn't seem to be a wikimedia forum. The only question I can find on SO hasn't been answered.
Any suggestions?
Found an extension that does exactly what I want.
http://www.mediawiki.org/wiki/Extension:DynamicPageList_(Wikimedia)
Wikipedia allows you to view any page in XML. Say you want the wiki of the Apple Macintosh. The regular wiki URL is http://en.wikipedia.org/wiki/Macintosh if you take the end (after wiki/ i.e. "Macintosh" and put it instead of the X's in this url: http://en.wikipedia.org/wiki/Special:Export/XXXXXXX it'll generate the XML of that page which you can then parse out.
Hope this helps :)
Related
Question is the following, we have site with video. Where address is video title, which can changing all the time. For example user upload video and name it "nice video" then he rename it to "nice video in London". So in this case URL also changed from "http://example.com/video123/nice-video" to http://example.com/video123/nice-video-in-london.
From my research I found that dailymotion using canonical pointing to the page without any keywords in the URL (example.com/video123). So question which URL will be in SERP?
Question, how should we care of this? Thank you so much in advance for any suggestions on it.
Regards,
Constantine
Answer: You will put in the canonical link the link of the page that you intent to give the credit to. The page that is gonna show on SERP is the one its' link is INSIDE the canonical link tag and not the one that HAS the tag.
Why:
Page0 = http://example.com/video123/nice-video-in-london
Page1= http://example.com/video123/nice-video
The canonical link is used so u can make clear to the crawl bots the page is a "dublicated content" and the original is the "canonical link". So in your example the search engine is looking at the page 0 which is "http://example.com/video123/nice-video-in-london" and find a canonical tag. The search engine understands that this is a dublicated content and looks at the link in the canonical tag (canonical=---->original page1"http://example.com/video123/nice-video"<----) and realises that every traffic u are getting from page 1 should be added to the traffic of page 0. And for that reason the page 1 --->video123/nice-video-in-london.<--- is getting zero traffic while the page 0 --->video123/nice-video<--- is getting traffic accounted for both pages AND this page will show on SERP for obvious i think reasons.
Let me know if u have more questions on that or if you need some more details on how or why it works that way.
I just found out that Google recently decided to start using their own "title" when they display their search results. Also, after checking Yahoo and Bing I saw that the way they are displaying their results are the same but in completely different way than Google.
I guess my question would be, if there is an actual "correct" way of adding titles to my pages in order for Google to display what I want them to and this way get the same results with Yahoo/Bing that are currently using the page's title as a search result (sometimes they pick up the first tag and use it as title).
Any recommendations or links to follow for more studying would be appreciated.
There's nothing you can really do about it. Google will choose what title to display based on criteria they have not made public. This usually is the page's title as found in the <title> tag but if Google feels a different title better summarizes the page's content they may choose to display something else.
You can try to change your page titles to better reflect the page's content and see if that helps.
Using optimal keyword prominency in meta tags according to guidelines... and Google will pick up your meta tags. See our news portal's source and metas (keywords: hírek, választás 2014, etc.): http://valasztas2014.hir24.hu/
http://www.sitefinity.com/devnet/forums/sitefinity/developing-with-sitefinity/override-how-page-title-is-generated.aspx#2050837
I would like to override how the page titles for all pages on a site are generated. The client wants the title to be similar to the site breadcrumb where it is a concatenated list of ancestral page names plus the current page.
I figure that this could be generated when a page is saved but I would have to alter the page title of the current page and all child pages. If I did it this way then if they changed their mind later then I would have to regenerate all of the page names.
Alternatively if I could just override how the page titles are put on the page then I could go get the ancestors and generate the title when the page is viewed by a user.
I lean toward the second but I don't know how to do either. Any ideas?
I am working on 5.X.
just cross posting the answer you got on the forums in case anyone is looking here.
The answer from Liam was to refer to this KB article: http://www.sitefinity.com/devnet/kb/sitefinity-4-x/globally-overwriting-properties-for-frontend-pages.aspx
which allows you to use global.asax to override the properties globally. pretty slick, I wasn't aware of it!
My suggestion was if you need to do it at the template level to use the SiteMapBase.GetActualCurrentNode() method to do it manually.
hope you got it all worked out!
Has anyone got any ideas on where we should be adding our SEO metadata in a Web Forms project? Why I ask is that currently I have two main Masterpages, one is the home page and the other one is every other page, they both have the same metadata that’s just a generic description and set of key words about my site. The problem with that is search engines are only picking up my home page and my own search engine displays the same title and description for all results.
The other problem is the site is predominantly dynamic so if you type in a search for beach which is a major categories on the site you get 10000 results that all go to different information but all look like a link to the same page to the user.
edit
It's live here www.themorningtonpeninsula.com
Don't know why this post was moved here either, I put it up on stackoverflow.com. I didn't know about this site but I'm glad I do now!
It is in its essence a programming question and the answer is to use dynamic meta tags to your pages and your the master pages. If you do a search on this most of what comes up is "How to add meta tags to your masterpages" that's easy but not a good idea!
Put this in the page_load of you page then populate the hard coded bits from the database.
Page.Header.Title = "Some new dynamically created page Title!";
Page.Header.Description = "Some dynamically created description";
Page.Header.Keywords = "stuff, more stuff, even more stuff";
HtmlMeta myMetaTag = new HtmlMeta();
myMetaTag.Name = "robots";
myMetaTag.Content = "noindex";
Page.Header.Controls.Add(myMetaTag);
Does the trick.
Cheers,
Mike.
Not sure why this got migrated here since it's really a programming question. To answer the SEO aspect: yes, all pages should have unique titles that describe the page, and usually a relevant meta description.
Note, search engines are picking up all your pages, as a search for site:www.themorningtonpeninsula.com will show you. But since they all have the same title they are probably not appearing in normal searches.
For the technical side, you can definitely set the page title when using master pages in ASP. I think you can set the title when you create a new page, but if not the first line of each page should have the title attribute like in this code from one of my projects. Here the title would be "Help pages":
<%# Page Language="VB" MasterPageFile="~/MasterPage.master" CodeFile="Help.aspx.vb" Inherits="Help" title="Help pages" %>
I'm not 100% sure about the meta description but it should be possible to set that in the VB/C# code behind the page. If you can't get it working I'd recommend asking a more specific programming question on Stack Overflow.
do you know how google recovers the description of a website in their search results? is it the meta-description? the first paragraph?
Their algorithms aren't officially released to the public, but if there is a meta description tag, it takes that. Otherwise it generally depends on where the keywords lie within the body of the webpage. If someone is searching for "foo", a paragraph with foo in it will likely appear, with foo highlighted in bold.
Search Engines (including Google) crawl through the first introductory paragraph of the page or a post and takes that excerpt to put in the description when search results are shown. But there's a protection measure that one should take to be SEO friendly. If you are starting your page/post with an image, it negatively affects the SEO of that page because the search results are in text form and for that search engines won't understand the format of the image since they want a text description. In case of WordPress, use All IN One SEO Pack Plugin to manipulate the description if you are starting your post/page with an image.