Wednesday, 22 October 2014 09:44
beggarly

New feature for images from Google !

Request new features on Xmap component
Forum rules
This

New feature for images from Google !

Postby Greg » Fri Apr 09, 2010 9:24 am

This is from the Google Webmasters Blog

And I think it should be added in Xmap as it could simply retrieve the first link met in the src= (+ base url) in the content .

Adding Images to your Sitemaps

Sitemaps are an invaluable resource for search engines. They can highlight the important content on a site and allow crawlers to quickly discover it. Images are an important element of many sites and search engines could equally benefit from knowing which images you consider important. This is particularly true for images that are only accessible via JavaScript forms, or for pages that contain many images but only some of which are integral to the page content.

Now you can use a Sitemaps extension to provide Google with exactly this information. For each URL you list in your Sitemap, you can add additional information about important images that exist on that page. You don’t need to create a new Sitemap, you can just add information on images to the Sitemap you already use.

Adding images to your Sitemaps is easy. Simply follow the instructions in the Webmaster Tools Help Center or refer to the example below:


Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
  <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
   xmlns:image="http://www.google.com/schemas/sitemap-image/1.1">
  <url>
    <loc>http://example.com/sample.html</loc>
    <image:image>
        <image:loc>http://example.com/image.jpg</image:loc>
    </image:image>
  </url>
</urlset>
Joomla 1.5.22 / 2.5.7 | VM 2.0.12b | Xmap 1.2.14 / 2.3.0 | PHP5.3.17
Greg
Senior Boarder
Senior Boarder
 
Posts: 50
Joined: Sun Sep 16, 2007 7:42 pm

Re: New feature for images from Google !

Postby guilleva » Thu Apr 15, 2010 6:34 am

Hi Greg! Thanks for suggesting that! I think it's a good idea! I will investigate a little more and see what can I do!

Best Regards,

Guillermo Vargas
User avatar
guilleva
Administrator
Administrator
 
Posts: 1527
Joined: Wed Sep 12, 2007 3:10 am
Location: San José, Costa Rica

Re: New feature for images from Google !

Postby Greg » Thu Apr 15, 2010 8:45 am

Ok, :)

be aware that the schema actually return a 404
http://www.google.com/schemas/sitemap-image/1.1

so yes we must investigate with caution on this.
Joomla 1.5.22 / 2.5.7 | VM 2.0.12b | Xmap 1.2.14 / 2.3.0 | PHP5.3.17
Greg
Senior Boarder
Senior Boarder
 
Posts: 50
Joined: Sun Sep 16, 2007 7:42 pm

Re: New feature for images from Google !

Postby Greg » Thu Apr 22, 2010 9:09 am

Open a bug report, related to this new feature:
http://joomla.vargas.co.cr/en/forum?view=topic&f=2&t=2993
Joomla 1.5.22 / 2.5.7 | VM 2.0.12b | Xmap 1.2.14 / 2.3.0 | PHP5.3.17
Greg
Senior Boarder
Senior Boarder
 
Posts: 50
Joined: Sun Sep 16, 2007 7:42 pm

Re: New feature for images from Google !

Postby Greg » Fri Apr 23, 2010 10:38 am

You haven't add the xmlns:image="http://www.google.com/schemas/sitemap-image/1.1"

is it normal ?
Joomla 1.5.22 / 2.5.7 | VM 2.0.12b | Xmap 1.2.14 / 2.3.0 | PHP5.3.17
Greg
Senior Boarder
Senior Boarder
 
Posts: 50
Joined: Sun Sep 16, 2007 7:42 pm

Re: New feature for images from Google !

Postby guilleva » Fri Apr 23, 2010 10:14 pm

Hi Greg,

yes, I added it, it's at the end of the line <urlset xmlns....
User avatar
guilleva
Administrator
Administrator
 
Posts: 1527
Joined: Wed Sep 12, 2007 3:10 am
Location: San José, Costa Rica

Re: New feature for images from Google !

Postby Greg » Sat Apr 24, 2010 7:46 am

oh

ok sorry, don't remember to have seen it I will look again...perhaps a bug for me.
Or just a brain bug for me...lol
Joomla 1.5.22 / 2.5.7 | VM 2.0.12b | Xmap 1.2.14 / 2.3.0 | PHP5.3.17
Greg
Senior Boarder
Senior Boarder
 
Posts: 50
Joined: Sun Sep 16, 2007 7:42 pm

Re: New feature for images from Google !

Postby Greg » Sun Apr 25, 2010 12:56 am

Hi,

Ok I've checked and rechecked but this is what I got on the head of my sitemap, with images set to ON

Code: Select all
<urlset xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">

<url>
etc ..


No xmlns:image= for me...
Joomla 1.5.22 / 2.5.7 | VM 2.0.12b | Xmap 1.2.14 / 2.3.0 | PHP5.3.17
Greg
Senior Boarder
Senior Boarder
 
Posts: 50
Joined: Sun Sep 16, 2007 7:42 pm

Re: New feature for images from Google !

Postby Greg » Mon Apr 26, 2010 8:52 am

I think I will reinstall it from scratch, to be sure...
Joomla 1.5.22 / 2.5.7 | VM 2.0.12b | Xmap 1.2.14 / 2.3.0 | PHP5.3.17
Greg
Senior Boarder
Senior Boarder
 
Posts: 50
Joined: Sun Sep 16, 2007 7:42 pm

Re: New feature for images from Google !

Postby leewillis77 » Tue Apr 27, 2010 10:09 am

Hi - I've been looking at this new feature for a site I run. Once I've got this issue sorted I'll be looking to develop a patch for the Virtuemart extension to add product images - however ...

With 1.2.7 I do get some images included in my sitemap, but some pages simply don't show the images. I've added some debug into com_content.php and the regex is matching, picking up the images, and added them to $node->images, but the images aren't actually included in the final sitemap.

Since I'm not familiar with the code can anyone point me to the next sensible place to start debugging?

Thanks
leewillis77
Fresh Boarder
Fresh Boarder
 
Posts: 14
Joined: Wed Apr 21, 2010 9:26 am

Next

Return to New Features



Who is online

Users browsing this forum: No registered users and 1 guest