?
avatar ciar4n
ciar4n
28 Nov 2017

Steps to reproduce the issue

Most of the core components echos the 'Page Class' in the containing div of the component. In every case the class is echoed as a class suffix (https://github.com/joomla/joomla-cms/blob/staging/components/com_content/views/article/tmpl/default.php#L27) rather than a standalone class which the 'Page Class' field implies .

I would question if this class should even be echoed here. Its name implies (to me at least) that it should be echoed as a class on the body tag?

avatar ciar4n ciar4n - open - 28 Nov 2017
avatar joomla-cms-bot joomla-cms-bot - change - 28 Nov 2017
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 28 Nov 2017
avatar ciar4n ciar4n - change - 28 Nov 2017
The description was changed
avatar ciar4n ciar4n - edited - 28 Nov 2017
avatar franz-wohlkoenig franz-wohlkoenig - change - 28 Nov 2017
Category Code style
avatar tonypartridge
tonypartridge - comment - 28 Nov 2017

I agree, it’s a page class not a container class or suffix.

Problem we have now is to remove it is a BC since users may be using it in their CSS.

Would say we remove this for J4?

avatar ciar4n
ciar4n - comment - 28 Nov 2017

Yes probably best hold off any changes until J4

Adding the class to the body would make the field dependent on the template echoing the variable. Unless maybe we add the class using JS. coughs @dgt41?

avatar franz-wohlkoenig franz-wohlkoenig - change - 29 Nov 2017
Status New Information Required
avatar rgmears
rgmears - comment - 29 Nov 2017

Adding the page class to the body tag is where it belongs. Doing so allows for changing the appearance of whole pages without having to use a different template. I describe how to do it here: http://www.j-tutor.studiofive.biz/elements/template

avatar ciar4n
ciar4n - comment - 3 Dec 2017

PR created.. #18967

avatar wilsonge wilsonge - change - 4 Dec 2017
Status Information Required Closed
Closed_Date 0000-00-00 00:00:00 2017-12-04 00:36:51
Closed_By wilsonge
avatar wilsonge wilsonge - close - 4 Dec 2017

Add a Comment

Login with GitHub to post a comment