By trevornz on
I'd like to change a Flexinode Title Label (From Title to Event Number) Just wondering if this is possible and if so how? I assume the flexinode module code needs to be changed, I'm just not sure where.
Also on a rather more complex note: Is it possle to auto assign (and auto increment) a Flexinode Title each time a new Flexinode page is created? i.e I'd like to auto assign to the title the year followed by an auto assigned concurrent number. e.g 200601, 200602 etc.
Any help much apprecited
Comments
What you're looking for
What you're looking for lurks in flexinode.module somewhere around line 580 - right where it says '#title' => t('Title'), change that. If you do rig it up so that the title is based on the node year, etc., let me know - could be handy knowledge.
This is what I have lurking in mine - I changed my title to 'upload title' since it's a purely file-based site.
default_value should be changed
I think it's rather
'#default_value' => $node->titlethat should be changed if I understood the problem right.You could set it to
'#default_value' => time()for example to get the current unix timestamp as default title.A better solution all round
A better solution all round is this minimodule - create a file in the modules directory called filetitle_populate.module, and fill it with:
Title
I added this to template.php:
Which works, although I'm sure I should probably move the code to a tpl.php file...
Skip The Budgie