'ignore_visibility' defaults to true

Author Message

Benjamin Kroll

Wednesday 23 February 2011 2:54:02 pm

I ran into an issue today where books on an author profile page would show up, despite the book being hidden in eZPublish.

After a checking my fetch and then the docs I found that (to my suprise) the 'ignore_visibility' parameters on the 'reverse_related_objects' and 'reverse_related_objects_count' are defaulting to TRUE.

Does anyone have an explanation as to why this is? It seems very odd to me, especially considering that other fetches that support this parameter seem to default to FALSE, as I (and other I've spoken to) would expect.

Would love to find the reasoning behind this.

cheers,
Ben

Bayron Guevara

Wednesday 23 February 2011 10:46:02 pm

It's because although the 'ignore_visibility' parameter had been set to true, eZ Publish still applies the filter as is defined in site.ini.[SiteAccessSettings].ShowHiddenNodes, so it have a higher priority and you content isn't retrieved.

Could you try to set this parameter to true inside a file override?

Web Developer & Modern Philosopher
Visit http://www.laprensa.hn, http://www.diez.hn, http://www.estilo.hn

Peter Keung

Thursday 24 February 2011 8:46:10 am

Philipp's good memory suggests that it defaults to TRUE for backwards compatibility reasons, because the "reverse_related_objects" fetch didn't used to have an "ignore_visibility" parameter. So I guess it's just one of those "gotchas"!

http://www.mugo.ca
Mugo Web, eZ Partner in Vancouver, Canada

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

Main resources:

Total runtime0.7141 sec
Peak memory usage4,096.0000 KB
Database Queries59

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0073 589.0313152.6250
Module start 'layout' 0.00730.0034 741.656339.4531
Module start 'content' 0.01070.7019 781.1094581.1563
Module end 'content' 0.71260.0014 1,362.265612.1563
Script end 0.7140  1,374.4219 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.4951160.0002
Check MTime0.00150.2099160.0001
Mysql Total
Database connection0.00120.161510.0012
Mysqli_queries0.664092.9812590.0113
Looping result0.00060.0812570.0000
Template Total0.680595.320.3403
Template load0.00220.301520.0011
Template processing0.678394.990620.3392
Template load and register function0.00020.025910.0002
states
state_id_array0.00170.240210.0017
state_identifier_array0.00080.115020.0004
Override
Cache load0.00180.2568190.0001
Sytem overhead
Fetch class attribute can translate value0.00080.113430.0003
Fetch class attribute name0.00170.236650.0003
XML
Image XML parsing0.00110.157130.0004
class_abstraction
Instantiating content class attribute0.00000.001450.0000
General
dbfile0.00090.1315240.0000
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
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltags/emphasize.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/emphasize.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 15
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs