Extension talk:EditPageMultipleInputTextAreas

From MediaWiki.org
Jump to navigation Jump to search

Use SimpleForms ?[edit]

Are you aware of the Extension:Simple Forms?

It would be nice if one could use SimpleForms to create the form and then have the input of all fields merged together by this new extension to create a page. It could be even more useful if a page that was constructed that way could afterwards be split into its parts and could be re-edited/updated by your extension ...

Extension:DynamicPageList could then be used to generate reports on articles which were created that way as they all will have a common structure. --Algorithmix 20:58, 20 October 2007 (UTC)

Idea[edit]

Maybe it's good to add a feature that you can choose the titles of the boxes per page. SPQRobin 22:37, 2 November 2007 (UTC) That is a nice feature, I will open a desired feature area on the article page

Running into error problems.[edit]

Hello I believe this is the script I have been searching for! Although I am running into a problem during install. I am not sure if I have installed it correctly but also cannot find an install help file. I copied the code and saved it into a file in the extensions folder called edittextarea.php and called it from LocalSettings.php. My errors are at the top of the page and are:


Notice: Use of undefined constant TotalTB - assumed 'TotalTB' in D:\Inetpub\alaskamountainforum\wiki\extensions\edittextarea.php on line 73

Notice: Undefined variable: titleNS in D:\Inetpub\alaskamountainforum\wiki\extensions\edittextarea.php on line 80

Notice: Undefined variable: titleNS in D:\Inetpub\alaskamountainforum\wiki\extensions\edittextarea.php on line 80

Notice: Undefined offset: 1 in D:\Inetpub\alaskamountainforum\wiki\extensions\edittextarea.php on line 98

Notice: Undefined offset: 2 in D:\Inetpub\alaskamountainforum\wiki\extensions\edittextarea.php on line 98

Notice: Undefined offset: 3 in D:\Inetpub\alaskamountainforum\wiki\extensions\edittextarea.php on line 98

Any ideas on why this could be happening? - Kelsey

Attaching the extension only to pages in a particular namespace[edit]

This can be attached to a specific namespace by adding the following to the beginning of each PHP function in the extension, replacing NAMESPACE with the desired namespace index number (note: do not add this to the functions CUSTOM(), TRADITIONAL() or resizeTextarea(t) as these are imbedded Javascript functions, not PHP functions):

global $wgTitle;
if($wgTitle->getNamespace() != NAMESPACE) return true;

"Show Preview" doesn't work[edit]

When you're using the "CUSTOM STRUCTURE" for page editing and you click the "Show Preview" button, you only see any information entered in the last edit box of the form, and the form automatically toggles back to the "TRADITIONAL STRUCTURE", dropping anything entered into the first two edit boxes.

Interesting...[edit]

extension, but it doesn't work.

Broken Extension[edit]

The script has error and even after resolving syntax errors It won't work. Just removes the defualt text area of edit/create page to display another textarea but doesnot do any further than that.

Even when I tried to save it showed another error over there. Something about hook reference. Is there any chance It would be fixed sooner ? Though I am trying to fix it. Mayanktiwari (talk) 10:39, 18 September 2014 (UTC)