From: Brian <Bri...@co...> - 2009-01-27 03:49:07
|
Ahh, thanks. I think I will change RTFM to RTFMA - RTFM Again. If you read the manual a month ago you probably didn't notice features that are useful to you now :) On Mon, Jan 26, 2009 at 8:45 PM, Yaron Koren <ya...@gm...> wrote: > The 'add title' parameter lets you do that; see here: > > http://www.mediawiki.org/wiki/Extension:Semantic_Forms#Form_markup_language > > -Yaron > > > On Mon, Jan 26, 2009 at 10:30 PM, Brian <Bri...@co...> wrote: > >> In my case "Add data" has absolutely nothing to do with what I am using >> the form for and so its confusing to my users. I wrote a parser function >> that uses the contents of the form fields to create a bookmark. The page >> that gets creates is basically a one-off that will never be used again. >> >> Here is the javascript that can rename "Add data" to something else. >> >> function fixBookmarkMakerTitle(){if(location.href.search('Special:AddData/Bpms_bookmark')){document.getElementsByTagName('h1')[0].innerHTML='BPMS Bookmark Maker'}};fixBookmarkMakerTitle(); >> >> The problem is that AddData does not import MediaWiki:Common.js. Even if >> it did, it's hard to be sure that this code would be executed after the H1 >> existed in the dom. Also, the code is horribly inefficient, being executed >> on every page load on the entire wiki. >> >> It would be nice if there were some way to specify what Add Data should be >> called. I think the form declaration might be the right place. >> >> Thoughts, advice? >> >> >> ------------------------------------------------------------------------------ >> This SF.net email is sponsored by: >> SourcForge Community >> SourceForge wants to tell your story. >> http://p.sf.net/sfu/sf-spreadtheword >> _______________________________________________ >> Semediawiki-user mailing list >> Sem...@li... >> https://lists.sourceforge.net/lists/listinfo/semediawiki-user >> >> > |