FeVote

Installation

Follow these steps to install this script on your wiki.

  1. Go to Service managmenent inside the Control Panel.
  2. Under Add Service, click Local and select type Extension.
  3. Enter a descriptive name and the SID: sid://mindtouch.com/2007/12/dekiscript
  4. Add "manifest" to the config section with value set to http://scripts.mindtouch.com/fevote.xml
  5. Add extra configuration values as listed below under Configuration (If Configuration is not listed below, ignore this step.)
  6. Click on add service.

Related Links: DekiScript service, Extension Overview, DekiScript Overview, Extension Demos.


Overview

This extension allows you to embed FeVote panels into your wiki. This script requires MindTouch Deki 1.8.3 or later.

Functions:

  1. fevote.widget

fevote.widget(category, width, height) : xml

Embed a FeVote panel to your wiki.

Parameters:

NameTypeDescription
categorystrCategory of feature board.
widthnum(optional) Panel width. (default: 100%)
heightnum(optional) Panel height. (default: 1800px)


Source Code

<extension>
  <title>MindTouch FeVote Extension</title>
  <label>FeVote</label>
  <copyright>Copyright (c) 2007, 2008 MindTouch, Inc.</copyright>
  <description>This extension allows you to embed FeVote panels into your wiki.</description>
  <uri.logo>http://scripts.mindtouch.com/logos/fevote-logo.gif</uri.logo>
  <uri.help>http://wiki.developer.mindtouch.com/MindTouch_Deki/Extensions/Fevote</uri.help>
  <namespace>fevote</namespace>
  
  <function>
    <name>widget</name>
    <description>Embed a FeVote panel to your wiki.</description>
    <param name="category" type="str">Category of feature board.</param>
    <param name="width" type="num" optional="true">Panel width. (default: 100%)</param>
    <param name="height" type="num" optional="true">Panel height. (default: 1800px)</param>
    <return>
      <html xmlns:eval="http://mindtouch.com/2007/dekiscript">
        <body>
          <script type="text/javascript">
            fevote_embed_category=<eval:js>args.category</eval:js>;
            fevote_embed_width=<eval:js>web.size(args.width ?? .999)</eval:js>;
            fevote_embed_height=<eval:js>web.size(args.height ?? 1800)</eval:js>;
          </script>
          <script type="text/javascript" src="http://www.fevote.com/embed/embed.js"/>
        </body>
      </html>
    </return>
  </function>
</extension>



Sample


Output

To embed the Fevote widget:

{{ fevote.widget("deki_wiki") }} 


./Fevote Board.png
Tag page
You must login to post a comment.
Powered by MindTouch Deki v.8.08