flexinode types should live under 'admin/settings/content-types' instead of 'admin/nodes'

ahoeben - April 21, 2006 - 11:06
Project:Flexinode
Version:4.7.x-1.x-dev
Component:User interface
Category:task
Priority:normal
Assigned:ahoeben
Status:needs review
Description

Currently the pages for adding and editing flexinode content types live under that 'admin/nodes' page. The 'admin/nodes' page lists existing nodes of all content types, not individual node types. The 'admin/settings/content-types' page is a more logical place to define node types.

The patch moves all flexinode content type pages and actions from 'admin/nodes' to 'admin/settings/content-types'.

AttachmentSize
settings_content-types.patch.txt8.88 KB

#1

ahoeben - April 21, 2006 - 11:19

After applying the patch, you may have to disable and reenable the flexinode module to see the changes

#2

samc - April 24, 2006 - 21:14
Category:bug report» feature request

Interesting suggestion, but it seems inconsistent with the type of options that are generally configured via the settings page. I think of generally think of settings as set-it-and-forget-it type of stuff, but I administer my content all the time.

Now, I think it might be useful to have 'content types', 'add content type', and 'search content'--which are all represented as tabs--also come with default menu items under administer->content, but that may be personal preference, and is easily done through the menu UI anyway.

#3

ahoeben - April 25, 2006 - 14:00

That's my point.

You say you 'administer your content' a lot. That means editing/approving/deleting etc content, right? Not actually changing the types of content you want your users to be able to post.

Setting up a flexinode node-type is something you'ld do once on a production site, and then you leave the flexinode type alone (or you may break existing content).

The patch emphasises exactly this distinction. Apply the patch and see how much sense it makes ;-)

#4

samc - April 25, 2006 - 14:05

Point taken... I've been in test and deploy mode, so I'm changing the types a lot more than one would on a production site.

#5

ahoeben - April 16, 2007 - 09:31
Version:HEAD» 4.7.x-1.x-dev

Is there interest in me updating this patch to the current state of the art (drupal 4.7.x-1.x)?

#6

ahoeben - April 16, 2007 - 09:39
Status:needs review» needs work

#7

Bèr Kessels - April 17, 2007 - 14:15

Yes. A lot. I just reviewed the patch, and I like it many muchy :)

#8

ahoeben - April 17, 2007 - 18:36
Assigned to:Anonymous» ahoeben

I'll get cracking then...

#9

ahoeben - April 17, 2007 - 19:23

I could extend my previous effort and shift things around a bit more.
The following settings could be moved to a 'content type' fieldset in the content type settings on 'admin/settings/content-types/flexinode-N' (the page where you set workflow options etc):

  • Title and description (from admin/node/type/N)
  • Delete content type button (from admin/node/type/N)
  • Overview of fields and the add field form (from admin/node/types)

This way, you have all information about a node type in one location. Only flexinode nodetypes would have a content-type fieldset.

I think hook_form_alter is up for the task, but it would take a little while before I could do it and test it fully.

#10

Bèr Kessels - April 17, 2007 - 19:42

I won't mind making it a two-phased change either. But, in fact, I'd like to see even the fields management under /admin/settings/content-types/flexinode-N. But that is for later. Lets do it one a time ;)

#11

ahoeben - April 18, 2007 - 18:32
Category:feature request» task

Step 1

The attached patch is an update to my original patch for the new flexinode_admin.module. Moves flexinode content-type creation and editing to admin/settings/content-types/...

AttachmentSize
settings_content-types.patch 9.03 KB

#12

ahoeben - April 18, 2007 - 18:38

Before moving on to integrating the 'edit content types' tab into the content type settings pages, this issue needs to be resolved. Agreed?

#13

Bèr Kessels - April 18, 2007 - 19:09

Agreed. I will review that patch soon.

#14

ahoeben - April 19, 2007 - 23:25

I seem to have it nicked; all flexinode content-type settings under the admin/settings/content-types page, along with the normal 'workflow options' etc.

The patch is rather unwieldly though, because my version is against my local copy which has some of my other patches applied too (eg removing the redundant helptext), so I am waiting untill that is resolved

#15

ahoeben - April 19, 2007 - 23:26

hook_form_alter has a special place in my heart ;-)

#16

ahoeben - April 20, 2007 - 10:35

The patch. Like I said, it's kind of pervasive, with all the moving about of code to other forms.

I have changed the paths I used in the previous incarnation of the patch, in case CCK devs get jealous and want to do something similar for their custom content types (eg: .../content-types/flexinode/add instead of .../content-types/add)

AttachmentSize
flexinode_admin_content_settings.patch 15.1 KB

#17

ahoeben - April 20, 2007 - 20:53

Content-type options other than the flexinode options are not being saved at the moment. Please stand by while I investigate.

#18

ahoeben - April 20, 2007 - 21:35

Fixed.

I have been using the patched version on a production site, but could use some reviews.

AttachmentSize
flexinode_admin_content_settings_0.patch 15.1 KB

#19

ahoeben - April 20, 2007 - 21:42

Whoops. The patch leaves some stray variables in the variable table. Nothing serious, but I will clean it up with a new patch tomorrow.

#20

ahoeben - April 21, 2007 - 08:31
Status:needs work» needs review

prevented storing of stray variables in the variable table

AttachmentSize
flexinode_admin_content_settings_1.patch 14.67 KB
 
 

Drupal is a registered trademark of Dries Buytaert.