book_open Bookmaker for WebOrder
Change book Close bookmaker
Add to book Remove from book
application_side_expand
You can change the order/nesting of topics using drag and drop
application_side_contract
%TMPL:INCLUDE{"Applications.ApplicationTopicEdit"}%

%TMPL:DEF{"editfields"}%TopicTitle, Summary%TMPL:END%

%TMPL:DEF{"detailstab"}%%TMPL:PREV%%ADDTOZONE{
   "script" 
   id="TOPICTYPE::JS" 
   requires="JQUERYPLUGIN" 
   text="<script type='text/javascript' src='%PUBURLPATH%/Applications/TopicTypeEditTemplate/script.js'></script>"
}%%TMPL:END%

jQuery(function($) {
   var $modeElem = $("[name=TopicNamingMode]"),
       $set1 = $("[name=TopicNameTemplate]").parent(),
       $set2 = $("[name=TopicNameSource]").parent()
               .add($("[name=TopicNamePrefix]").parent())
               .add($("[name=TopicNameSuffix]").parent())
               .add($("[name=TopicNameTransliterate]").parents("div.foswikiFormStep:first"));

   function updateTopicNaming() {
      var val = $modeElem.filter(":checked").val();
      $set1.hide();
      $set2.hide();
      if (val === 'template') {
        $set1.fadeIn();
      } else if (val === 'derived') {
        $set2.fadeIn();
      } else {
         $modeElem.filter("[value=manual]").prop("checked", true);
      }
   }

   $modeElem.on("change", updateTopicNaming);
   updateTopicNaming();
});

Topic attachments
I Attachment Action Size Date Who Comment
script.jsjs script.js manage 800 bytes 02 May 2019 - 09:18 ProjectContributor Generated by AttachContentPlugin
This topic: Applications > TopicType > TopicView > TopicTypeEditTemplate
Topic revision: 02 May 2019, UnknownUser
This site is powered by FoswikiCopyright by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding DAMASK? Send feedback
§ Imprint § Data Protection