Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By magnusprime on
I am creating a new type, and I was wondering if flexinode allowed you to set a specific title for content.
EX: Content Type is named "Foo", and it has a title. When a user creates one of this type, the title gets set automatically for the user to something like "Users Foo". Add to this I need the restriction that each user can only one "Foo" created.
Ideas on if this can be done? Perhaps Flexinode is not what I am looking for?
Thanks
Comments
php template
As far as the title, this can be handled with php template by creating a specific node.tpl.php file for the flexinode type. Check this out, http://drupal.org/node/45475.
I'm not sure about only allowing users to post one node of the type, I'm curious about this myself. I think a module was created to handle this. I believe this one, http://drupal.org/node/50850 though it is only in 4.7 and I need it for 4.6.
Hadnt thought of that
I didnt think of overriding the template. Thats a good idea.
But does that set just the display, or also the editing of the node?
I want the title to be fixed and unchangeable.
Ill look into it somewhere, as I think this is the right way to go.
Node form
It won't effect the editing form that I know of. You might just need to use some CSS "display none" and not have the title field show. I think there is a way to have the field filled in automatically by usigng a custom url to get to the form. I can't remember where I found that though.