= 表示記事に対応する多言語記事が存在する場合はその記事へのリンクを作成するカスタム関数 =

                                                       Modified Date: 2014/06/18
                                                      Author: Hiroshi Sakuramoto
                                                    Presented by: IVY WE CO.,LTD
                                                                  Version: 1.0.1
                                             対応バージョン: Geeklog 1.7.0-2.1.0


== インストール方法/使用方法(Geeklog2.1以降) ==

 * custom_multilangstory.php を <geeklog_dir>/system/custom/ へアップロード


 * <geeklog_dir>/system/lib-custom.php の末尾に以下を追加

<code>
/* 表示記事に多言語記事があればその記事へのリンクを表示する */
require_once( 'custom/custom_multilangstory.php' );
</code>

 * <public_dir>/layout/<theme>/storytext.thtml の任意の場所へ多言語記事リンクの自動タグを追加
<code>
{!!autotags multilangstory:'.{story_id}.' !!}
</code>

 * autotagプラグインをインストールして、グループにてautotag.PHPを有効にしてPHP関数を使えるようにして新規自動タグでmultilangstoryを作成します。


== インストール方法/使用方法(Geeklog2.0未満) ==

 * custom_multilangstory.php を <geeklog_dir>/system/custom/ へアップロード

 * <geeklog_dir>/system/lib-story.php の 533行目の return を PLG_replaceTags() で囲む

<code>
    return PLG_replateTags(<元々のコード>);
</code>

 * <geeklog_dir>/system/lib-custom.php の末尾に以下を追加

<code>
/* 表示記事に多言語記事があればその記事へのリンクを表示する */
require_once( 'custom/custom_multilangstory.php' );
</code>

 * <public_dir>/layout/<theme>/storytext.thtml の任意の場所へ多言語記事リンクの自動タグを追加
<code>
[multilangstory:{story_id}]
</code>

 * autotagプラグインをインストールして、グループにてautotag.PHPを有効にしてPHP関数を使えるようにして新規自動タグでmultilangstoryを作成します。




