Archive for October, 2008

About the custom-fields-permalink

Sunday, October 26th, 2008

What’s this

  • This plugin enable to make a permalink from custom field’s value.

Requirements

  • WordPress 2.6

Installation

  1. Download archive from download page.
  2. Upload the Custom Fields Permalink plugin to your blog.
  3. Save a custom permalink structure again after this plugin is enabled.

License

MIT License

Custom permalink tags

  • %cfp_a_customfield_name%
  • %cfp_a_customfield_name_or_page_id%
  • %cfp_a_customfield_name_or_pagename%
    • “a_customfield_name” can be replaced with an arbitrary field name.

Examples

When a specification is as follows.
 - /%cfp_a_customfield_name%

 a entry has custom fields named "a_customfield_name":
  => /a_value_of_customfield (a value of "a_customfield_name")

 a entry has not custom fields named "a_customfield_name":
  => error!


When a specification is as follows.
 - /%cfp_a_customfield_name_or_page_id%

 a entry has custom fields named "a_customfield_name":
  => /a_value_of_customfield (a value of "a_customfield_name")

 a entry has not custom fields named "a_customfield_name":
  => /1 (page_id)


When a specification is as follows
 - /%cfp_a_customfield_name_or_pagename%

 a entry has custom fields named "a_customfield_name":
  => /a_value_of_customfield (a value of "a_customfield_name")

 a entry has not custom fields named "a_customfield_name":
  => /as_page_title (pagename)

Tag reference of Locator

Saturday, October 25th, 2008

<$MTGoogleMapAPIKey$>

function

display Google map API key

Usage

<$MTGoogleMapAPIKey$>

<MTLocatorGoogleMap>

block

display Googlemap(PC version).

Usage

<MTLocatorGoogleMap>
Sentences in this are displayed as InfoWindow.
<$MTEntryExcerpt$>
</MTLocatorGoogleMap>
Modifire

of=”entry | blog | author”
target object(default: entry)
id=”id”
id
class=”class”
class
height=”height”
height of the display
width=”width”
width of the display
style=”style”
style
zoom=”zoom”
zoom level of map

<$MTLocatorGoogleMapMobile$>

function

display Googlemap(Mobile version).

Usage

<$MTLocatorGoogleMapMobile$>
Modifire

of=”entry | blog | author”
target(default: entry)
id=”id”
id
class=”class”
class
height=”height”
height of the display
width=”width”
width of the display
style=”style”
style
zoom=”zoom”
zoom level of map

<$MTLocatorHasMap$>

block

Only when map is registered, it is condition tag to display the conte
nts.

Usage

<MTLocatorHasMap>
The map is registered.
<MTElse>
The map is not registered.
</MTElse>
</MTLocatorHasMap>
Modifire

of=”entry | blog | author”
target(default: entry)

<$MTLocatorAddress$>

function

Display address.

Usage

<$MTLocatorAddress$>
Modifire

of=”entry | blog | author”
target(default: entry)

<$MTLocatorLatitude$>

function

Display Latitude.

Usage

<$MTLocatorLatitude$>
Modifire

of=”entry | blog | author”
target(default: entry)

<$MTLocatorLongitude$>

function

Display Longitude.

Usage

<$MTLocatorLongitude$>
Modifire

of=”entry | blog | author”
target(default: entry)

<$MTLocatorZoom$>

function

Display zoom level.

Usage

<$MTLocatorZoom$>
Modifire

of=”entry | blog | author”
target(default: entry)

<$MTLocatorEnableForEntry$>

function

Only for use inside of plugin.

<$MTLocatorEnableForBlog$>

function

Only for use inside of plugin.

<$MTLocatorEnableForAuthor$>

function

Only for use inside of plugin.

<$MTLocatorFieldAddress$>

function

Only for use inside of plugin.

<$MTLocatorFieldMap$>

function

Only for use inside of plugin.

<$MTLocatorFieldZoom$>

function

Only for use inside of plugin.

Manual page of Locator

Saturday, October 25th, 2008

What’s this

This plugin easy to make relationship between …

  • Author – Location and ZoomLevel
  • Blog – Location and ZoomLevel
  • Entry – Location and ZoomLevel

Requirements

  • MTOS
  • MT4.1
  • MT3.3(Only a part of function can be used)

Types of Publishing

  • Static
  • Dynamic

Installation

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

Settings

System settings

locator-field address: not to use | any | required
Usage of the address field.
locator-field map: not to use | any | required
Usage of the map field.
locator-field zoom: not to use | use
Usage of the zoom field.
Which context enable locator-field for: author, blog, entry
Selecting context.
Which blogs: blogs
By which blog it is made effective when effectively doing to the entry can be selected.
API key: API key
This API key will be used in “entry edit page” and “published page”.
Sine up API key
Blog settings

API key: API key
This API key will be used in “published page”.
(When the domain is different in the place where “entry edit page” and “published page”, use it. )

License

New BSD License

Related projects

Tested by MT-App-Test.

About the MT-App-Test

Sunday, October 19th, 2008

What’s this

  • It is a library to enhance it as for the test environment when the plugin is developed.
  • It is not plugin.

Ability

  • Test of callback functions. (eg. “post_save”, “pre_save”)
  • Test of template tag(Perl/PHP)
  • Test of publishing page
  • Test of request
  • Prepare the environment and the parameter of each test by the YAML format.

More details

Requirements

  • MT4 (or later)

Installation

  1. Download archive file from download page.
  2. Please follow the procedure of README.

License

artistic license