?
avatar mbabker
mbabker
12 Jul 2016

JDocumentRendererHtmlHead uses a hardcoded rel="stylesheet" attribute for CSS link elements which means the API does not have a way to set custom relation attributes such as those used for link prefetching. This specific portion of the API needs improvement to allow custom rel types to be added. Note that it can be done already with JDocumentHtml::addHeadLink() so it's just the stylesheet portion of JDocument that needs attention.

avatar mbabker mbabker - open - 12 Jul 2016
avatar brianteeman brianteeman - change - 12 Jul 2016
Category Feature Request Libraries
avatar brianteeman brianteeman - change - 12 Jul 2016
Labels Added: ?
avatar andrepereiradasilva
andrepereiradasilva - comment - 20 Jul 2016

actually even addHeadLink has a problem if you whant to add a link with an href that's already added.

In that case the only option is to add a addCustomTag
example https://github.com/joomla/joomla-cms/blob/staging/plugins/system/languagefilter/languagefilter.php#L732-L748

This is a problem with some JDocument methods. They also use attrib values as arrays keys, so they can't be duplicated.

avatar brianteeman brianteeman - change - 5 Aug 2016
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - change - 5 Aug 2016
The description was changed
avatar joomla-cms-bot joomla-cms-bot - edited - 5 Aug 2016
avatar franz-wohlkoenig franz-wohlkoenig - change - 6 Apr 2017
Status New Needs Review
avatar mbabker
mbabker - comment - 8 May 2017

#15880 for 4.0.

avatar mbabker mbabker - change - 8 May 2017
The description was changed
Status Needs Review Closed
Closed_Date 0000-00-00 00:00:00 2017-05-08 15:35:59
Closed_By mbabker
avatar mbabker mbabker - close - 8 May 2017
avatar zero-24 zero-24 - change - 8 May 2017
Labels Removed: ?
avatar zero-24 zero-24 - unlabeled - 8 May 2017

Add a Comment

Login with GitHub to post a comment