Node visibility and kernel error

Author Message

Clément Matéo

Monday 02 August 2010 7:06:11 am

Hi,

I would like to change the kernel error number when I try to reach a node which has been set hidden in the back end.

for now, I get an "access denied" page. I would prefer to get a "not found" page.

Does anyone know how to do this ?

I also need to keep the "access denied" error for regular node (not hidden) which needs specific policy to be read.

Robin Muilwijk

Tuesday 03 August 2010 11:42:11 am

Hi Clément,

If you click on the "related forum topics" below your post, the third related topic is about overriding the access denied template. I haven't checked it myself, but might be worth a check.

Regards Robin

Board member, eZ Publish Community Project Board - Member of the share.ez.no team - Key values: Openness and Innovation.

LinkedIn: http://nl.linkedin.com/in/robinmuilwijk // Twitter: http://twitter.com/i_robin // Skype: robin.muilwijk

Clément Matéo

Wednesday 04 August 2010 12:36:26 am

Hi Robin,

I have checked the topic about overriding the access denied template. But there is nothing I can use from there.

If I look in this way, I would like to make an override based on node visibility, and there is such option in override options... (unfortunately)

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:06:08
Script start
Timing: Jan 18 2025 02:06:08
Module start 'layout'
Timing: Jan 18 2025 02:06:08
Module start 'content'
Timing: Jan 18 2025 02:06:09
Module end 'content'
Timing: Jan 18 2025 02:06:09
Script end

Main resources:

Total runtime1.1603 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0062 592.0234152.6250
Module start 'layout' 0.00620.0033 744.648439.4453
Module start 'content' 0.00951.1493 784.0938534.0078
Module end 'content' 1.15880.0015 1,318.101612.3125
Script end 1.1603  1,330.4141 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.2968160.0002
Check MTime0.00140.1179160.0001
Mysql Total
Database connection0.00110.097010.0011
Mysqli_queries1.114296.0252570.0195
Looping result0.00060.0493550.0000
Template Total1.123996.920.5620
Template load0.00190.162320.0009
Template processing1.122096.699620.5610
Template load and register function0.00030.022210.0003
states
state_id_array0.00430.373010.0043
state_identifier_array0.00140.118020.0007
Override
Cache load0.00150.1325170.0001
Sytem overhead
Fetch class attribute can translate value0.00060.050920.0003
Fetch class attribute name0.00100.086840.0003
XML
Image XML parsing0.00070.064520.0004
class_abstraction
Instantiating content class attribute0.00000.000840.0000
General
dbfile0.00080.0674180.0000
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
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/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
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 9
 Number of unique templates used: 5

Time used to render debug report: 0.0002 secs