Modify

Opened 17 years ago

Closed 17 years ago

#3083 closed enhancement (fixed)

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

Reported by: jsilence Owned by: osimons
Priority: low Component: FullBlogPlugin
Severity: minor Keywords: create
Cc: Trac Release: 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

Attachments (0)

Change History (2)

comment:1 in reply to:  description Changed 17 years ago by osimons

Replying to jsilence:

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 17 years ago by osimons

Resolution: fixed
Status: newclosed

(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

Change Properties
Set your email in Preferences
Action
as closed The owner will remain osimons.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.