Welcome, guest ( Login )

Powered by JotSpot

WikiHome » System » Forms » PluginForm

PluginForm

Version 1, changed by s3admin. 12/16/2006.   Show version history

Plugin Name

sample form text

Description

sample form text

Plugin Contents

			            <html xmlns="http://www.w3.org/1999/xhtml" xmlns:jot="http://www.foopee.com/ns/s3/srvtmpl/">
  <jot:declareForm>
    <h3>${L/Plugin_Name}</h3>
    <jot:input type="text" name="plugin/name" />
    <h3>${L/Description}</h3>
    <jot:input type="text" name="plugin/description" />
    <jot:if test="${action/mode='edit' or action/mode='create'}">
      <jot:then>
        <p>
          <h3>${L/Plugin_Contents}</h3>
          <jot:input type="wiki" name="main/text" editStyle="xml" />
        </p>
        <p>
          <h3>${L/Userlevel_Options}</h3>
          ${L/To_add_pluginspecific_options_to_the_User_Preferences_form} 
            ${L/For_example_to_add_a_Favorite_color_field_you_would_use_this_markup}:
          <pre>&lt;html xmlns="http://www.w3.org/1999/xhtml" xmlns:jot="http://www.foopee.com/ns/s3/srvtmpl/"&gt;
              &lt;tr&gt;&lt;td&gt;Favorite Color:&lt;/td&gt;&lt;jot:input type="text" name="myplugin/favcolor" /&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
              &lt;/html&gt;</pre>
          <jot:input type="wiki" name="plugin/userOptions" editStyle="xml" />
        </p>
        <p>
          <jot:input type="checkbox" name="plugin/activeByDefault" />
          <label for="edit_page_plugin_activeByDefault">${L/Make_this_plugin_active_by_default_after_installation}</label>
        </p>
      </jot:then>
      <jot:else>
        <h3>${L/Plugin_Contents}</h3>
        <jot:if test="${util:isDefined(page/main/text)}">
          <jot:then>
            <pre>${util:showXML(page/main/text)}</pre>
          </jot:then>
        </jot:if>
        <h3>${L/Userlevel_Options}</h3>
        <jot:if test="${util:isDefined(page/plugin/userOption)}">
          <jot:then>
            <pre>${util:showXML(page/plugin/userOptions)}</pre>
          </jot:then>
        </jot:if>
      </jot:else>
    </jot:if>
  </jot:declareForm>
</html>
		          

User-level Options

Attachments (0)

  File By Size Attached Ver.