Forums / Setup & design / XHTML 1.0 Strict Links with Exponential

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

XHTML 1.0 Strict Links with Exponential

Author Message

Andreas Kaiser

Thursday 09 August 2007 3:00:28 pm

I found that the default ezxmltag for links is not compatible with Strict XHTML documents.

This is a working solution:

Override the "content/datatype/view/ezxmltags/link.tpl with

<a href={$href|ezurl}{section show=$id} id="{$id}"{/section}{section show=$title} title="{$title}"{/section}

{section show=$target}
{if $target|eq( _self )}
 
{elseif $target|eq( _blank )}
 class="external_link"
{/if}
{/section}

{section show=ne($classification|trim,'')}class="{$classification|wash}"{/section}>{$content}</a>

I've used "class="external_link" to style links that are marked with "open in a new window links".

If you need "_target" links you could use some DOM scripting that uses the rel="..." tag.

Any comments?

eZ Partner in Madrid (Spain)
Web: http://www.atela.net/

Bruce Morrison

Thursday 09 August 2007 4:23:39 pm

Hi Andreas

Is this the only place where you have found issues?

I'd be interested to hear why you are using the strict DOCTYPE? I did attempt to go down this path quite some time ago (around 3.3/3.4) but just found too many issues in validating and quirkyness in the various browsers. It was much easier to settle on the Transitional DOCTYPE.

Interestingly there is a school of thought that says that XHTML shouldn't be used for most sites and I'm coming around to this side of things.

XHTML is not for Beginners
http://lachy.id.au/log/2005/12/xhtml-beginners

HTML vs. XHTML
http://wiki.whatwg.org/wiki/HTML_vs._XHTML

Cheers
Bruce

My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish

Andreas Kaiser

Friday 10 August 2007 8:16:44 am

I was testing XHTML 1.0 Strict for a template for a client (it's funny, because their marketing department wanted a STRICT mode... it's a long story...)

Very interesting links...

eZ Partner in Madrid (Spain)
Web: http://www.atela.net/