diff --git a/data/Main/WebLinks.txt b/data/Main/WebLinks.txt index 29ef614..bf09f61 100644 --- a/data/Main/WebLinks.txt +++ b/data/Main/WebLinks.txt @@ -1,14 +1,14 @@ %META:TOPICINFO{author="ProjectContributor" date="1174668643" format="1.1" reprev="1.4" version="$Rev$"}% ---+ %TOPIC% -Sidebar navigation in the %WEB% web. See also the %SYSTEMWEB%.TWikiWebLinks +Sidebar navigation in the %WEB% web. See also the %SYSTEMWEB%.SiteLinks %STARTINCLUDE% * [[%SYSTEMWEB%.WelcomeGuest][%MAKETEXT{"Welcome"}%]] * [[%USERREGISTRATION%][%MAKETEXT{"Registration"}%]] %IFDEFINEDTHEN{"%IFEXISTS{"%USERSWEB%.%WIKIUSERSTOPIC%"}%" as="1" glue="off"}% * [[%USERSWEB%.%WIKIUSERSTOPIC%][%MAKETEXT{"Users"}%]] %FIDEFINED% * [[%USERSWEB%.WikiGroups][%MAKETEXT{"Groups"}%]] - * [[%SYSTEMWEB%.ChangePassword][%MAKETEXT{"Password"}%]]%WEBCOMPONENT{"TWikiWebLinks"}% + * [[%SYSTEMWEB%.ChangePassword][%MAKETEXT{"Password"}%]] %STOPINCLUDE% diff --git a/data/Main/TWikiGuestSideBar.txt b/data/Main/WikiGuestSideBar.txt similarity index 100% rename from data/Main/TWikiGuestSideBar.txt rename to data/Main/WikiGuestSideBar.txt diff --git a/data/System/AjaxWebSelector.txt b/data/System/AjaxWebSelector.txt new file mode 100644 index 0000000..e23163b --- /dev/null +++ b/data/System/AjaxWebSelector.txt @@ -0,0 +1,223 @@ +%META:TOPICINFO{author="ProjectContributor" date="1243950128" format="1.1" reprev="1.4" version="1.4"}% +---+!! %TOPIC% +%TOC% + +%JQREQUIRE{"chili"}% +---++ Webs + +%STARTSECTION{"webs"}% + +%FLEXWEBLIST{ + subwebs="none" + header="[{" + format="$n$indent id:'$web',$n$indent name:'$name',$n$indent parent:'$parent',$n$indent depth: $depth,$n$indent color:'$color',$n$indent description:'$sitemapuseto',$n$indent nrsubwebs: $nrsubwebs,$n$indent url: '$url'$n$indent" + subheader=", subwebs:$n$indent [{" + separator="},{" + subseparator="},{" + subfooter="}]$n$indent" + footer="}]$n" +}% + +%ENDSECTION{"webs"}% + + +---++ Webselector + +%STARTINCLUDE% +%JQREQUIRE{"gradient"}% %JQREQUIRE{"simplemodal"}% + + + + +%STOPINCLUDE% + + +---++ Webselector.css + +%STARTATTACH{"webselector.css"}% +.weblet { + float:left; + padding:10px; + margin:0px 10px 10px 0px; + border:1px solid #ddd; + width:100px; + height:100px; + position:relative; + font-size:95%; + overflow:hidden; +} +.weblet h2 { + margin:0px; + border:0px; +} +.weblet .parent { + font-size:95%; + font-style:italic; +} +.weblet .desc { + margin-top:0.1em; +} +.weblet .more { + margin-top:0.1em; +} +.weblet .more a { + text-decoration:none; +} +#weblist .container { + margin-top:10px; + width:550px; + height:390px; + overflow-x:hidden; + overflow-y:auto; +} +.weblet h2 { + margin-top:0px; + font-size:105%; + font-weight:bold; + color:#222; +} +.weblet.selected { + border:1px solid red; +} +%ENDATTACH% + + +---++ Webselector.js + +%STARTATTACH{"webselector.js"}% +(function($) { +webSelector = { + show: function() { + $("#weblist").modal({ + persist:true, + onShow: webSelector.init + }); + $(window).trigger("resize"); + return false; + }, + + spaceOutWikiWord: function(wikiWord) { + return wikiWord.replace(/([a-z])([A-Z0-9]+)/g, "$1 $2"); + }, + + addWeblets: function(webs, $container) { + for (var i in webs) { + var web = webs[i]; + var color = web.color; + if (color == '') + color = 'dddddd'; + color = color.replace(/#/g, ''); + var webName = webSelector.spaceOutWikiWord(web.name); + + var $weblet = $("
"+ + "

"+webName+"

"+ + (web.parent?"
In "+web.parent+"
":"")+ + "
"+web.description+"
"+ + (web.nrsubwebs?"":"")+ + ""+ + ""+ + "
"). + appendTo($container); + $weblet.gradient({to:'ffffff', from:color}); + webSelector.addWeblets(web.subwebs, $container); + } + }, + + selectWeblet: function(elem) { + var webId = '', webName= '', webUrl = ''; + if (elem) { + if ($(elem).hasClass("selected")) { + return webSelector.goWeb(); + } + webId = $(elem).attr('id'); + webName = $(elem).find("input[name=webName]").val(); + webUrl = $(elem).find("input[name=webUrl]").val(); + } + $("#webId").val(webId); + $("#webName").val(webName); + $("#webUrl").val(webUrl); + $("#weblist .weblet").removeClass("selected"); + if (elem) + $(elem).addClass("selected"); + }, + + goWeb: function() { + var webUrl = $("#webUrl").val(); + if (webUrl) { + window.location.href = webUrl; + } + return false; + }, + + init: function() { + if (typeof(webSelector.webs) == 'undefined') { + var $container = $("#weblist .container"); + var url = "%SCRIPTURL{view}%/%WEB%/%TOPIC%?section=webs;skin=text;contenttype=text/plain"; + $.getJSON(url, function(data) { + webSelector.webs = data; + webSelector.addWeblets(data, $container); + $(".weblet").click(function() { + webSelector.selectWeblet(this); + }); + $("#webGo").click(webSelector.goWeb); + }); + + $("#webName").keyup(function(e) { + var webName = $(this).val(); + var count = 0; + var foundWeblet; + if (webName) { + $(".weblet").each(function() { + var thisName = $(this).find("input[name=webName]").val(); + if (thisName.indexOf(webName) == 0) { + $(this).show(); + count++; + foundWeblet = this; + } else { + $(this).hide(); + } + }); + } else { + $(".weblet").show(); + webSelector.selectWeblet(); + } + if (count == 1 && e.which == 13) { + webSelector.selectWeblet(foundWeblet); + webSelector.goWeb(); + } + }); + } + + window.setTimeout(function() { + $("#webName").focus(); + }, 100); + } +} +})(jQuery); +%ENDATTACH% +
+ +---++ Test +%INCLUDE{"%TOPIC%"}% + +
+%BUTTON{"Goto webspace" onclick="webSelector.show();" icon="page_white_go"}% +%CLEAR% +
+ +%META:FILEATTACHMENT{name="webselector.css" attachment="webselector.css" attr="" author="micha" comment="Generated by !AttachContentPlugin" date="1243950128" path="webselector.css" size="649" version="8"}% +%META:FILEATTACHMENT{name="webselector.js" attachment="webselector.js" attr="" author="micha" comment="Generated by !AttachContentPlugin" date="1243950128" path="webselector.js" size="3199" version="29"}% +%META:TOPICMOVED{by="micha" date="1243614912" from="Sandbox.AjaxWebSelector" to="System.AjaxWebSelector"}% diff --git a/data/TWiki/MySideBar.txt b/data/System/MySideBar.txt similarity index 91% rename from data/TWiki/MySideBar.txt rename to data/System/MySideBar.txt index 6b83fb8..ea45a41 100644 --- a/data/TWiki/MySideBar.txt +++ b/data/System/MySideBar.txt @@ -1,4 +1,4 @@ -%META:TOPICINFO{author="ProjectContributor" date="1185741636" format="1.1" reprev="1.2" version="$Rev$"}% +%META:TOPICINFO{author="ProjectContributor" date="1185741636" format="1.1" reprev="1.2" version="$Rev: 1823 $"}% %META:TOPICPARENT{name="WebHome"}% %STARTINCLUDE%

MySideBar

diff --git a/data/TWiki/MySideBarTemplate.txt b/data/System/MySideBarTemplate.txt similarity index 95% rename from data/TWiki/MySideBarTemplate.txt rename to data/System/MySideBarTemplate.txt index 5198a3f..cbb26a2 100644 --- a/data/TWiki/MySideBarTemplate.txt +++ b/data/System/MySideBarTemplate.txt @@ -1,4 +1,4 @@ -%META:TOPICINFO{author="ProjectContributor" date="1133357180" format="1.1" version="$Rev$"}% +%META:TOPICINFO{author="ProjectContributor" date="1133357180" format="1.1" version="$Rev: 1823 $"}% %META:TOPICPARENT{name="MySideBar"}% ---+ %MAKETEXT{"[_1]'s sidebar" args="%WIKIUSERNAME%"}% @@ -29,7 +29,7 @@ * [[%SYSTEMWEB%.ReferenceManual][%MAKETEXT{"Reference Manual"}%]] * [[%SYSTEMWEB%.GoodStyle][%MAKETEXT{"Good Style"}%]] * [[%SYSTEMWEB%.FrequentlyAskedQuestions][%MAKETEXT{"FAQs"}%]] - * [[%SYSTEMWEB%.Macros][%MAKETEXT{"TWiki Variables"}%]] + * [[%SYSTEMWEB%.Macros][%MAKETEXT{"Macros"}%]] * [[%SYSTEMWEB%.DataForms][%MAKETEXT{"Data Forms"}%]] * [[%SYSTEMWEB%.FormattedSearch][%MAKETEXT{"Formatted Search"}%]] * [[%SYSTEMWEB%.FileAttachment][%MAKETEXT{"File Attachment"}%]] diff --git a/data/TWiki/NatSearch.txt b/data/System/NatSearch.txt similarity index 100% rename from data/TWiki/NatSearch.txt rename to data/System/NatSearch.txt diff --git a/data/TWiki/NatSkin.txt b/data/System/NatSkin.txt similarity index 91% rename from data/TWiki/NatSkin.txt rename to data/System/NatSkin.txt index 701f6f2..bc4dc01 100644 --- a/data/TWiki/NatSkin.txt +++ b/data/System/NatSkin.txt @@ -1,4 +1,4 @@ -%META:TOPICINFO{author="ProjectContributor" date="1227037698" format="1.1" version="$Rev$"}% +%META:TOPICINFO{author="ProjectContributor" date="1234355406" format="1.1" version="1.2"}%   | @@ -194,11 +215,11 @@ are listed there. reworked javascript to use jquery instead, \ numerous markup and css fixes, \ better attachment table at bottom of topics | -| 21 May 2007: | Bugs:Item3969 - 8bit email fix (TWiki:Main.WillNorris) | +| 21 May 2007: | Bugs:Item3969 - 8bit email fix (Foswiki:Main.WillNorris) | | 08 Mar 2007: | fixed sidebar navigation in IE; fixed page forms width for FF | | 06 Mar 2007: | fixed renameweb; nicened all rename dialogs; \ don't stretch tables to 100% width by default; \ - added some default TWiki styles (twikiLeft, twikiRight, etc); \ + added some default styles (twikiLeft, twikiRight, etc); \ some javascript fixes calculating the height of the edit textarea; \ simplified topic actions using the new USERACTIONS tag | | 05 Feb 2007: | removed =...ForAdmins= components again; \ @@ -210,7 +231,7 @@ are listed there. moved editsidebar content into a twisty under the textarea; \ new templates to customize the login screen; \ new JotSpot theme; \ - increased the skin's css priority for the TWikiTable layout \ + increased the skin's css priority for the DataTable layout \ to counter newer versions of the TablePlugin that inlines css \ by default; \ repositoned broadcast area above the main area and \ @@ -219,9 +240,9 @@ are listed there. added presets to the NatSkinStyleBrowsers to switch the look&feel \ to that of some well-known CMS systems; \ added support for SectionalEditPlugin; \ - added support for redirectto urlparam of TWiki-4.1.1; \ + added support for redirectto urlparam of TMwiki-4.1.1; \ disabled css in print view as firefox can't print pages otherwise; \ - added support for the forthcomming TWiki::Cache; \ + added support for the forthcomming PageCache; \ fixed templates for renaming a web; \ fixed lease conflict template's use of QUERYPARAMS; \ new variable %TWIKIREGISTRAION% to make the registration form \ @@ -258,7 +279,7 @@ are listed there. fixed sidebar in !PatternStyle + searchbox in position 1; \ fixed oopsmore's button style on different locales; \ more IE hacks; more i18n fixes | -| 15 Aug 2006: | interface internationalization (TWiki:Main.OliverKrueger, TWiki:Main.AndreUlrich); \ +| 15 Aug 2006: | interface internationalization (Foswiki:Main.OliverKrueger, Foswiki:Main.AndreUlrich); \ adjusted css to cope waith possibly long strings in i18n; \ added "Change Language" dialogue to oopsmore; \ replaced most =em= based widths with =px= based ones to cope with different font presets; \ @@ -268,9 +289,9 @@ are listed there. added =strings.nat.tmpl= template defining strings used in NatSkinPlugin; \ lots of css and template fixes;\ only load those javascript snippets that are really used | -| 7 Aug 2006: | removed natTWikiInfo from the bottom bar containing the "Powered by" prose; \ +| 7 Aug 2006: | removed natWikiInfo from the bottom bar containing the "Powered by" prose; \ fixed USEWYSIWYG (again) | -| 3 Aug 2006: | first 3 dot O prerelease, 3.0-final will be a TWiki V4 only skin; \ +| 3 Aug 2006: | first 3 dot O prerelease, 3.0-final will be a TMwiki V4 only skin; \ addded NatEdit templates; \ restructured edit and preview templates to allow NatEdit to "mix in" \ its toolbar; \ @@ -302,7 +323,7 @@ are listed there. added css classes for ok/cancel buttons on oops dialogues; \ lots of css improvements, mostly diff related | | 24 May 2006: | spacing and font improvements; \ - added example TWikiWebCcss; \ + added example SiteCcss; \ removed focusing the search box on every view; \ if there's an WEBLOGOIMAGE then use it in the title bar instead of the WIKITOOLNAME; \ fixed bug in save actions that could have caused data loss ; \ @@ -334,7 +355,7 @@ are listed there. | 11 Mar 2006: | reworked sidebar using the new WEBCOMPONET logic; \ docu restructuring - more needed; \ using messages.tmpl as far as possible | -| 1 Mar 2006: | fixed TWikiForm not showing certain row values (uuh); \ +| 1 Mar 2006: | fixed DataForm not showing certain row values (uuh); \ added more css for the most recent stuff added to the BlogPlugin; \ removed html from mailnotification; \ replaced SCRIPTURL{} with SCRIPTURL+SCRIPTSUFFIX again for legacy platforms; \ @@ -423,8 +444,8 @@ are listed there. | 12 Aug 2005: | first round of pre-releases numbered 1.91 upwards | | 24 Jul 2005: | rewritten the templates, renamed the CSS classes | | 25 Jun 2003: | Initial version | -| Skin Home: | http://foswiki.org/Extensions/NatSkin | -| Feedback: | http://foswiki.org/Extensions/NatSkinDev | +| Home: | Foswiki:Extensions/NatSkin | +| Support: | Foswiki:Support/NatSkin | %META:FILEATTACHMENT{name="wikiringlogo40x40.png" attachment="wikiringlogo40x40.png" attr="h" comment="" date="1189787359" path="wikiringlogo40x40.png" size="2571" stream="wikiringlogo40x40.png" tmpFilename="" user="ProjectContributor" version="1"}% %META:FILEATTACHMENT{name="BlueNoteStyle.jpeg" attachment="BlueNoteStyle.jpeg" attr="h" comment="" date="1225905266" path="BlueNoteStyle.jpeg" size="42093" stream="IO::File=GLOB(0x8f2567c)" tmpFilename="/var/tmp/CGItemp41158" user="ProjectContributor" version="1"}% diff --git a/data/TWiki/NatSkinConfiguration.txt b/data/System/NatSkinConfiguration.txt similarity index 95% rename from data/TWiki/NatSkinConfiguration.txt rename to data/System/NatSkinConfiguration.txt index 172f858..1c940ef 100644 --- a/data/TWiki/NatSkinConfiguration.txt +++ b/data/System/NatSkinConfiguration.txt @@ -1,10 +1,10 @@ -%META:TOPICINFO{author="ProjectContributor" date="1168359736" format="1.1" version="$Rev$"}% +%META:TOPICINFO{author="ProjectContributor" date="1168359736" format="1.1" version="$Rev: 1340 $"}% %META:TOPICPARENT{name="NatSkin"}% ---+!! %TOPIC% %TOC% ---++ Theme configuration -The different NatSkin styles (themes) are controlled using TWiki preference +The different NatSkin styles (themes) are controlled using preference variables and can be set * per user (on the user's home topic), * per web (in the WebPreferences), @@ -61,7 +61,7 @@ when combining the different skin states: natsearch, changes and search topic actions. * The web buttons will alternate with the sidebar so that they will not be displayed on the same side. - * If the web buttons are enabled the default [[TWikiWebSideBar][WebSideBar]] will disable the redundant + * If the web buttons are enabled the default SiteSideBar will disable the redundant navigation to other webs. ---++ Defining new Themes @@ -90,7 +90,7 @@ Css files must obey the following naming scheme to be recognized can be used to vary a base style, e.g. to add header art or change some fonts and colours ---+++ Email Obfuscation -The standard TWiki engine tries to obfuscate email addresses by adding a phrase to the email url (like NOSPAM) +The standard Foswiki engine tries to obfuscate email addresses by adding a phrase to the email url (like NOSPAM) to fool collecting web crawlers. But that is not adequate enough today as crawlers are aware of that. The solution to that is to remove every trace of a pattern that could be an email address from the html source code and regenerate them using javascript. Most likely, web crawlers will only parse the html and don't run a javascript interpreter diff --git a/data/TWiki/NatSkinCss.txt b/data/System/NatSkinCss.txt similarity index 99% rename from data/TWiki/NatSkinCss.txt rename to data/System/NatSkinCss.txt index 01d17f4..8cdef1b 100644 --- a/data/TWiki/NatSkinCss.txt +++ b/data/System/NatSkinCss.txt @@ -1,4 +1,4 @@ -%META:TOPICINFO{author="ProjectContributor" date="1168359939" format="1.1" version="$Rev$"}% +%META:TOPICINFO{author="ProjectContributor" date="1168359939" format="1.1" version="$Rev: 1340 $"}% %META:TOPICPARENT{name="NatSkin"}% ---+!! %TOPIC% @@ -619,7 +619,7 @@ the =natBottomBar= will be classified as =natBottomBarBoth=. | =natTopicEditForm= \ | form.nat.tmpl \ | | -| =natTWikiTopic= \ +| =natWikiTopic= \ | formtables.nat.tmpl \ | | | =natTopicFormFirstCol= \ @@ -651,4 +651,4 @@ the =natBottomBar= will be classified as =natBottomBarBoth=. | defaulttopbar.nat.tmpl \ | | - \ No newline at end of file + diff --git a/data/System/NatSkinFAQ.txt b/data/System/NatSkinFAQ.txt new file mode 100644 index 0000000..ca7eafb --- /dev/null +++ b/data/System/NatSkinFAQ.txt @@ -0,0 +1,45 @@ +%META:TOPICINFO{author="ProjectContributor" date="1156519729" format="1.1" version="$Rev: 1340 $"}% +%META:TOPICPARENT{name="NatSkin"}% +---+!! %TOPIC% +%TOC% + +---++ The documentation of NatSkin is crap. I'm lost! +If you need help there are a couple of options: + * Create a support request on Foswiki:Support/WebHome. + * Explain the problem on Foswiki:Extensions/NatSkinDev. + * Join the [[irc://irc.freenode.net/foswiki][#foswiki]] IRC channel and ask for help. + * Contact the [[mailto:daum@wikiring.com][WikiRing]] in case you need + professional support. + +In any case helping out improving documentation, fixing bugs, helping others +with the same problems is very welcome. + +---++ Why does NatSkin depend on so many extra plugins? +The main goal is to achieve the best user experience possible. It frankly +does not matter if that requires extra plugins. + +Some things can't be done with the inventory being shipped with standard +Foswiki. A lot of the plugins once have been an integral part of the +NatSkinPlugin and then been externalized into plugins of their own for the +greater benefit. + +---++ Why are there so many template files? +NatSkin does not build upon the standard templates/skin of Foswiki as +it differs substantially in the way it is broken up into components. Therefor +every function of the core engine will use a =*.nat.tmpl= file. Infact, +the NatSkin templates are created to provide an independent base +for further template modifications. + +NatSkin templates offer much more flexibility than the standard +templates do. While its theming engine controls which css files are to +be loaded, it also maintains the SKIN path to allow themes to override +the standard markup. So switching a theme does also switch the SKIN path +and the templates with it. + +---++ Can I enable offsite link detection? +Yes. Use ={NatSkin}{DetectExternalLinks}= configuration setting. + +---++ Does NatSkin support QuietSave? +This feature confuses more than provide any added value and has thus been removed from +the =edit= page to simplify the interface. + diff --git a/data/System/NatSkinStyleBrowser.txt b/data/System/NatSkinStyleBrowser.txt new file mode 100644 index 0000000..67faf1e --- /dev/null +++ b/data/System/NatSkinStyleBrowser.txt @@ -0,0 +1,117 @@ +%META:TOPICINFO{author="ProjectContributor" date="1202840013" format="1.1" version="$Rev: 1823 $"}% +---+ Style Browser +Explore the style variations of the %SYSTEMWEB%.NatSkin by changing the base +_style_ and a _variation_ of it. In general style variations are used to change +the header art but also adapt colors to match the graphics. Various elements of +the style can be relocated using style switches or even be switched off. Use +the "reset" button whenever you want to revert your selection and come back to +the site's default settings. Note that each web may have its own defaults build +in. If you select different style options they have precedence over those. + +Register [[%USERREGISTRATION%][here]] to make your settings persistent. +See the %SYSTEMWEB%.NatSkinPlugin documentation on how to use style settings in your personal +%WIKITOOLNAME% account. + +%STARTINCLUDE% + +
+
+
+
+

%MAKETEXT{"Style"}%:

+ + + + + + +
+ %MAKETEXT{ + + + + %MAKETEXT{ +
+
+
+

%MAKETEXT{"Variation"}%:

+ + + + + + +
+ %MAKETEXT{ + + + + %MAKETEXT{ +
+
+
+

%MAKETEXT{"Layout"}%:

+
    +
  • +
  • +
  • +
+ +
    +
  • +
  • +
  • +
  • +
+ +
    +
  • +
  • +
+ +
    +
  • +
  • +
  • +
  • +
  • +
+
+
+ %BUTTON{"%MAKETEXT{"OK"}%" type="submit" icon="tick"}% + %BUTTON{"%MAKETEXT{"Reset"}%" icon="cross" onclick="window.location.href='%SCRIPTURLPATH{"view"}%/%BASEWEB%/%BASETOPIC%?style=reset';" }% + %CLEAR% +
+
+
+
+ +
+%STOPINCLUDE% diff --git a/data/TWiki/NatSkinTemplates.txt b/data/System/NatSkinTemplates.txt similarity index 96% rename from data/TWiki/NatSkinTemplates.txt rename to data/System/NatSkinTemplates.txt index ecb989d..fa1a200 100644 --- a/data/TWiki/NatSkinTemplates.txt +++ b/data/System/NatSkinTemplates.txt @@ -1,13 +1,13 @@ -%META:TOPICINFO{author="ProjectContributor" date="1125075424" format="1.0" version="$Rev$"}% +%META:TOPICINFO{author="ProjectContributor" date="1125075424" format="1.0" version="$Rev: 1340 $"}% %META:TOPICPARENT{name="NatSkin"}% ---+!! %TOPIC% The template setup of the NatSkin differes completely from the standard templates that -come with the TWiki folowing its own inner logic compared to the Foswiki:Extensions/PatternSkin. The +come with Foswiki folowing its own inner logic compared to the Foswiki:Extensions/PatternSkin. The NatSkinTemplates have especially been designed to simplify subskins overwriting parts of the NatSkin. @@ -111,7 +111,7 @@ default fragments are left out for clarity. 1 Messages: * oopsbadpwformat, oopschangepasswd, oopsempty, oopslocked, oopslockedrename, oopsmanage, oopsmissing, oopsmngcreateweb, - oopsmore, oopsnoformdef, oopsnotwikiuser, oopsnoweb, + oopsmore, oopsnoformdef, oopsnowikiuser, oopsnoweb, oopspreview, oopsregemail, oopsregexist, oopsregpasswd, oopsregrequ, oopsregthanks, oopsregwiki, oopsrenamenotwikiword, oopsresetpasswd, oopsrev, oopssave, oopstopicexists, diff --git a/data/System/NatSkinTopicDoesNotExistViewTemplate.txt b/data/System/NatSkinTopicDoesNotExistViewTemplate.txt new file mode 100644 index 0000000..2bb6b20 --- /dev/null +++ b/data/System/NatSkinTopicDoesNotExistViewTemplate.txt @@ -0,0 +1,48 @@ +%META:TOPICINFO{author="ProjectContributor" date="1231502400" format="1.0" version="$Rev: 1643 $"}% +%TMPL:INCLUDE{"WebCreateNewTopic"}% + +%TMPL:DEF{"topicactions"}%%TMPL:END% +%TMPL:DEF{"revinfo"}%%TMPL:END% +%TMPL:DEF{"formtitle"}%%TMPL:END% +%TMPL:DEF{"contentheader_container"}%%TMPL:END% +%TMPL:DEF{"newtopictitle"}%%BASETOPIC%%TMPL:END% +%TMPL:DEF{"newtopic"}%%BASETOPIC%%TMPL:END% +%TMPL:DEF{"searchvalue"}%%BASETOPIC%%TMPL:END% + +%TMPL:DEF{"content"}% +

%MAKETEXT{"Topic [_1] does not exist" args="'%BASETOPIC%'"}%

+%SEARCH{"moved.from='%BASEWEB%.%BASETOPIC%'" + nosearch="on" + nototal="on" + type="query" + format="
%MAKETEXT{"A topic with this name did exist, but has been renamed or moved to [_1]." args="[[$web.$topic]]"}%
" +}% +%MAKETEXT{"Did you spell the topic name correctly? Remember, a topic name is case sensitive."}% + +%TMPL:P{"createform"}% + +%SEARCH{"%BASETOPIC%" + header="

%MAKETEXT{"Similar topics"}%

" + limit="10" + scope="topic" + web="%BASEWEB%" + nonoise="on" + order="modified" + reverse="on" +}% +%TMPL:END% + +%TMPL:DEF{"formstartstep"}% +%TWISTYBUTTON{id="createnewtopic" link="%BUTTON{"%MAKETEXT{"Create new topic"}%" icon="add"}%"}% +%BUTTON{"%MAKETEXT{"Cancel"}%" icon="cross" target="%BASEWEB%.%HOMETOPIC%" title="%MAKETEXT{"Get me out of here"}%"}% +%CLEAR% +%TWISTYTOGGLE{id="createnewtopic"}% + +
%TMPL:P{"formstart"}% +%TMPL:END% + +%TMPL:DEF{"formendstep"}% +%TMPL:P{"formend"}% +%ENDTWISTY% +
+%TMPL:END% diff --git a/data/TWiki/NatSkinWebCreateNewTopicTemplate.txt b/data/System/NatSkinWebCreateNewTopicTemplate.txt similarity index 58% rename from data/TWiki/NatSkinWebCreateNewTopicTemplate.txt rename to data/System/NatSkinWebCreateNewTopicTemplate.txt index 48c861b..815c7e6 100644 --- a/data/TWiki/NatSkinWebCreateNewTopicTemplate.txt +++ b/data/System/NatSkinWebCreateNewTopicTemplate.txt @@ -1,25 +1,34 @@ -%META:TOPICINFO{author="ProjectContributor" date="1131431859" format="1.1" version="$Rev$"}% +%META:TOPICINFO{author="ProjectContributor" date="1131431859" format="1.1" version="$Rev: 1963 $"}% %TMPL:INCLUDE{"view"}% -%TMPL:DEF{"content"}% -%TMPL:P{"formstartstep"}% ----++ %MAKETEXT{"Create New Topic in the [_1] Web" args="%BASEWEB%"}% -%TMPL:P{"topictitlestep"}% -%TMPL:P{"DIStopicnamestep"}% -%TMPL:P{"topictemplatestep"}% -%TMPL:P{"formbuttons"}% -%TMPL:P{"formendstep"}% -%TMPL:END% +%TMPL:DEF{"content"}%%TMPL:P{"createform"}%%TMPL:END% + +%TMPL:DEF{"createform"}% +%TMPL:P{"formstartstep"}% +%TMPL:P{"formtitle"}% +%TMPL:P{"topictitlestep"}% +%TMPL:P{"DIStopicnamestep"}%%TMPL:P{"hiddentopicnamestep"}% +%TMPL:P{"topictemplatestep"}% +%TMPL:P{"formbuttons"}% +%TMPL:P{"formendstep"}% +%TMPL:END% + +%TMPL:DEF{"formtitle"}% +

%MAKETEXT{"Create New Topic in the [_1] Web" args="%BASEWEB%"}%

+%TMPL:END% + +%TMPL:DEF{"newtopictitle"}%%URLPARAM{"newtopictitle"}%%TMPL:END% +%TMPL:DEF{"newtopic"}%%URLPARAM{"newtopic"}%%TMPL:END% %TMPL:DEF{"viewjavascript"}% -%JQSCRIPT{"jquery.validate"}% +%JQREQUIRE{"validate"}% %TMPL:END% %{ do not show the following elements }% %TMPL:DEF{"topicactions"}%%TMPL:END% %TMPL:DEF{"formstartstep"}% -
%TMPL:P{"formstart"}% +
%TMPL:P{"formstart"}% %TMPL:END% %TMPL:DEF{"formendstep"}% @@ -28,28 +37,32 @@ %TMPL:END% %TMPL:DEF{"topictitlestep"}% -
----+++ %MAKETEXT{"Title:"}% +
+

%MAKETEXT{"Title:"}%

%TMPL:P{"topictitle"}%
%TMPL:END% %TMPL:DEF{"topicnamestep"}% -
----+++ %MAKETEXT{"Name:"}% +
+

%MAKETEXT{"Name:"}%

%TMPL:P{"topicname"}%%TMPL:P{"nonwikiword"}%
%TMPL:END% +%TMPL:DEF{"hiddentopicnamestep"}% + + + %TMPL:DEF{"topictemplatestep"}% -
----+++ %MAKETEXT{"Template:"}% +
+

%MAKETEXT{"Template:"}%

%TMPL:P{"topictemplate"}%
%TMPL:END% %TMPL:DEF{"formbuttons"}% -
+
%TMPL:P{"submit"}%%TMPL:P{"cancel"}%%CLEAR%
%TMPL:END% @@ -59,29 +72,28 @@ - %TMPL:END% %TMPL:DEF{"topictitle"}% - -
+ +
%MAKETEXT{"Free form title text."}%
%TMPL:END% %TMPL:DEF{"topicname"}% - -
+ +
WikiWord the new page is associated with.
%TMPL:END% %TMPL:DEF{"topictemplate"}% - %IF{"'%URLPARAM{"templatetopic"}%'" then=''}% %SEARCH{".*Template$" scope="topic" excludetopic="WebTopicEditTemplate,WebCreateNewTopicTemplate,*ViewTemplate" type="regex" nonoise="on" format=""}% -
+
%MAKETEXT{"Initialize the new topic using a template."}%
%TMPL:END% @@ -99,8 +111,8 @@ %TMPL:DEF{"javascript"}% %TMPL:P{"defaultjavascript"}% - - + + -%JQSCRIPT{"jquery.validate"}% + +%JQREQUIRE{"validate"}% %TMPL:END% %TMPL:DEF{"javascript"}% diff --git a/templates/attachnew.nat.tmpl b/templates/attachnew.nat.tmpl index ee8bb81..8e3bae3 100755 --- a/templates/attachnew.nat.tmpl +++ b/templates/attachnew.nat.tmpl @@ -1,8 +1,7 @@ %TMPL:INCLUDE{"attach"}% -%TMPL:DEF{"heading"}%%MAKETEXT{"Upload a file to [_1]" args="'%TOPICTITLE%'"}%%TMPL:END% +%TMPL:DEF{"heading"}%%MAKETEXT{"Upload a file to [_1]" args="%TMPL:P{"topictitle"}%"}%%TMPL:END% %TMPL:DEF{"attachaction"}% -%BUTTON{"%MAKETEXT{"Submit"}%" icon="tick" title="Upload selected file" type="submit"}% -%BUTTON{"%MAKETEXT{"Cancel"}%" icon="cross" title="Cancel and return to topic" target="%WEB%.%TOPIC%"}% +%BUTTON{"%MAKETEXT{"Submit"}%" icon="tick" title="Upload selected file" type="save"}% %CLEAR% %TMPL:END% %TMPL:DEF{"notes"}% @@ -15,7 +14,7 @@ %TMPL:DEF{"moreoptions"}% - +