Adding Node ID to Friendly URL for Google News Compliance

Author Message

Luis Delgado

Tuesday 05 April 2011 10:39:15 pm

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.

Cheers

GOOD 4 ALL

Marko Žmak

Wednesday 06 April 2011 4:57:03 am

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

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

Gaetano Giunta

Wednesday 06 April 2011 6:04:11 am

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

Principal Consultant International Business
Member of the Community Project Board

Luis Delgado

Wednesday 06 April 2011 11:53:43 am

"

@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.

Cheers

GOOD 4 ALL

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 02:13:31
Script start
Timing: Jan 18 2025 02:13:31
Module start 'layout'
Timing: Jan 18 2025 02:13:31
Module start 'content'
Timing: Jan 18 2025 02:13:32
Module end 'content'
Timing: Jan 18 2025 02:13:32
Script end

Main resources:

Total runtime0.8021 sec
Peak memory usage4,096.0000 KB
Database Queries62

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0058 589.3047152.6563
Module start 'layout' 0.00580.0026 741.960939.5156
Module start 'content' 0.00840.7924 781.4766606.2578
Module end 'content' 0.80080.0013 1,387.734412.0938
Script end 0.8021  1,399.8281 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.4355160.0002
Check MTime0.00150.1844160.0001
Mysql Total
Database connection0.00070.084710.0007
Mysqli_queries0.745192.8986620.0120
Looping result0.00060.0713600.0000
Template Total0.775696.720.3878
Template load0.00220.275320.0011
Template processing0.773496.415820.3867
Template load and register function0.00010.012510.0001
states
state_id_array0.00080.103510.0008
state_identifier_array0.00060.079520.0003
Override
Cache load0.00180.2284320.0001
Sytem overhead
Fetch class attribute can translate value0.00070.086930.0002
Fetch class attribute name0.00120.147570.0002
XML
Image XML parsing0.00150.190330.0005
class_abstraction
Instantiating content class attribute0.00000.001980.0000
General
dbfile0.00100.1309300.0000
String conversion0.00000.001140.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
4content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/li.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/li.tplEdit templateOverride template
1content/datatype/view/ezxmltags/emphasize.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/emphasize.tplEdit templateOverride template
1content/datatype/view/ezxmltags/ul.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/ul.tplEdit templateOverride template
1content/datatype/view/ezxmltags/quote.tpldatatype/ezxmltext/quote.tplextension/ezwebin/design/ezwebin/override/templates/datatype/ezxmltext/quote.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 21
 Number of unique templates used: 9

Time used to render debug report: 0.0002 secs