svn commit: r608458 - /lenya/docu/src/documentation/content/xdocs/docs/modules/languageselector/index.xml

[email protected]
Newsgroups gmane.comp.cms.lenya.cvs
Message-ID <[email protected]>
Author: andreas
Date: Thu Jan  3 03:47:26 2008
New Revision: 608458

URL: http://svn.apache.org/viewvc?rev=608458&view=rev
Log:
Added docs about languageselector URL syntax

Modified:
    lenya/docu/src/documentation/content/xdocs/docs/modules/languageselector/index.xml

Modified: lenya/docu/src/documentation/content/xdocs/docs/modules/languageselector/index.xml
URL: http://svn.apache.org/viewvc/lenya/docu/src/documentation/content/xdocs/docs/modules/languageselector/index.xml?rev=608458&r1=608457&r2=608458&view=diff
==============================================================================
--- lenya/docu/src/documentation/content/xdocs/docs/modules/languageselector/index.xml (original)
+++ lenya/docu/src/documentation/content/xdocs/docs/modules/languageselector/index.xml Thu Jan  3 03:47:26 2008
@@ -31,6 +31,36 @@
         XHTML widget to switch languages on a website.
       </p>
     </section>
+    
+    <section>
+      <title>Call Syntax</title>
+      <p>
+        To generate a language selector widget, you use the following URL syntax:
+      </p>
+      <source xml:space="preserve">cocoon://modules/languageselector/text-{text}/flagsize-{flagsize}</source>
+      <p>
+        The URL contains the following parameters:
+      </p>
+      <dl>
+        <dt>text</dt>
+        <dd>
+          <p>The <em>text</em> parameter can take the following values:</p>
+          <ul>
+            <li><em>abbr</em>: abbreviated language</li>
+            <li><em>long</em>: full i18nized name of the language</li>
+          </ul>
+        </dd>
+        <dt>flagsize</dt>
+        <dd>
+          <p>The <em>flagsize</em> parameter can take the following values:</p>
+          <ul>
+            <li>any number: the width of the flag image in pixels</li>
+            <li><em>none</em>: don't show the flag image</li>
+          </ul>
+        </dd>
+      </dl>
+    </section>
+    
     <section>
       <title>Adding Custom Flags</title>
       <p>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.