This forum is for module development and code related questions, not general module support. For general support, use the Post installation forum.

Automatically Inserting the "Title" content in a module

I have a Drupal node module that combines the standard "node" DB table with additional information in a table that I've titled "persona". The module is named "persona".

I would like to automatically fill in the "Title" field in the Node table, but currently, there's no apparently way for me to automatically override the "Title" field that's created by default when you define the function "persona_form". I'm wondering if the following can be done without changing the actual Drupal core:

- Rename the "Title" label to something else
- Remove entirely the "Title" text field from appearing on the form
- Automatically insert the value "Title" field based on other parameters

Specifically, I want to be able to ensure that the "Title" is standardized among all nodes of type "Persona", and I want to ensure that this somehow reflects in the UI. I don't want users to type in a title, and then have the system automatically overwrite it behind the scenes.

If this can't be done, please let me know so I can submit a feature request for the system.

Thank you!

~~~~~~~

Miscellaneous background information: I have a Drupal node module that I am writing that are used to manage Persona Sheets for a story-based role-playing game. Persona sheets describe a character that each user has to play the game with. There's some information that I required, such as "Character Name", "Character Age", and so forth that didn't fit in well with the existing Node table, so I created a Persona table with a node ID to store the extra information. What I want the title to say is "P-sheet: $character_name" where $character_name is the character name entered by the user.

Extending the User module

I'm considering implementing a module that captures more user information than the current user module. I need name and address in addition to user name. I have two questions.

1)Is someone already doing this?
2)Is there some way to extend the user module or would the user module be replaced by this new "super" user module?

Thanks,
Joe Cotellese
www.clearstatic.org

deactivate teaser

How can I simply deactivate the teaser function in the page.module. I tried, but then, Drupal doesn't show me any content.

FIX for next image and previous image links in image.module

There is a typo in image.module (both the 4.2.0 release and the current CVS) which prevents the next and previous photo links from appearing.

Here I was thinking I would have to write this functionality myself :-)

From the current CVS, it is on line 216:

// If we are not on the main page then display prev/next links
if (!$main && $slq) {

That should be $sql not $slq

What's a pager?

Here's a stupid question, but it didn't show up in the docs so far...

What's a pager?

I'm guessing that it's the "Previous Next" links at the top of a page to browse many, many comments.

But, I don't really understand the comment in pager.inc:

pager_query
- Use this function when doing select queries you wish to be able to page.

I see pager_blah used a lot in the modules, without truly knowing what they are or what it does, so any clarification would be appreciated!

Thank you!

xstory.module problem

hi. i like the extra functions in the xstory.module, but i can't seem to get it to work. when i put in data in the fields and press preview, the only thing i get back in the preview area is:

Array ( )

anybody have any idea what is wrong or how to fix it?

i understand that this is still experimental. hopefully this helps in development.

erik.

Pages

Subscribe with RSS Subscribe to RSS - Module development and code questions