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

Multi category - blog layout view #24412

Closed
wants to merge 9 commits into from
Closed

Conversation

yozmag
Copy link

@yozmag yozmag commented Mar 29, 2019

Pull Request for Issue #24383 .

Summary of Changes

Changing this 2 files makes possible to display articles from choose categories in the same view, page.

Testing Instructions

Expected result

Actual result

Documentation Changes Required

Now feature menu allows to display items that are not featured. A mutlicategory view (with optional featured filter)

This allow to choose on the menu if articles that are not feature are displayed in this view
This allow to choose on the menu if articles that are not feature are displayed in this view.
@Bakual
Copy link
Contributor

Bakual commented Mar 29, 2019

One should at least also adjust the various language strings to indicate that the featured view now is not really a featured view anymore but a mutlicategory view (with optional featured filter).

@@ -67,8 +67,10 @@ protected function populateState($ordering = null, $direction = null)
$limit = $params->get('num_leading_articles') + $params->get('num_intro_articles') + $params->get('num_links');
$this->setState('list.limit', $limit);
$this->setState('list.links', $params->get('num_links'));

if($featuredCategories = $params->get('show_only_featured',1))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add space after if

@@ -67,8 +67,10 @@ protected function populateState($ordering = null, $direction = null)
$limit = $params->get('num_leading_articles') + $params->get('num_intro_articles') + $params->get('num_links');
$this->setState('list.limit', $limit);
$this->setState('list.links', $params->get('num_links'));

if($featuredCategories = $params->get('show_only_featured',1))
{
$this->setState('filter.frontpage', true);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add a tab

type="list"
label="COM_CONTENT_FEATURED_ARTICLES"
description="COM_CONTENT_FEATURED_CATEGORIES_DESC"
useglobal="true"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if useglobal is true, it means that the field should be added in the component options...

Copy link
Author

@yozmag yozmag Apr 1, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes maybe there, can you confirm that the file is located at administrator/components/com_content/config.xml after line 826.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

menu
Do you think that the new parameter should be in this global blog configuration screen?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd rather not use "useglobal" here. Because it's a rather view specific parameter which can only ever be used together with a menuitem.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok I will remove the Use global and submit again. Thanks @Bakual .

@HLeithner
Copy link
Member

please rebase this on j4.0

@yozmag
Copy link
Author

yozmag commented Apr 2, 2019

please rebase this on j4.0

Please explain what do you mean with rebase?

Remove the useglobal from show_only_featured.
@HLeithner
Copy link
Member

this is a new feature and we have a feature freeze for j 3.9 so all new features go to 4.0.

@yozmag
Copy link
Author

yozmag commented Apr 2, 2019

this is a new feature and we have a feature freeze for j 3.9 so all new features go to 4.0.

So a make a PR to joomla:staging will it be accepted? Can it be accepted in staging and go to 4.0 next? Do I have to make a PR to joomla:4.0-dev?

@Bakual
Copy link
Contributor

Bakual commented Apr 2, 2019

Do I have to make a PR to joomla:4.0-dev?

That.

Add space after if
Set default to 1 on show_only_featured
@ghost ghost added J3 Issue and removed J3 Issue labels Apr 5, 2019
@alikon
Copy link
Contributor

alikon commented Apr 13, 2019

can we close this one as we have #24454

@ghost ghost closed this Apr 13, 2019
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants