? Success

User tests: Successful: Unsuccessful:

avatar nternetinspired
nternetinspired
30 Sep 2014

Give layouts the love they deserve

Layouts are awesome. There's currently a layout for article info-blocks, the definition list, but it is only currently being used in the category blog view. That makes me sad.

This PR standardises com_content views by extending the use of the definition list layout to article and featured article views as well. As intended with layouts this improves readability, maintainability and versatility of views as the article info definition list markup exists now only in one place, not three.

Testing

There should be no observable changes. A useless div that previously existed in the article view is now removed, but that has no affect on rendered views, it was superflous.

Expected result

An improvement in code readability and maintainability.

avatar nternetinspired nternetinspired - open - 30 Sep 2014
avatar jissues-bot jissues-bot - change - 30 Sep 2014
Labels Added: ?
avatar brianteeman brianteeman - change - 30 Sep 2014
Category Layout
avatar wilsonge
wilsonge - comment - 28 Dec 2014

@test unsuccessful. Got a PHP error:

( ! ) Notice: Undefined variable: useDefList in JOOMLA_ROOT\components\com_content\views\article\tmpl\default.php on line 35
avatar nternetinspired nternetinspired - change - 2 Jan 2015
Title
Standardise use of layouts
NSFW - Love thy layout - NSFW
avatar nternetinspired
nternetinspired - comment - 2 Jan 2015

Sorry @wilsonge, that should be fixed now.

Happy New Year matey :)

avatar infograf768
infograf768 - comment - 2 Jan 2015

This works OK here.
One more test.

avatar wilsonge
wilsonge - comment - 2 Jan 2015

Happy new year dude :)

avatar nternetinspired
nternetinspired - comment - 2 Jan 2015

Great catch @wilsonge :bow:

avatar infograf768 infograf768 - close - 3 Jan 2015
avatar infograf768 infograf768 - change - 3 Jan 2015
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2015-01-03 07:05:31
avatar infograf768
infograf768 - comment - 3 Jan 2015

Thanks.

Add a Comment

Login with GitHub to post a comment