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.