Forums / Setup & design / Adding Node ID to Friendly URL for Google News Compliance

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

eZ debug

Timing: Jan 29 2025 10:19:15
Script start
Timing: Jan 29 2025 10:19:15
Module start 'content'
Timing: Jan 29 2025 10:19:15
Module end 'content'
Timing: Jan 29 2025 10:19:15
Script end

Main resources:

Total runtime0.1798 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0065 588.1875180.8047
Module start 'content' 0.00650.0069 768.992298.6016
Module end 'content' 0.01340.1663 867.5938526.4063
Script end 0.1797  1,394.0000 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00351.9613200.0002
Check MTime0.00130.7237200.0001
Mysql Total
Database connection0.00080.446010.0008
Mysqli_queries0.125269.64521410.0009
Looping result0.00140.76421390.0000
Template Total0.165892.210.1658
Template load0.00080.465510.0008
Template processing0.165091.731510.1650
Override
Cache load0.00050.271410.0005
Sytem overhead
Fetch class attribute can translate value0.00080.461010.0008
XML
Image XML parsing0.00050.304110.0005
General
dbfile0.01065.8770200.0005
String conversion0.00000.003230.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs