Nonexistant entry links should have "title" field of node creation form auto-filled from URL

Susurrus - January 24, 2008 - 05:35
Project:Wikitools
Version:6.x-1.0-beta1
Component:Code
Category:feature request
Priority:normal
Assigned:cwgordon7
Status:closed
Description

As title says. the freelinking module does exactly this. The title for a new wiki entry should be autofilled when visiting a link where the content doesn't exist.

#1

cwgordon7 - January 24, 2008 - 19:53
Category:task» feature request
Assigned to:Anonymous» cwgordon7

Nice idea, will go into the 6.x version shortly.

#2

Susurrus - February 8, 2008 - 15:51
Status:active» fixed

Seems like this already exists in both the 5.x and 6.x branches...

#3

cwgordon7 - February 8, 2008 - 22:35
Status:fixed» active

Maybe I misunderstood what you said initially, but something is definitely wrong here: when you go to a page that doesn't exist and a node edit form is there, the title should be auto-filled.

#4

Susurrus - February 9, 2008 - 01:18
Status:active» fixed

That's why I marked it fixed, seems like I wasn't paying close enough attention, because this module definitely does do this.

#5

cwgordon7 - February 9, 2008 - 05:23
Status:fixed» active

Sorry to disagree, but no, it definitely does not. Code was never written for it to do this, there is no code in there that does this on page-not-founds with inline node add forms. That's why I marked it active. True, it does work with the link, but the inline edit form needs to have that happen too.

#6

robbt - February 17, 2008 - 22:22

I saw this working on the cwgordon7's drupal 6 wiki demo site and I'm wondering how this can be set-up ?

#7

cwgordon7 - February 17, 2008 - 22:50

That was done in an embarrassingly hackish way... I'll upload something as soon as I find a better fix.

#8

Susurrus - February 20, 2008 - 14:18
Status:active» patch (code needs review)

The really easy was is to just redirect to node/add/TYPE/?edit[title]=TITLE, just like freelinking does. I haven't spent enough time with the code to fully determine how it works, but that'd be the easiest way. If we don't want to do that, we should be able to do $_GET['edit[title]'] = TITLE if the content doesn't exist and then the form will pull in the title correctly.

#9

rötzi - February 22, 2008 - 16:53
Status:patch (code needs review)» fixed

Fixed in DRUPAL-6--1 branch.

#10

Anonymous (not verified) - March 7, 2008 - 17:02
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.