When creating a new node from each file, is there a way to set the new node title as the filename?

Comments

arthurf’s picture

Title: filename as node title » Node titles should support tokens
Component: User interface » Code
Assigned: Unassigned » arthurf
Category: support » task

I've committed this fix, however, it strikes me that this should support token replacements here. I'm changing the title and leaving the issue open.

kruser’s picture

Thanks

kruser’s picture

What would the token be to indicate the upload filename?

arthurf’s picture

Status: Active » Postponed (maintainer needs more info)

It doesn't do token replacement yet, but it should- at some point in the near future I'll try to make that happen

najibx’s picture

new node title as the filename, is an existing feature?
I only sees Default title & Default body.

If a title is not passed in, this will be the default node title. So when I put a default title here, all file uploaded have the same title, which difficult to trace which is which.

arthurf’s picture

Version: 6.x-1.0-beta1 » 6.x-1.x-dev
Status: Postponed (maintainer needs more info) » Needs review

I just roughed out some code for this- please see latest dev commit. I have not tested this code at all, so tread with care.