What version are you using, of eZ? I just tested this in an almost clean eZ 4.2 with sample data, added a link with the editor and it looks okay to me.
Regards Robin
Board member, eZ Publish Community Project Board - Member of the share.ez.no team - Key values: Openness and Innovation.
The site in question is running 4.2, but I've just tested it on a virgin copy running 4.3.0beta2 (running ezflow) and I'm getting the same problem.
To duplicate add, with editor disabled, something like
<link href="eznode://2">Here's my link</link>, and here's some other text.
and you get (how <b>do</b> you break out of literal in this thing?):
<a href="#">Here's my link</a> , and here's some other text.
I've been playing with this, trying to trace the issue. I can confirm this is a problem in 4.3.0. If I look at the debug, the standard template files paragraph.tpl and link.tpl output this code but they look okay.
It does look like a bug though, can you file this on the issue tracker?
Thanks Robin
Board member, eZ Publish Community Project Board - Member of the share.ez.no team - Key values: Openness and Innovation.
We had the same problem and could not see a problem with link.tpl in a Linux text editor. We even did some investigation into the ezxmloutput handler but could not find a problem. However, in a Windows text editor there was a blank second link in link.tpl. We removed the blank second line in the Windows text editor and the problem is gone.
We moved on after 10 minutes of trying to get the Linux text editor to display that blank second line. Are there any line break gurus around?
What you'll have to do is go to whatever template is displaying the link - i.e. design/standard/templates/content/datatype/view/ezurl.tpl
What is happening is that there is an extra line added to the template that is not visible with some text editors - like the vim text editor. This adds the space. You'll have to remove that extra line.
And yeah, I had this happen a while back and the templates going back to 3.9 had the extra line feed (that's where I stopped looking).
I followed your instructions and found the extra line in that tpl but it did not fix the problem. I then had a look at this file "design/standard/templates/content/datatype/view/xmltags/link.tpl" which also had an extra line, i deleted it and it worked fine, thank you for helping me out.
Much appreciated
over & out
You must be logged in to post messages in this topic!