Extension talk:EditPageMultipleInputTextAreas

From MediaWiki.org
Jump to: navigation, search

Contents

[edit] Use SimpleForms ?

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)

[edit] Idea

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

[edit] Running into error problems.

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

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

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;

[edit] "Show Preview" doesn't work

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.

[edit] Interesting...

extension, but it doesn't work.

Personal tools
Namespaces
Variants
Actions
Site
Support
Download
Development
Communication
Print/export
Toolbox