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 17 2025 22:54:44
Script start
Timing: Jan 17 2025 22:54:44
Module start 'content'
Timing: Jan 17 2025 22:54:44
Module end 'content'
Timing: Jan 17 2025 22:54:44
Script end

Main resources:

Total runtime0.6823 sec
Peak memory usage4,096.0000 KB
Database Queries199

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0055 587.9688180.8047
Module start 'content' 0.00550.5665 768.7734611.3672
Module end 'content' 0.57210.1101 1,380.1406337.3359
Script end 0.6822  1,717.4766 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00370.5398210.0002
Check MTime0.00140.2082210.0001
Mysql Total
Database connection0.00080.124610.0008
Mysqli_queries0.610089.40661990.0031
Looping result0.00180.26661970.0000
Template Total0.656196.220.3280
Template load0.00200.295620.0010
Template processing0.654095.862620.3270
Template load and register function0.00010.019510.0001
states
state_id_array0.00140.204910.0014
state_identifier_array0.00110.157520.0005
Override
Cache load0.00170.2541320.0001
Sytem overhead
Fetch class attribute can translate value0.00180.269440.0005
Fetch class attribute name0.00130.191170.0002
XML
Image XML parsing0.00290.430340.0007
class_abstraction
Instantiating content class attribute0.00000.001880.0000
General
dbfile0.00580.8532410.0001
String conversion0.00000.000630.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
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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 21
 Number of unique templates used: 9

Time used to render debug report: 0.0001 secs