Forums / Setup & design / ezurl class attribute - description required?

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

eZ debug

Timing: Jan 18 2025 11:29:28
Script start
Timing: Jan 18 2025 11:29:28
Module start 'content'
Timing: Jan 18 2025 11:29:29
Module end 'content'
Timing: Jan 18 2025 11:29:29
Script end

Main resources:

Total runtime0.8617 sec
Peak memory usage4,096.0000 KB
Database Queries205

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0063 587.8438180.8125
Module start 'content' 0.00630.6807 768.6563620.9453
Module end 'content' 0.68690.1746 1,389.6016341.0547
Script end 0.8616  1,730.6563 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00390.4565210.0002
Check MTime0.00150.1742210.0001
Mysql Total
Database connection0.00100.117210.0010
Mysqli_queries0.765088.78482050.0037
Looping result0.00260.30462030.0000
Template Total0.833296.720.4166
Template load0.00180.208220.0009
Template processing0.831496.483420.4157
Template load and register function0.00010.013010.0001
states
state_id_array0.00110.127910.0011
state_identifier_array0.00100.118320.0005
Override
Cache load0.00160.1873490.0000
Sytem overhead
Fetch class attribute can translate value0.00110.124940.0003
Fetch class attribute name0.00100.119480.0001
XML
Image XML parsing0.00160.185140.0004
class_abstraction
Instantiating content class attribute0.00000.0023100.0000
General
dbfile0.00510.5895330.0002
String conversion0.00000.000830.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 29
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs