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 15 2025 11:49:40
Script start
Timing: Jan 15 2025 11:49:40
Module start 'layout'
Timing: Jan 15 2025 11:49:40
Module start 'content'
Timing: Jan 15 2025 11:49:41
Module end 'content'
Timing: Jan 15 2025 11:49:41
Script end

Main resources:

Total runtime0.8269 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.0063 596.7500151.1875
Module start 'layout' 0.00630.0021 747.937536.6172
Module start 'content' 0.00840.8178 784.5547903.8516
Module end 'content' 0.82620.0007 1,688.40637.7656
Script end 0.8269  1,696.1719 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.3814160.0002
Check MTime0.00130.1514160.0001
Mysql Total
Database connection0.00130.151510.0013
Mysqli_queries0.777994.0763550.0141
Looping result0.00040.0529530.0000
Template Total0.799796.720.3999
Template load0.00240.290520.0012
Template processing0.797396.416320.3986
Template load and register function0.00210.251910.0021
states
state_id_array0.00100.119910.0010
state_identifier_array0.00090.114720.0005
Override
Cache load0.00200.2411160.0001
Sytem overhead
Fetch class attribute can translate value0.00040.046120.0002
Fetch class attribute name0.00210.255530.0007
XML
Image XML parsing0.00110.132720.0005
class_abstraction
Instantiating content class attribute0.00000.001230.0000
General
dbfile0.00140.1751160.0001
String conversion0.00000.000840.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.0001 secs