Is something like this possible? (/admin/content/node/[content_type_name])

bresler - June 22, 2009 - 19:16

I am working on setting up a Drupal site for an online magazine. I am creating numerous content types for various things such as issues, articles, pages, podcasts, press releases, etc.

I want to be able to go to a url such as www.example.com/admin/content/node/[content_type_name] that will bring up the core content management page with nodes filtered by content type automatically, by-passing the step to select the 'type' and hit the 'filter' button.

Is this a possibility, either by existing methods in the core functionality or some module? I've searched for something like this, but I haven't been able to find what I'm looking for. And doing something like www.example.com/admin/content/node?type=article doesn't work (I'm assuming the filters are stored in a session).

I could create a module myself, but I'm still new to Drupal. I was hoping that someone else has already wanted to do this and found a solution. Can anyone steer me in the right direction or let me know if this is even possible? If there isn't something already out there to do this, I might try to whip up my own module extending the core node functionality. But that might take longer that I have to get the entire project done.

Thanks in advance.

=-=

VM - June 22, 2009 - 19:27

investigate the views.module. It is what is used most often when one wants to create lists. Essentially it is a query writer.

Not what I'm looking for ...

bresler - June 22, 2009 - 21:51

I already have an idea in my head as to a module to put together for this, but I was asking if there was already a solution out there for this. The views module alone will NOT do what I want.

=-=

VM - June 22, 2009 - 21:56

not exactly how you want no, because rather than pull the filter in from the url, it will pull the filter in from the settings in views. I know this because I've created an admin filter block with menu items that filter per content type. One can use exposed filters as well rather than multiple menu items.

May also want to investigate the nodequeue.module

n/m

bresler - July 1, 2009 - 18:34

Nevermind. I found my issue. I had a typo in a function name. Doh!!!!

I have been working on a custom module to allow me to do what I stated in my initial question (Administer Nodes by Type). It's basically the same as the admin/content/node display, but it is only displaying the nodes of a specified content type ... via the URL rather than a filter dropdown (i.e. admin/content/type/page)

I have things displaying the nodes for each content type, and allowing each to be filtered separately. I am to the point where I am setting up the 'update options'. Since this is basically just a change in the nodes listed, I would like to reuse the functions from the core node.module for the 'update options' rather than copying those functions into my module.

I have tried including the node.admin.inc file within my module. All this does is add to the options listed in the 'update options' dropdown. When I select 'Publish' and click the "update" button, nothing happens ... the nodes are not updated, the functions aren't even called.

Can anyone help me out with this? This is my first major module, so I'm still learning as I go. Is what I want to do (reuse functions from node.admin.inc even possible?

Thanks in advance.

Solution?

crosstopher - July 15, 2009 - 18:41

It looks like you found a solution, would you mind sharing what you came up with?
I'm attempting to achieve the same functionality but haven't found any solutions yet.

It seems like this would be a fairly common feature for streamlining the administrative functions for end users...

Thanks for any info.

Hi I want to do exactly this.

stewart.matheson - July 21, 2009 - 11:28

Hi I want to do exactly this. Can you share this module with us?

 
 

Drupal is a registered trademark of Dries Buytaert.