Announcement

Collapse
No announcement yet.

Zoom Image Sitemap

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Zoom Image Sitemap

    Hi All,
    I'm not sure if this is possible.
    I've noticed that none of the large zoom0 images on my site are indexed in Google Images as there is no direct HTML link.
    I thought about creating an image sitemap, but again, the large amount of script between the image and page is hampering my efforts.

    I have copied the layout for the standard XML sitemap and added the image tags. However, I can't find how to reference zoomimage0 to add them to the sitemap list.
    The zoomimage0 references the internal location folder and image file. I need it to show the domain/catalog/ZoomImage0.
    This is as far as I have got;

    <?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">
    <actinic:block type="EntireSectionList">
    <url><loc><actinic:block if="%3cactinic%3avariable%20name%3d%22IsBaseHREFStandard%22%20%2f%3e" ><actinic:variable name="CatalogURL" /></actinic:block><actinic:block if="%3cactinic%3avariable%20name%3d%22IsBaseHREFSSL%22%20%2f%3e" ><actinic:variable name="SSLCatalogURL" /></actinic:block><actinic:variable name="SectionHref" /></loc><priority>1.00</priority></url>
    <actinic:block type="SectionEntireProductList" >

    <actinic:block if="%3cactinic%3avariable%20name%3d%22ProductType%22%20%2f%3e%20%3d%3d%200" ><actinic:block if="%3cactinic%3avariable%20name%3d%22IsProductPageGenerated%22%20%2f%3e" ><url><loc><actinic:block if="%3cactinic%3avariable%20name%3d%22IsBaseHREFStandard%22%20%2f%3e" ><actinic:variable name="CatalogURL" /></actinic:block><actinic:block if="%3cactinic%3avariable%20name%3d%22IsBaseHREFSSL%22%20%2f%3e" ><actinic:variable name="SSLCatalogURL" /></actinic:block><actinic:variable name="ProductPageName" /></loc>
    <image:image>
    <image:loc><actinic:block if="%3cactinic%3avariable%20name%3d%22IsBaseHREFStandard%22%20%2f%3e" ><actinic:variable name="CatalogURL" /></actinic:block><actinic:block if="%3cactinic%3avariable%20name%3d%22IsBaseHREFSSL%22%20%2f%3e" ><actinic:variable name="SSLCatalogURL" /></actinic:block><actinic:variable name="ZoomImage0" /></image:loc>
    </image:image>
    </url></actinic:block></actinic:block>
    <actinic:block if="%3cactinic%3avariable%20name%3d%22ProductType%22%20%2f%3e%20%3d%3d%200" ><actinic:block if="%21%3cactinic%3avariable%20name%3d%22IsProductPageGenerated%22%20%2f%3e" ><url><loc><actinic:block if="%3cactinic%3avariable%20name%3d%22IsBaseHREFStandard%22%20%2f%3e" ><actinic:variable name="CatalogURL" /></actinic:block><actinic:block if="%3cactinic%3avariable%20name%3d%22IsBaseHREFSSL%22%20%2f%3e" ><actinic:variable name="SSLCatalogURL" /></actinic:block><actinic:variable name="SectionPageName" />#<actinic:variable name="EncodedProductAnchor" /></loc>
    <image:image>
    <image:loc><actinic:block if="%3cactinic%3avariable%20name%3d%22IsBaseHREFStandard%22%20%2f%3e" ><actinic:variable name="CatalogURL" /></actinic:block><actinic:block if="%3cactinic%3avariable%20name%3d%22IsBaseHREFSSL%22%20%2f%3e" ><actinic:variable name="SSLCatalogURL" /></actinic:block><actinic:variable name="ZoomImage0" /></image:loc>
    </image:image>
    </url></actinic:block></actinic:block>
    </actinic:block>
    </actinic:block>
    </urlset>

    #2
    For now, I get an internal folder link for the image file, so I have the above set up as sitemap2.xml.
    I then copy and edit this to sitemap3.xml, which I have in my Google search console.
    The internal folder names were removed with find and replace, along with any empty image files.

    Comment


      #3
      Hi, my post here uses some php to strip out the local file name from the zoom image links, it may help with what you want to do:

      https://community.sellerdeck.com/for...e-product-feed
      Many Thanks
      Lee
      www.mdnsupplies.co.uk
      www.hookandloopfasteners.co.uk

      Comment


        #4
        Thanks, Lee. I'll look at that and your method of using the zoom images for the product feed.

        Comment


          #5
          I thought you could use the same php method to strip the path name from the zoomimage to use in your sitemap.
          Code:
          <actinic:block if="%3cactinic%3avariable%20name%3d%22IsBaseHREFStandard%22%20%2f%3e" ><actinic:variable name="CatalogURL" /></actinic:block><actinic:block if="%3cactinic%3avariable%20name%3d%22IsBaseHREFSSL%22%20%2f%3e" ><actinic:variable name="SSLCatalogURL" /></actinic:block><actinic:block if="%3cactinic%3avariable%20name%3d%22ZoomImage0%22%20%2f%3e%20%3d%3d%20%22%22"><actinic:variable name="ProductImageFileNameRaw" /></actinic:block><actinic:block if="%3cactinic%3avariable%20name%3d%22ZoomImage0%22%20%2f%3e%20%21%3d%20%22%22"><actinic:block php="true" >$file_path = "<actinic:variable encoding="perl" name="ZoomImage0" />"; $image_name = basename($file_path); echo $image_name;</actinic:block></actinic:block>
          This would default to a standard image if no zoom were available.
          Many Thanks
          Lee
          www.mdnsupplies.co.uk
          www.hookandloopfasteners.co.uk

          Comment


            #6
            Thanks, Lee,
            You've saved me a lot of work there; it works a dream, and I don't have to edit the file names manually.
            I can also leave to upload and rename the sitemap to sitemap2.xml in the Edit Layout Details, bottom left of the XML Image Site Map Layout.

            The complete layout code is now
            Code:
            <?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">
            <actinic:block type="EntireSectionList">
            <url><loc><actinic:block if="%3cactinic%3avariable%20name%3d%22IsBaseHREFStandard%22%20%2f%3e" ><actinic:variable name="CatalogURL" /></actinic:block><actinic:block if="%3cactinic%3avariable%20name%3d%22IsBaseHREFSSL%22%20%2f%3e" ><actinic:variable name="SSLCatalogURL" /></actinic:block><actinic:variable name="SectionHref" /></loc></url>
            <actinic:block type="SectionEntireProductList" >
            <actinic:block if="%3cactinic%3avariable%20name%3d%22ProductType%22%20%2f%3e%20%3d%3d%200" ><actinic:block if="%3cactinic%3avariable%20name%3d%22IsProductPageGenerated%22%20%2f%3e" ><url><loc><actinic:block if="%3cactinic%3avariable%20name%3d%22IsBaseHREFStandard%22%20%2f%3e" ><actinic:variable name="CatalogURL" /></actinic:block><actinic:block if="%3cactinic%3avariable%20name%3d%22IsBaseHREFSSL%22%20%2f%3e" ><actinic:variable name="SSLCatalogURL" /></actinic:block><actinic:variable name="ProductPageName" /></loc>
            <image:image>
            <image:loc><actinic:block if="%3cactinic%3avariable%20name%3d%22IsBaseHREFStandard%22%20%2f%3e" ><actinic:variable name="CatalogURL" /></actinic:block><actinic:block if="%3cactinic%3avariable%20name%3d%22IsBaseHREFSSL%22%20%2f%3e" ><actinic:variable name="SSLCatalogURL" /></actinic:block><actinic:block if="%3cactinic%3avariable%20name%3d%22ZoomImage0%22%20%2f%3e%20%3d%3d%20%22%22"><actinic:variable name="ProductImageFileNameRaw" /></actinic:block><actinic:block if="%3cactinic%3avariable%20name%3d%22ZoomImage0%22%20%2f%3e%20%21%3d%20%22%22"><actinic:block php="true" >$file_path = "<actinic:variable encoding="perl" name="ZoomImage0" />"; $image_name = basename($file_path); echo $image_name;</actinic:block></actinic:block></image:loc>
            </image:image>
            </url></actinic:block></actinic:block>
            <actinic:block if="%3cactinic%3avariable%20name%3d%22ProductType%22%20%2f%3e%20%3d%3d%200" ><actinic:block if="%21%3cactinic%3avariable%20name%3d%22IsProductPageGenerated%22%20%2f%3e" ><url><loc><actinic:block if="%3cactinic%3avariable%20name%3d%22IsBaseHREFStandard%22%20%2f%3e" ><actinic:variable name="CatalogURL" /></actinic:block><actinic:block if="%3cactinic%3avariable%20name%3d%22IsBaseHREFSSL%22%20%2f%3e" ><actinic:variable name="SSLCatalogURL" /></actinic:block><actinic:variable name="SectionPageName" />#<actinic:variable name="EncodedProductAnchor" /></loc>
            <image:image>
            <image:loc><actinic:block if="%3cactinic%3avariable%20name%3d%22IsBaseHREFStandard%22%20%2f%3e" ><actinic:variable name="CatalogURL" /></actinic:block><actinic:block if="%3cactinic%3avariable%20name%3d%22IsBaseHREFSSL%22%20%2f%3e" ><actinic:variable name="SSLCatalogURL" /></actinic:block><actinic:block if="%3cactinic%3avariable%20name%3d%22ZoomImage0%22%20%2f%3e%20%3d%3d%20%22%22"><actinic:variable name="ProductImageFileNameRaw" /></actinic:block><actinic:block if="%3cactinic%3avariable%20name%3d%22ZoomImage0%22%20%2f%3e%20%21%3d%20%22%22"><actinic:block php="true" >$file_path = "<actinic:variable encoding="perl" name="ZoomImage0" />"; $image_name = basename($file_path); echo $image_name;</actinic:block></actinic:block></image:loc>
            </image:image>
            </url></actinic:block></actinic:block>
            </actinic:block>
            </actinic:block>
            </urlset>

            Comment

            Working...
            X