? ? ? Pending

User tests: Successful: Unsuccessful:

avatar brianteeman
brianteeman
27 Jun 2018

See #20233 for detailed explanation of the use case

Test Instructions

Create and enable an admin menu with the "Joomla preset"

Create a new admin menu item of type article list and you can see you now have a full set of filters that you can apply.

For example you can now create menu items in the admin to each category.

If approved I will create the same option for other components

This does not resolve everything on #20233 as it still needs field categories to be implemented for that

Thanks to @tonypartridge for his help

avatar brianteeman brianteeman - open - 27 Jun 2018
avatar brianteeman brianteeman - change - 27 Jun 2018
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 27 Jun 2018
Category Administration com_content Language & Strings
avatar tonypartridge
tonypartridge - comment - 27 Jun 2018

love it, will give it a test soon 👌

avatar brianteeman brianteeman - change - 27 Jun 2018
Labels Added: ? ?
avatar carlitorweb
carlitorweb - comment - 27 Jun 2018

Can add filters to the new fields, or in this case is not necessary? following what doing in others PRs

avatar brianteeman
brianteeman - comment - 27 Jun 2018

Sorry I don't understand

avatar tonypartridge
tonypartridge - comment - 27 Jun 2018

No, all this is doing is pre-setting the filters that already exit on a page.
On 27 Jun 2018, 14:05 +0100, Carlos Rodriguez notifications@github.com, wrote:

Can we add filters to the new fields, or in this case is not necessary? following what doing in others PRs
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

avatar mbabker
mbabker - comment - 27 Jun 2018

He's talking about input filters (essentially JFactory::getApplication()->input->get('foo', 'default', $filter);, not the UI filters.

avatar tonypartridge
tonypartridge - comment - 27 Jun 2018

Then of course it is possible as we are just passing the request variables. But in doing that, you have no control over the filters on that page if you pass them in and they work. Note, I haven’t tried filtering the admin ui with filters not existent on the UI. But wouldn’t really advise it.
On 27 Jun 2018, 14:28 +0100, Michael Babker notifications@github.com, wrote:

He's talking about input filters (essentially JFactory::getApplication()->input->get('foo', 'default', $filter);, not the UI filters.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

avatar mbabker
mbabker - comment - 27 Jun 2018

You're still missing the point here I'm afraid.

The filter="whatever" attribute sets what data type something is filtered/validated as when it is read from the request in the JForm API when filtering/validating data. So if you set filter="int" on a field, then when the field's data is read from the request it is filtered/validated as an integer.

avatar tonypartridge
tonypartridge - comment - 27 Jun 2018

Ah, clearly I missed that. I just saw the filter on custom fields.
On 27 Jun 2018, 14:35 +0100, Michael Babker notifications@github.com, wrote:

You're still missing the point here I'm afraid.
The filter="whatever" attribute sets what data type something is filtered/validated as when it is read from the request in the JForm API when filtering/validating data. So if you set filter="int" on a field, then when the field's data is read from the request it is filtered/validated as an integer.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

avatar carlitorweb
carlitorweb - comment - 27 Jun 2018

@tonypartridge Sorry for no explain well when i ask about this. Thank you @mbabker

avatar brianteeman
brianteeman - comment - 27 Jun 2018

Gotya. Will update.

avatar brianteeman
brianteeman - comment - 27 Jun 2018

@SharkyKZ can you check the filters please

avatar carlitorweb
carlitorweb - comment - 27 Jun 2018

When you create an admin menu item to display a list of all articles there is no option to select a filter so the article list displays all the articles.

So, this is well covered in this PR. Except, not for the Statue and Access levels. Also, will be good do the same with the featured articles view

avatar brianteeman
brianteeman - comment - 27 Jun 2018

I did think about status and access but there is no point. A users ACL addresses the access and I don't want to pre-filter on status - thats not a good idea.

As for the featured view thats a special type of thing and it doesnt match the use case for this - my 2c

avatar carlitorweb
carlitorweb - comment - 27 Jun 2018

Roger that. So, this work perfect!

avatar carlitorweb carlitorweb - test_item - 27 Jun 2018 - Tested successfully
avatar carlitorweb
carlitorweb - comment - 27 Jun 2018

I have tested this item ✅ successfully on 921f0e1


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/20890.

avatar SharkyKZ
SharkyKZ - comment - 27 Jun 2018

Filters OK.

avatar tonypartridge
tonypartridge - comment - 28 Jun 2018

I actually think the access level could be handy for when filtering lots of articles assigned to certain access levels, i.e. ‘Guest Articles’, ‘Members Articles’. ?

Just a thought
On 27 Jun 2018, 15:38 +0100, Brian Teeman notifications@github.com, wrote:

I did think about status and access but there is no point. A users ACL addresses the access and I don't want to pre-filter on status - thats not a good idea.
As for the featured view

If approved I will create the same option for other components
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

avatar brianteeman
brianteeman - comment - 28 Jun 2018

@tonypartridge ah - I was thinking of ACL and not access levels - i will add it

avatar carlitorweb carlitorweb - test_item - 6 Jul 2018 - Tested successfully
avatar carlitorweb
carlitorweb - comment - 6 Jul 2018

I have tested this item ✅ successfully on 8284fd0


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/20890.

avatar Quy
Quy - comment - 6 Jul 2018

I have tested this item ✅ successfully on aa76e5b

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/20890.

avatar Quy Quy - test_item - 6 Jul 2018 - Tested successfully
avatar Quy Quy - change - 6 Jul 2018
Status Pending Ready to Commit
avatar Quy
Quy - comment - 6 Jul 2018

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/20890.

avatar mbabker mbabker - close - 7 Jul 2018
avatar mbabker mbabker - merge - 7 Jul 2018
avatar mbabker mbabker - change - 7 Jul 2018
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2018-07-07 16:32:37
Closed_By mbabker
Labels Added: ? ?
Removed: ?
avatar brianteeman
brianteeman - comment - 7 Jul 2018

Thanks for merging. I will add the same for other components now.

avatar helpwise
helpwise - comment - 30 Aug 2018

Thanks for this effort Brian et al,.. to make this thing really sing, is it possible to add 'Category Template Layout' selector to the new category menu item ?

The Category Menu already has 'template selector', but it only works on single articles and not the category list/blog files (because the list/blog is inherently the category template via an XML file ).
#19613

Perhaps create a new menu item called "Category (templateable)" so all the old stuff is compatible, and then allow it to properly override both the category and article layouts.. ?

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 30 Aug 2018

@helpwise can you please open a new Issue (and Link to this PR) as Comments on closed Issues didn't get much Notice?

avatar helpwise
helpwise - comment - 30 Aug 2018

Oh - yes - sorry! :)

Add a Comment

Login with GitHub to post a comment