Smart 404 handling

Author Message

ildar s

Thursday 08 April 2010 2:43:54 pm

Hello there,

I'm trying to find out if eZpub offers something similar to WordPress' Smart 404 plugin, which uses the current URL to attempt to find a matching page if the requested page could not be found (http://atastypixel.com/blog/wordpress/plugins/smart-404 )

Can you push me in the right direction?

Thank you,

ildar

Nicolas Pastorino

Monday 12 April 2010 12:56:42 am

Hi Ildar and welcome aboard the eZ Community !

One solution i can imagine for this is to rely on eZ Find, powerful search engine extension for eZ Publish (learn more and try there : http://ez.no/ezfind ). One of its main features, directly mapped to Solr's eponymous feature : More Like This, can help you achieve the smart 404 idea.

Performing a text-based more-like-this query, with the requested URL as base text, could work.

Let us know how it goes,
Cheers !

--
Nicolas Pastorino
Director Community - eZ
Member of the Community Project Board

eZ Publish Community on twitter: http://twitter.com/ezcommunity

t : http://twitter.com/jeanvoye
G+ : http://plus.tl/jeanvoye

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 05:19:48
Script start
Timing: Jan 18 2025 05:19:48
Module start 'layout'
Timing: Jan 18 2025 05:19:48
Module start 'content'
Timing: Jan 18 2025 05:19:48
Module end 'content'
Timing: Jan 18 2025 05:19:48
Script end

Main resources:

Total runtime0.5346 sec
Peak memory usage4,096.0000 KB
Database Queries55

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0061 588.9297152.6094
Module start 'layout' 0.00610.0031 741.539139.4141
Module start 'content' 0.00910.5229 780.9531525.1094
Module end 'content' 0.53210.0025 1,306.06258.1875
Script end 0.5345  1,314.2500 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.5884160.0002
Check MTime0.00130.2375160.0001
Mysql Total
Database connection0.00110.204510.0011
Mysqli_queries0.483590.4482550.0088
Looping result0.00060.1053530.0000
Template Total0.499093.320.2495
Template load0.00250.462620.0012
Template processing0.496592.876020.2483
Template load and register function0.00030.056310.0003
states
state_id_array0.00090.166710.0009
state_identifier_array0.00270.500020.0013
Override
Cache load0.00170.3182160.0001
Sytem overhead
Fetch class attribute can translate value0.00090.166120.0004
Fetch class attribute name0.00150.280430.0005
XML
Image XML parsing0.00050.102120.0003
class_abstraction
Instantiating content class attribute0.00000.001330.0000
General
dbfile0.00130.2368160.0001
String conversion0.00000.001540.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
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/link.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/link.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 11
 Number of unique templates used: 7

Time used to render debug report: 0.0003 secs