About those disabled navigation links

Author Message

Russell Michell

Wednesday 17 March 2010 7:08:11 pm

Hi all,

I'm likely missing something here, but can anyone tell me why when you go to edit a page (ezwebin) the links in flat_top.tpl are disabled?

I mean, I know how it's done but wondered what the rationale was behind it.

Is it to do with unsaved changes? If so, couldn't a similar system be implemented like in the admin UI with a JS popup "Are you sure you want to discard the draft" - or better, automatically save the draft if the user does click the link?

I'm a developer of an eZ website and I still get confused as to why I can't navigate to another screen from the edit screen.

And while I'm on the subject, why can you only see the icon to view the list of drafts in edit mode? (Part of the reason I end up on an edit screen but want to navigate away instead of performing an edit)

FWIW, I knocked-up some v.basic javascript and added it to an override for flat_top.tpl replacing onclick="return false;" with onclick="submitForm()" a small function that 'clicks' the 'Store Draft' button for you (in case you forget).

Feedback welcome becuase I feel a little dumb that this was so easy to do, there must be a reason why it isn't present!?

Thanks everyone :-)

Russell Michell, Wellington, New Zealand.
We're building! http://www.theruss.com/blog/
I'm on Twitter: http://twitter.com/therussdotcom

Believe nothing, consider everything.

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

Main resources:

Total runtime0.7556 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0057 587.9297152.6250
Module start 'layout' 0.00570.0028 740.554739.4453
Module start 'content' 0.00850.7450 780.0000466.7734
Module end 'content' 0.75350.0020 1,246.77348.1563
Script end 0.7555  1,254.9297 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.4079160.0002
Check MTime0.00130.1750160.0001
Mysql Total
Database connection0.00080.111710.0008
Mysqli_queries0.713794.4585460.0155
Looping result0.00040.0592440.0000
Template Total0.723895.820.3619
Template load0.00200.269420.0010
Template processing0.721795.520920.3609
Template load and register function0.00010.013210.0001
states
state_id_array0.00120.153510.0012
state_identifier_array0.00100.129320.0005
Override
Cache load0.00170.2204130.0001
Sytem overhead
Fetch class attribute can translate value0.00060.074210.0006
Fetch class attribute name0.00070.091320.0003
XML
Image XML parsing0.00050.060210.0005
class_abstraction
Instantiating content class attribute0.00000.000520.0000
General
dbfile0.00080.1045160.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
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
1content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 5
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs