Archive for September, 2008

Tag reference of FillInForm-MTPlugin

Monday, September 29th, 2008

Tags

<MTFillInForm>

block

Filling in input element and the textarea element.

Usage

<MTFillInForm>
<form>
E-mail : <input type="text" name="email" value=""/>
Message: <textarea name="message"></textarea>
</form>
</MTFillInForm>

Modifire

fillinform

Filling in input element and the textarea element.

Usage

<MTIncludeBlock module="form" fillinform="1">
E-mail : <input type="text" name="email" value=""/>
Message: <textarea name="message"></textarea>
</MTIncludeBlock>

About the FillInForm-MTPlugin

Monday, September 29th, 2008

What’s this

  • Filling in input element and the textarea element. (It is a rapper for HTML::FillInForm. )
  • When a complex form is set up with mt-search.cgi, it enable to fill in input column easily.

Requirements

  • MTOS
  • MT4

Installation

  1. Download archive from download page.
  2. Extract archive file, and upload these files to your plugin directory.
  3. Complete.

License (wrapper)

MIT License

License – HTML::FillInForm

It applies to an original license.

Screenshot of TinyMCE-MTPlugin

Monday, September 29th, 2008

Simple button layout.

Full button layout.

Manual page of TinyMCE-MTPlugin

Monday, September 29th, 2008

Plugin Settins for blog.

Plugin Settins for system.
A example of simple settings.

A example of complex settings.

About the TinyMCE-MTPlugin

Monday, September 29th, 2008

What’s this

  • When Entry and Page are edited, TinyMCE is made available as WYSIWYG editor.
  • Not only “BODY/MORE” but also it is possible to apply to the “Outline” field and other a Custom-Fields field.

Requirements

  • MTOS
  • MT4

Installation

  1. Download “TinyMCE_MTPlugin_all_{version}.zip” from download.
  2. Extract this file.
  3. Upload “TinyMCE_MTPlugin_all_{version}/plugins/TinyMCE” as “plugins/TinyMCE”.
  4. Upload “TinyMCE_MTPlugin_all_{version}/mt-static/plugins/TinyMCE” as “mt-static/plugins/TinyMCE”.
  5. Installation successful.

License (plugin)

New BSD License

License – TinyMCE

It applies to an original license. (It is LGPL. )

Address of thanks

MT-Plugin-FCKeditor1.2ja

I was going to refer to the method of adding the WISIWYG editor to MT4.

Demonstration of CategorySearch

Tuesday, September 23rd, 2008

HTML source

<MTTopLevelCategories>
<MTSetVarBlock name="tcid"><MTCategoryID></MTSetVarBlock>
<h4><MTCategoryLabel></h4>
<div>

<div>
<MTCategorySearchLink type="relative" set="$tcid" op="clear" text="ignore" >
<MTIf name="searching">
<MTIf name="selected">
<span>All</span>
<MTElseIf name="count">
<a href="<MTVar name="url">">All(<MTVar name="count">)</a>
<MTElse>
All(<MTVar name="count">)
</MTIf>
</MTIf>
</MTCategorySearchLink>
</div>

<MTSubCategories>
<div>
<MTSetVarBlock name="clabel"><MTCategoryLabel></MTSetVarBlock>
<MTCategorySearchLink type="relative" set="$tcid" value="$clabel" op="replace" text="ignore" >
<MTIf name="selected">
<span><MTCategoryLabel></span>
<MTElseIf name="count">
<a href="<MTVar name="url">"><MTCategoryLabel>(<MTVar name="count">)</a>
<MTElse>
<MTCategoryLabel>(<MTVar name="count">)
</MTIf>
</MTCategorySearchLink>
</div>
</MTSubCategories>

</div>
</MTTopLevelCategories>

Tag reference of CategorySearch

Tuesday, September 23rd, 2008

Tags

<MTIfCategorySearch>

<MTUnlessCategorySearch>

block

When “CategorySearch” is used, output the contents.

Usage

<mt:IfCategorySearch>
<!-- When "CategorySearch" is used, output the contents. -->
</mt:IfCategorySearch>
block

Generating the link for the squeezing crowding of the category.

Usage

<MTSetVarBlock name="tcid"><!-- category id of top-level category. --></MTSetVarBlock>
<MTSetVarBlock name="clabel"><!-- category label of target category --></MTSetVarBlock>
<MTCategorySearchLink type="relative" set="$tcid" value="$clabel" op="replace" text="ignore" >
<MTIf name="selected">
<span><MTVar name="clabel"></span>
<MTElseIf name="count">
<a href="<MTVar name="url">"><MTVar name="clabel">(<MTVar name="count">)</a>
<MTElse>
<MTVar name="clabel">(<MTVar name="count">)
</MTIf>
</MTCategorySearchLink>
Variables

count
It is a number of entries that become a hit when this link is clicked.
selected
When the specified category has selected it, it become true.
searching
It becomes true when called with the search result template.
url
It is URL to narrow it.
Modifire

value=”category label”
the category label used with “op” is specified.
set=”set name”
A series of category set name that does exclusive specification is specified.
op=”replace | clear | add | remove”
A present search condition is operated as follows. (default: replace)

replace
The value of the category set is replaced with value.
clear
The specified category set is cleared.
add
Value is added to the specified category set.
remove
Value is deleted from the specified category set.
type=”relative | absolute”
Operation when the category sets other than set are specified for a present search condition is specified. (default: relative)
relative
The category sets other than set are left, and op is done to the value of set.
absolute
The category sets other than set are deleted, and the category set is assumed to be only set.
text=”ignore | mixed”
It is specified whether to use the text browsing together. (default: ignore)
limit=”N”
The search result is displayed and N matter is displayed on page 1.

<MTCategorySearchSets>

<MTCategorySearchSetsHeader>

<MTCategorySearchSetsFooter>

<MTCategorySearchCategories>

<MTCategorySearchCategoriesHeader>

<MTCategorySearchCategoriesFooter>

block

Output search condition.
Output categories that specified.

Usage

<mt:CategorySearchSets glue=" AND ">
<mt:CategorySearchSetsHeader>
Result of 
</mt:CategorySearchSetsHeader>
"<mt:CategoryLabel> &gt; <mt:CategorySearchCategories glue=" | "><mt:CategoryLabel></mt:CategorySearchCategories>"
</mt:CategorySearchSets>

Manual page of CategorySearch

Tuesday, September 23rd, 2008

search

Search word

<input name="search" />

includeBlogs

blogs

<input type="hidden" name="IncludeBlogs" value="<$mt:BlogID$>" />

CategorySearch

Enable to search by category information.

<!-- requiring this settings. -->
<input type="hidden" name="CategorySearch" value="1" />

CategorySearchIgnoreText

To ignored the search word, it specifies it.

If the search word is not specified in a usual search of MT, it becomes an error.
However, there is a search that doesn’t specify “search word” using this plugis either and if it doesn’t want to do to the error in that case, you will specify this feature.

<input type="hidden" name="CategorySearchIgnoreText" value="1" />

CategorySearchSets

Specify the set of the search.

<form>
<input name="search" />
<!-- Other search parameters -->
<input type="hidden" name="CategorySearchSets" value="set1" />
<input name="set1_type" value="or" />
<input name="set1" value="Category-1-1" />
<input name="set1" value="Category-1-2" />

<input name="CategorySearchSets" value="set2" />
<input name="set2_type" value="and" />
<input name="set2" value="Category-2-1" />
<input name="set2" value="Category-3-1" />
</form>

The following conditions were specified when searching it by the above form.

  • Belonging to “Category-1-1″ or “Category-1-2″
  • AND
  • Belonging to “Category-2-1″ and “Category-3-1″
  • AND
  • Matching with search word.
  • About the CategorySearch

    Tuesday, September 23rd, 2008

    What’s this

    • Search by Category information.
    • There is features such as “AND search” and “generating link for narrowing” in MT4.2 compared with the offered it.

    Requirements

    • MTOS(It is tested since 4.2)
    • MT4(It is tested since 4.2)

    Installation

    1. Download archive from download page.
    2. Extract archive file, and upload these files to your plugin directory.
    3. Complete.

    License

    New BSD License

    Tag reference of CustomFieldsSearch

    Tuesday, September 23rd, 2008

    Tags

    <MTIfCustomFieldsSearchField>

    block

    Output content when using the specified tag as a key.

    Usage

    <mt:IfCustomFieldsSearchField tag="isbn">
    <!-- Output content when <$MTisbn$> was used as a key.-->
    ISBN: <MTisbn>
    </mt:IfCustomFieldsSearchField>
    
    Modifire

    tag=”Tag name”
    The tag name that becomes an object is specified.