Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Featured Article Column not working #230

Open
Joomlaplates opened this issue Sep 16, 2021 · 1 comment
Open

Featured Article Column not working #230

Joomlaplates opened this issue Sep 16, 2021 · 1 comment

Comments

@Joomlaplates
Copy link

Joomla 4.0.3 and Template One with Astroid 2.5.4
The Featured Article view ignore the columns (2) when Leading Article is set to 1 ( see pictiúre attched)
Ok I found the issue, its a bug in the file >
\html\com_content\featured\default.php ( line 50)

Wrong code.

<?php
$introcount = (count($this->intro_items));
$counter = 0;
$columns = ASTROID_JOOMLA_VERSION > 3 ? 1 : $this->columns;
?>

Fixed Code

<?php
$introcount = (count($this->intro_items));
$counter = 0;
$columns = ASTROID_JOOMLA_VERSION > 3 ? $this->params->get('num_columns', 1) : $this->columns;
?>

Screenshot_2-2-3-4

@Joomlaplates
Copy link
Author

Any news here!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant