}%
%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();
});
]]>}%
%TMPL:DEF{"formdefinition"}%%URLPARAM{"formtemplate"
default="%IF{"'%URLPARAM{"templatetopic"}%'!='' and '%URLPARAM{"templatetopic"}%'/form.name!=''"
then="$percntQUERY{\"'%URLPARAM{"templatetopic"}%'/form.name\"}$percnt"
else="%IF{"istopic '%WEB%.%TOPIC%'"
then="$percntQUERY{\"form.name\"}$percnt"
else="$percntQUERY{\"'WebTopicEditTemplate'/form.name\"}$percnt"
}%"
}%"
}%%TMPL:END%
%{}%
%{}%
%TMPL:DEF{"edittoolbar::paragraphmenu::h1"}%%TMPL:END%
%{}%
%{}%
%TMPL:DEF{"firsttab"}%%IF{
"$'URLPARAM{action}'!='form'"
then="$percntTMPL:P{\"firsttab::impl\"}$percnt"
else="$percntTMPL:P{\"hiddentextarea\"}$percnt"
}%%TMPL:END%
%{}%
%{}%
%TMPL:DEF{"hiddentextarea"}%<textarea class='natedit foswikiHidden' data-hidden='true' data-show-toolbar='false'></textarea>%TMPL:END%
%{}%
%{}%
%TMPL:DEF{"firsttab::impl"}%%TAB{"%TRANSLATE{"Text"}%"}%
%TMPL:P{"topicmeta"}%
%TMPL:P{"textarea"}%
%ENDTAB%%TMPL:END%
%{}%
%{}%
%TMPL:DEF{"formfields"}%<!-- disabled -->%TMPL:END%
%{}%
%{}%
%TMPL:DEF{"editfields"}%TopicTitle, Summary%TMPL:END%
%{}%
%{}%
%TMPL:DEF{"topicmeta"}%%RENDERFOREDIT{
form="%TMPL:P{"formdefinition"}%"
fields="%TMPL:P{"editfields"}%"
header="<div class='natEditTopicInfo'><table class='foswikiLayoutTable jqTooltip'>"
format="<tr title='$description'><th valign='top'>$title$mandatory:</th><td valign='top'>$edit</td></tr>"
footer="</table></div>"
TopicTitle_title="%TRANSLATE{"Title"}%"
TopicTitle_default="%BASETOPIC%"
Summary_title="%TRANSLATE{"Summary"}%"
}%<!-- --> %TMPL:END%
%{}%
%{}%
%TMPL:DEF{"formattop"}%<noautolink>%IF{"not '%TMPL:P{"formdefinition"}%'=~'^(none)?$'"
then="<input type='hidden' name='TopicType' value='$percntRENDERFORMDEF{\"%TMPL:P{"formdefinition"}%\" field=\"TopicType\" format=\"$value\"}$percnt' />"
}%
</noautolink>%TMPL:END%
%{}%
]]>}%
%TMPL:DEF{"firsttab"}%%TMPL:P{"detailstab"}%%TMPL:END%
%{}%
%{}%
%TMPL:DEF{"formfields"}%%TMPL:PREV%%TMPL:P{"texttab"}%%TMPL:END%
%{}%
%{}%
%TMPL:DEF{"detailstab"}%%TAB{"%TRANSLATE{"Details"}%"}%
%RENDERFOREDIT{
exclude="\b(TopicType)\b"
TopicTitle_default="%BASETOPIC%"
}%
%ENDTAB%%TMPL:END%
%{}%
%{}%
%TMPL:DEF{"texttab"}%%TAB{"%TRANSLATE{"Text"}%"}%
%TMPL:P{"textarea"}%
%ENDTAB%%TMPL:END%
%{}%
]]>| topic | index | TopicTitle | Summary | WikiApplication | Changed |
|---|
| topic | index | TopicTitle | Summary | TopicType | WikiApplication | Changed |
|---|
| I | Attachment | Action | Size | Date | Who | Comment |
|---|---|---|---|---|---|---|
| |
pretty-feed.xsl | manage | 78 K | 11 Feb 2025 - 13:47 | ProjectContributor |
Copyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.