User Tools

Site Tools


create_new_content

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

create_new_content [2019/04/12 13:13] (current)
Line 1: Line 1:
 +====== Create new content ======
 +
 +The pages are organised using namespaces. Every type document has his own namespace and therefore, grouping is much more easy.
 +
 +You can use the following formula to create new content. Just specify title, type of document and category. This will create a new document in the corresponding namespace with a default template text.
 +
 +<​html>​
 +<script type="​text/​javascript">​
 +
 +function submitFormular() {
 +
 +    document.Formular.id.value = 
 +         ​document.Formular.namespace.value + ":"​ + 
 +         ​document.Formular.category.value + ":"​ + 
 +         ​document.Formular.id.value;​
 +
 +    if (document.Formular.namespace.value == "​plugin"​) {
 +        document.Formular.id.value += ":​start";​
 +    } 
 +
 +
 +    document.Formular.newpagetemplate.value = 
 +         ​document.Formular.newpagetemplate.value + ":"​ + 
 +         ​document.Formular.namespace.value;​
 +    document.Formular.namespace.name = null;
 +    ​
 +    return true;
 +  }
 +
 +function fillCategories() {
 +    namespace = document.Formular.namespace.value;​
 +
 +    // empty existing items
 +    for (i = document.Formular.category.options.length;​ i >= 0; i--) {
 + document.Formular.category.options[i] = null; 
 +    }
 +    itemArray = null;
 +
 +    // now fill, depending on namespace selected:
 +    if(namespace == "​faq"​){
 +        itemArray = new Array(
 + new Array("​General",​ "​general"​),​
 + new Array("​Technical",​ "​technical"​),​
 + new Array("​Plugins",​ "​plugins"​),​
 + new Array("​Macros",​ "​macros"​),​
 + new Array("​Lookup Tables",​ "​lookup"​));​
 +     }
 +     ​if(namespace == "​lib"​){
 +        itemArray = new Array(
 + new Array("​Utility",​ "​util"​),​
 + new Array("​Processing",​ "​processing"​));​
 +
 +
 +     }
 +     ​if(namespace == "​gui"​){
 +        itemArray = new Array(
 + new Array("​File",​ "​file"​),​
 + new Array("​Edit",​ "​edit"​),​
 + new Array("​Image",​ "​image"​),​
 + new Array("​Process",​ "​process"​),​
 + new Array("​Analyze",​ "​analyze"​),​
 + new Array("​Plugins",​ "​plugins"​),​
 + new Array("​Window",​ "​window"​),​
 + new Array("​Help",​ "​help"​));​
 +     }
 +     ​if(namespace == "​plugin"​){
 +        itemArray = new Array(
 + new Array("​Acquisition",​ "​acquisition"​),​
 + new Array("​Aligning",​ "​aligning"​),​
 + new Array("​Analysis",​ "​analysis"​),​
 + new Array("​Collections",​ "​collections"​),​
 + new Array("​Color",​ "​color"​),​
 + new Array("​Filter",​ "​filter"​),​
 + new Array("​Graphics",​ "​graphics"​),​
 + new Array("​Input/​Output",​ "​inputoutput"​),​
 + new Array("​Morphology",​ "​morphology"​),​
 + new Array("​Programming Examples",​ "​examples"​),​
 + new Array("​Segmentation",​ "​segmentation"​),​
 + new Array("​Simulation",​ "​simulation"​),​
 + new Array("​Stacks",​ "​stacks"​),​
 +                new Array("​3D Modelling",​ "​3d"​),​
 + new Array("​Utilities",​ "​utilities"​));​
 +     }
 +     ​if(namespace == "​howto"​){
 +        itemArray = new Array(
 + new Array("​General",​ "​general"​),​
 + new Array("​Plugins",​ "​plugins"​),​
 + new Array("​Java",​ "​java"​),​
 + new Array("​Working with ImageJ",​ "​working"​));​
 +     }
 +     ​if(namespace == "​tutorial"​){
 +        itemArray = new Array(
 + new Array("​General",​ "​general"​),​
 + new Array("​Plugins",​ "​plugins"​),​
 + new Array("​Java",​ "​java"​),​
 + new Array("​Working with ImageJ",​ "​working"​));​
 +     }
 +    if(namespace == "​wishlist"​){
 +        itemArray = new Array(
 + new Array("​Procedure",​ "​procedure"​),​
 + new Array("​GUI",​ "​gui"​),​
 + new Array("​Functionality",​ "​functionality"​),​
 + new Array("​Completed",​ "​completed"​));​
 +     }
 +     ​if(namespace == "​problem"​){
 +        itemArray = new Array(
 + new Array("​All Operation Systems",​ "​allos"​),​
 + new Array("​Windows",​ "​windows"​),​
 + new Array("​MAC OS X", "​osx"​),​
 + new Array("​Linux",​ "​linux"​),​
 + new Array("​Zaurus",​ "​zaurus"​));​
 +     }
 +    if(namespace == "​video"​){
 +        itemArray = new Array(
 + new Array("​Acquisition",​ "​acquisition"​),​
 + new Array("​Aligning",​ "​aligning"​),​
 + new Array("​Analysis",​ "​analysis"​),​
 +                new Array("​Beginner Help", "​beginner help"​),​
 + new Array("​Collections",​ "​collections"​),​
 + new Array("​Color",​ "​color"​),​
 + new Array("​Filters",​ "​filters"​),​
 + new Array("​Graphics",​ "​graphics"​),​
 + new Array("​Input/​Output",​ "​inputoutput"​),​
 + new Array("​Morphology",​ "​morphology"​),​
 + new Array("​Programming Examples",​ "​examples"​),​
 + new Array("​Segmentation",​ "​segmentation"​),​
 + new Array("​Segmentation",​ "​simulation"​),​
 + new Array("​Stacks",​ "​stacks"​),​
 +                new Array("​3D Modelling",​ "​3d"​),​
 + new Array("​Utilities",​ "​utilities"​));​
 +     }
 +     ​if(namespace == "​link"​){
 +        itemArray = new Array(
 + new Array("​ImageJ",​ "​imagej"​),​
 + new Array("​Image analysis",​ "​analysis"​),​
 + new Array("​Spectral imaging",​ "​spectral"​),​
 + new Array("​Test Images",​ "​test"​),​
 + new Array("​Java",​ "​java"​));​
 +     }
 +
 +     j = 0;
 +     for (i = 0; i < itemArray.length;​ i++) {
 + document.Formular.category.options[j] = new Option(itemArray[i][0]);​
 + if (itemArray[i][1] != null) {
 +   document.Formular.category.options[j].value = itemArray[i][1]; ​
 + }
 + j++;
 +     }
 +     ​return true;
 +   }
 +</​script>​
 +
 +<form name="​Formular"​ action="​./​doku.php"​ onsubmit="​submitFormular()"​ method="​get">​
 +
 +<​p><​b>​Title:</​b><​br>​
 +<input name="​id"​ type="​text"​ size="​80"​ maxlength="​120"></​p>​
 +
 +<​p><​b>​Type:</​b><​br>​
 +    <select name="​namespace"​ size="​1"​ onChange="​fillCategories()"​ >
 +      <option value="​none">​Please select</​option>​
 +      <option value="​faq">​FAQ</​option>​
 +      <option value="​gui">​GUI Commands</​option>​
 +      <option value="​plugin">​Plugin</​option>​
 +      <option value="​lib">​Library</​option>​
 +      <option value="​howto">​HowTo</​option>​
 +      <option value="​tutorial">​Tutorial</​option> ​   ​
 +      <option value="​wishlist">​Wishlist</​option>​
 +      <option value="​problem">​Problem</​option>​
 +      <option value="​video">​Video Tutorial</​option>​
 +      <option value="​link">​Link</​option>​
 +    </​select>​
 +</p>
 +<​p><​b>​Category:</​b><​br>​
 +    <select name="​category"​ size="​1">​
 +    </​select>​
 +</p>
 +<input type="​hidden"​ name="​do"​ value="​edit">​
 +<input type="​hidden"​ name="​newpagetemplate"​ value="​templates">​
 +
 +
 + <​input type="​submit"​ value="​ Submit ">
 + <​input type="​reset" ​ value="​ Cancel ">
 +
 +  </p>
 +</​form>​
 +</​html>​
 + \\
 + \\
 +
 +
 +===== Modification of pages =====
 +
 +All content can be edited by any registered user by default. If you want to protect some data, for example of your own plugin, you can restrict these modification by sending a email to **Andreas dot Jahnen at list dot lu**.
 +
  
create_new_content.txt ยท Last modified: 2019/04/12 13:13 (external edit)