eZ Community » Forums » Setup & design » Adding Node ID to Friendly URL for...
expandshrink

Adding Node ID to Friendly URL for Google News Compliance

Adding Node ID to Friendly URL for Google News Compliance

Wednesday 06 April 2011 7:39:15 am - 4 replies

Hi, I'm trying to make my site be indexed in the news section of the Google News Feed.

to make this possible I have two choices:

1. Make a special XML News Site Map complying with their statements.

2. Mi URL's must have at least a 3 digit unique Identifier.

Because the first one I couldn't simply make it work (with the googlesitemapgenerator Extension, just never made it work) I am Trying to make the URL's show their object ID at the end but I can't seem to find how. Checked filters but it seems it will just replace X text for new one...

Im lost and the site is loosing Google indexation, its a news site.

Wednesday 06 April 2011 1:57:03 pm

Hi Luis, here's an idea how you could solve your problem... The sitemap generation functionality could be also achieved using eZP templates without the extension. Something like this:

  • create a special layout called for example sitemap_xml, make it use sitemap_xml.tpl template, and set the appropriate content type
  • in sitemap_xml.tpl generate the apropriate xml headers for the sitemap, and also include {$module_result.content} where it should be
  • in the template for the full view of your front page do this logic: if the current layout is "sitemap_xml" then generate the xml for the sitemap, else display the normal code for the front page

Then your sitemap xml should be available on the link like this:

/layout/set/sitemap_xml/content/view/full/2

Wednesday 06 April 2011 3:04:11 pm

@Marko: I think Luis already did that before (he used the ggxmlview extensions), but he was looking for something working out-of-the-box

Wednesday 06 April 2011 8:53:43 pm

@Marko: I think Luis already did that before (he used the ggxmlview extensions), but he was looking for something working out-of-the-box

Hi,

@Marko: I appreciate your help Marko, as Gaetano says I have implemented his extension which is a great step. The problem is Google wont recognize it... I have checked what the problem may be and found that special characters truncate the code, including quotes, accents, etc.

So I'm stuck... Google news feeds need this map or the 3 digit code in the URL, so I was thinking about this second option...

And it's not that I want an "out-of-the-box" solution it's just that right now Im (still) not an expert on EZ Publish and its difficult for me to find enough information to solve my problems.

I really appreciate your help for both of you.

Modified on Wednesday 06 April 2011 8:55:24 pm by Luis D Garcia

Monday 28 November 2011 10:35:24 am

There is in fact an out of the box solution for this:

http://share.ez.no/projects/dpgnu-google-news-url

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from