ezurl class attribute - description required?

Author Message

Matthew Carroll

Friday 10 November 2006 12:58:50 pm

Hi

I have a class that includes an ezurl attribute. The attribute is required. However, on creating a new object of this class, ezpublish is only allowing it to be published when a description is entered under the URL attribute.

I do not want to force people to enter a description for the URL, the link alone is enough. It seems to me that this is a bug, since a URL on its own is perfectly valid without a description to go with it.

1. Is this a bug in ez?
2. Is there any way to work around this so that only the URL itself is required.

Thanks
Matthew

http://carroll.org.uk

Martin Ulrich

Friday 10 November 2006 3:11:00 pm

Are you really sure?

Did you check if all datatyps fields of your class the checkbox "required" is unchecked?

URL datatype has only one single field "location", (3.8.6)

mmh

sepp

_______________________

http://artenic.de ARTENIC - Publishing mit allen Mitteln!

Matthew Carroll

Friday 10 November 2006 3:58:10 pm

> Did you check if all datatyps fields of your class the checkbox "required" is unchecked?

No, like I said, I want the URL to be 'required'. This issue is that I do not want the 'Text' (description) field to be required, and it seems these requirements are inseparable.

> URL datatype has only one single field "location", (3.8.6)

It has two fields, URL and Text:

http://ez.no/doc/ez_publish/technical_manual/3_8/reference/datatypes/url

Matthew

http://carroll.org.uk

Martin Ulrich

Saturday 11 November 2006 4:14:28 am

sorry !

I m not so professional :)

But I think is not a description, it is the Linktext

<a http ..>Linktext</a>

If the problem is on backendsite perhaps is possible to modify
\standard\templates\content\datatype\edit\ezurl.tpl
?
input a standardvalue there and set to "hidden"

but I want give another wrong hint.

gr.
Sepp

_______________________

http://artenic.de ARTENIC - Publishing mit allen Mitteln!

Marco Zinn

Saturday 11 November 2006 6:03:27 am

I experienced this, too, after upgrading a site to 3.8.3.
Earlier (3.4), the URL datatype did not require a Text for the hyperlink. The output template created a nice Link using the URL as text, if none was entered.

I fear, that this input validation is done somewhere in the PHP code of the ezurl datatype, so one would have to hack this code to allow empty "hyperlink texts" again :(

I suggest to file a bug report, as this at least is breaking backwards compatibilty and is annoying in most cases, too.

Marco
http://www.hyperroad-design.com

Matthew Carroll

Sunday 12 November 2006 4:42:13 pm

Marco - agreed. Bug filed:

http://issues.ez.no/IssueView.php?Id=9399

Thanks
Matthew

http://carroll.org.uk

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

Main resources:

Total runtime0.7730 sec
Peak memory usage4,096.0000 KB
Database Queries68

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0053 589.1641152.6406
Module start 'layout' 0.00530.0022 741.804739.4766
Module start 'content' 0.00760.7642 781.2813615.8516
Module end 'content' 0.77170.0012 1,397.132816.1250
Script end 0.7729  1,413.2578 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00300.3893160.0002
Check MTime0.00120.1571160.0001
Mysql Total
Database connection0.00100.127210.0010
Mysqli_queries0.709791.8176680.0104
Looping result0.00060.0803660.0000
Template Total0.742796.120.3714
Template load0.00240.310320.0012
Template processing0.740395.769220.3701
Template load and register function0.00010.014610.0001
states
state_id_array0.00110.136710.0011
state_identifier_array0.00070.093520.0004
Override
Cache load0.00210.2661490.0000
Sytem overhead
Fetch class attribute can translate value0.00080.098730.0003
Fetch class attribute name0.00090.119080.0001
XML
Image XML parsing0.00120.157230.0004
class_abstraction
Instantiating content class attribute0.00000.0022100.0000
General
dbfile0.00070.0920220.0000
String conversion0.00000.001140.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
4content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
6content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
11content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
6content/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: 29
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs