3

I'd like to make a link to admin/content/, but when the page was displayed I'd like to have it filtered by a certain content type.

The link can be like this admin/content/house so when I click it, the admin/content page is already filtered by house Content Type.

Is this possible?

Is something like this How to link to dblog filtered by type? but for the admin/content path.

Edit: If I click in a link that can be like this admin/content/house I can have in the admin/page the Content Types filtered by House, something like this picture

enter image description here

5
  • What do you mean filter by a content type?
    – GwenM
    Feb 5 '16 at 22:09
  • @Namari I edit with a picture Feb 5 '16 at 22:19
  • It doesn't work with the SYSTEM PATH SETTINGS and the contextual filter on the "admin_views_node". You might have to do the changes in node.admin-content.inc or with a views function.
    – GwenM
    Feb 5 '16 at 23:21
  • @Namari the use of /admin/content/house is just and example, the path can be other. Feb 5 '16 at 23:28
  • Yes I know, that's why I was looking into the "/%" but you can use the parameters with GET as suggested by gapple
    – GwenM
    Feb 5 '16 at 23:53
5

It looks like you're making use of the Admin Views module, so you can add filter options as GET parameters in the URL: http://localhost/admin/content?type=article

You can also make a clone of the content admin view and modify it. This would allow you to set contextual filters, modify the exposed filter fields, or adjust visible columns to make a more targeted content listing.

3
  • 2
    Yes I use the Admin Views module, can you tell me where do you found the answer, just for read a little about this? Feb 6 '16 at 0:01
  • 2
    I'm just familiar with views. If you hover over the table header links, you can view all of the parameters that are set for filters and sorting.
    – gapple
    Feb 6 '16 at 0:04
  • 2
    I see that I can use all the filters :-D Feb 6 '16 at 0:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.