Opened 9 years ago

Closed 9 years ago

# Pre-populate 'New Post' form entiries with a link

Reported by: Owned by: jsilence Odd Simon Simonsen low FullBlogPlugin minor create 0.11

### Description

I would like to have a link to create a new post, which readily sets some of the form fields. This would help making blog entries in the right category, for example.

With TracBlogPlugin it was possible to do this by simply appending GET parameters to the link like this: /blog/new?author=superblogger&keyword=special. Unfortunately this method does not work with FullBlogPlugin.

Is there a way to achieve this? Am I missing something? Otherwise I'd like to make this a feature request.

TIA,

-jsilence

### comment:1 in reply to:  description Changed 9 years ago by Odd Simon Simonsen

Is there a way to achieve this? Am I missing something? Otherwise I'd like to make this a feature request.

No, current code expects this to happen as part of a POST so it will not work. Good idea though, and I should rework the code to support it for calling the initial post creation page.

### comment:2 Changed 9 years ago by Odd Simon Simonsen

Resolution: → fixed new → closed

(In [3909]) FullBlogPlugin: Support for query arguments to pre-populate fields when doing a GET on /blog/create (like a regular link).

Name of post can either be an argument or part of the path - these examples have identical result:

• /blog/create/my-new-post?author=simon&categories=trac+plugin
• /blog/create?name=my-new-post&author=simon&categories=trac+plugin`

Closes #3083.

### Modify Ticket

Action
as closed The owner will remain Odd Simon Simonsen.
The resolution will be deleted. Next status will be 'reopened'.