Geeklog Documentation

トップページ 管理画面

DataBox プラグイン

テーマ変数(2015/02/24 update)

画面 【フォルダ】テンプレート テーマ変数
カテゴリ別件数一覧
public_html/category.php
(グループ別)カテゴリ別件数一覧
public_html/category.php?gid=1&m=gid
public_html/category.php?gcode=country&m=gcode
【category】headercode.thtml xhtml, site_url, site_admin_url, layout_url, currenturl, site_name, og_title, og_image*5, og_description, og_type facebook_consumer_key*1
site_mail*4
【category】list.thtml,navigation.thtml,row.thtml site_url, this_script, home, lang_category_list_h2, lang_view, lin, cnt, lang_name, lang_count, page_navigation, blockfooter, (msg)
language
languageid,_languageid言語ファイル[多言語モード]に登録されていない場合は表示されません
{uid} {username} {fullname} {displayname}ゲストユーザの場合は、null *9
【category】grp.thtml group_name,group_link
【category】col.thtml category_link, category_name, category_description, category_url, category_id, category_code, count
カテゴリ別一覧
public_html/category.php?id=1&m=id
public_html/category.php?code=city&m=code

&page=1&perpage=10
&order=random
$expired=no

code には複数指定できます。
code=AAA|BBB|CCC
カテゴリコードがAAA または BBB またはCCC

order に指定できるのは、 random date released orderno code title description id と 表示制限されていない追加項目のテーマ変数 です。
date と released は逆順です。

expired:no 公開終了日を過ぎたデータは表示しません。(デフォルト)
expired:yes 公開終了日を過ぎたデータも表示します。
【category】headercode.thtml xhtml, site_url, site_admin_url, layout_url, currenturl, site_name, og_title, og_image *5, og_description, og_type facebook_consumer_key *1
site_mail*4
【category】 list_detail.thtml navigation_detail.thtml row.thtml site_url, this_script, home, category_top, lang_category_list_h2, category_name, category_code, category_description, cnt, lang_view, lin, cnt, lang_name, lang_username, lang_id, lang_uid, lang_username, lang_fullname, lang_released, lang_expired, lang_remaingdays, lang_date, lang_description, lang_addfield, lang_hits, blockfooter, msg
language
languageid,_languageid言語ファイル[多言語モード]に登録されていない場合は表示されません
imgfile_frd,data_img_url
imgfile_thumb_frd,data_thumb_img_url
{uid} {username} {fullname} {displayname}ゲストユーザの場合は、null *9

{order_date}{order_orderno}{order_code}{order_title}{order_description}{order_id}{order_released}{order_random}{cur_order}{lang_view} {lin} {cnt}{pagenavinone}
{order_各アトリビュートのテーマ変数}
【category】col_detail.thtml data_link, data_fullname, data_username, data_description, data_id, data_url, data_released, data_expired, data_remaingdays,
data_datefield(使用する日付 作成日付or編集日付or公開日), new_img (使用する日付と新着マーク表示期間で判定します)
data_datefield_shortdate, data_releaaed_shortdate, data_expired_shortdate, data_hits
data_value(ソート順に指定されたアトリビュート項目の値),
data_edit
各アトリビュートのテーマ変数
カテゴリ列挙のテーマ変数
【category】nohit.thtml home ,category_top ,category_name ,category_code ,category_description ,xhtml ,site_url ,site_admin_url ,layout_url ,lang_nohit
アトリビュート別件数一覧
public_html/attribute.php
(各アトリビュート)別件数一覧
public_html/attribute.php?id=1&m=id
public_html/attribute.php?code=xxxx&m=code
*8
【attribute】headercode.thtml xhtml, site_url, site_admin_url, layout_url, currenturl, site_name, og_title, og_image*5, og_description, og_type facebook_consumer_key*1
site_mail*4
【attribute】list.thtml,navigation.thtml,row.thtml site_url, this_script, home, attribute_top, field_top, lang_view, lin, cnt, lang_name, lang_count, page_navigation, blockfooter, (msg)
language
languageid,_languageid言語ファイル[多言語モード]に登録されていない場合は表示されません
{uid} {username} {fullname} {displayname}ゲストユーザの場合は、null *9
【attribute】col.thtml アトリビュート別件数一覧用 field_link, value_link, field_description, field_name, field_url, value_url, value, count
【attribute】col2.thtml (各アトリビュート別)件数一覧用 value_link, field_description, field_name, field_url, value_url, value, count
アトリビュート別一覧
public_html/attribute.php?id=1&m=id&value=27&template=yyyy
public_html/attribute.php?code=xxxx&m=code&value=27&template=yyyy
*8
【attribute】headercode.thtml xhtml, site_url, site_admin_url, layout_url, currenturl, site_name, og_title, og_image*5, og_description, og_type facebook_consumer_key*1
site_mail*4
【attribute】 list_detail.thtml navigation_detail.thtml row.thtml site_url, this_script, home, attribute_top, field_top, field_name, field_templatesetvar, field_description, fieldvalue, addtition_name, addition_code, cnt, lang_view, lin, cnt, lang_code, lang_id, lang_date, lang_title, lang_description, lang_addfield, lang_expired,lang_hits, blockfooter, msg
language
languageid,_languageid言語ファイル[多言語モード]に登録されていない場合は表示されません
{uid} {username} {fullname} {displayname}ゲストユーザの場合は、null *9
【attribute】col_detail.thtml data_link, data_title, data_code, data_description, data_id, data_url, data_released,
data_datefield_shortdate, data_releaaed_shortdate, data_expired_shortdate, data_hits
data_datefield(使用する日付 作成日付or編集日付or公開日), new_img (使用する日付と新着マーク表示期間で判定します)
data_value(ソート順に指定されたアトリビュート項目の値),
data_edit
各アトリビュートのテーマ変数
カテゴリ列挙のテーマ変数
【attribute】nohit.thtml home ,attribute_top ,field_top ,field_name ,field_templatesetvar ,field_description ,field_value ,xhtml ,site_url ,site_admin_url ,layout_url ,lang_nohit
データ一覧
public_html/list.php

msg=1
order=2&prevorder=orderno&direction=ASC&databoxlistpage=2&q=hotel&query_limit=50
個別表示
public_html/data.php?id=1&m=id&template=yyyy
public_html/data.php?code=xxxx_en&m=code&template=yyyy
public_html/page.php?code=xxxx_en&template=yyyy
*7


ヘッダフッタなし public_html/content.php?code=xxxx_en&template=yyyy
*7
【data】headercode.thtml xhtml, site_url, site_admin_url, layout_url, currenturl, site_name, og_title, og_image*6, og_description, og_type facebook_consumer_key*1
site_mail*4
各アトリビュートのテーマ変数
【data】list_detail.thtml,row.thtml xhtml,layout_url,site_admin_url,site_url, site_name,site_mail draft, lang_id, id, lang_fields, lang_field, lang_templatesetvar, lang_content, lang_byusingid, lang_byusingcode, lang_byusingtemplatesetvar, lang_group, lang_withlink, lang_imgfile_frd, imgfile_frd,data_img_url, lang_imgfile_thumb_frd, imgfile_thumb_frd,data_thumb_img_url, lang_basicfields, lang_code, code, lang_title, title, lang_description, description, lang_owner, owner_name, owner_id, lang_hits, hits, lang_category, lang_additionfields, lang_modified, modified,modified_shortdate, lang_created, created,created_shortdate, lang_released, released,released_shortdate, lang_expired, expired,expired_shortdate, lang_uuid, uuid, lang_udatetime, last_modify_uid, last_modify_name, last_modify_fullname, edit
各アトリビュートのテーマ変数
カテゴリ列挙のテーマ変数
currenturl,appid*1
mkid, marker*2 language
languageid,_languageid言語ファイル[多言語モード]に登録されていない場合は表示されません
{uid} {username} {fullname} {displayname}ゲストユーザの場合は、null *9
標準カスタムテーマ変数(databox)*10、DataBoxカスタムテーマ変数(data)*11
【data】col_detail.thtml additionfield_value ,additionfield_value ,additionfield_value_noimage ,additionfield_value_tn_image ,additionfield_value_tn_noimage ,additionfield_value_disp ,additionfield_value_mst_value2 ,additionfield_value_mst_disp ,additionfield_value_mst_no
各アトリビュートのテーマ変数
【data】nohit.thtml xhtml, site_url, site_admin_url, layout_url, lang_nohit
newlist
【newlist】list.thtml site_url ,day ,rss_url ,rss_title ,more_url ,more_title
【newlist】list_col.thtml new_img ,link ,url ,title ,description ,class (奇数行 class=row1 偶数行 class=row2)
カテゴリ列挙のテーマ変数
マイデータ(一覧)
public_html/mydata/data.php
マイデータ(タイプ選択)
public_html/mydata/data.php?mode_id=new
マイデータ(新規登録または編集)
public_html/mydata/data.php?type_id=aaa
public_html/mydata.php?mode_id=edit&id=1
public_html/mydata.php?mode_id=edit&id=1&template=yyyy
*7
【mydata】data_editor.thtml, row.thtml about_thispage ,site_url ,lang_fieldset ,fieldset_name ,ieldset_id ,script ,lang_basicfields ,lang_id ,help_id ,id ,lang_draft ,help_draft ,draft_flag ,draft_msg ,lang_code ,lang_must_code ,help_code ,code ,lang_title ,help_title ,lang_must ,title ,lang_page_title ,help_page_title ,page_title ,lang_description ,help_description ,maxlength_description ,description ,hide_language_id ,lang_language_id ,help_language_id ,select_language_id ,lang_udatetime ,udatetime ,lang_uuid ,uuid ,udatetime ,lang_created ,created ,created_un ,lang_category ,help_category ,checklist_category ,lang_additionfields ,additionfields ,lang_save ,lang_cancel ,delete_option ,gltoken_name ,gltoken
【mydata】data_col_detail.thtml additionfield_name ,lang_must_additionfield ,additionfield_value ,additionfield_description
添付ファイルダウンロード
public_html/dowmload.php?id=1&field_id

添付ファイル表示(拡張子=pdfのみ)
public_html/dowmload.php?id=1&field_id=&mode=display

検索リストのテーマ変数(2015/11/09)

画面 【フォルダ】テンプレート テーマ変数
public_html/search.php

検索リスト引数
検索条件に関する引数 各条件はAND
fieldset=1
  タイプid=1 省略時0
gor_1[]=1&gor_1[]=2 ・・・
  _1はカテゴリグループid
  カテゴリid=1 OR カテゴリid=2
gand_1[]=3&gand_1[]=4 ・・・
  _1はカテゴリグループid
  カテゴリid=3 AND カテゴリid=4
aeq_1=xxxx
  _1 1はアトリビュートid
  アトリビュートidが1のデータがxxxxと 等しい(完全一致)
a_1=xxxx
  _1 1はアトリビュートid
  アトリビュートidが1のデータがxxxxと 等しい(部分一致)
afr_1=xxxx
  _1 1はアトリビュートid
  アトリビュートidが1のデータがxxxx以上
ato_1=xxxx
  _1 1はアトリビュートid
  アトリビュートidが1のデータがxxxx以下
ams_1[]=1&ams_1[]=4
  _1 1はアトリビュートid
  アトリビュートidが1のデータがマスターのno 1 OR 4
teq=xxxx
  タイトルがxxxxと等しい(完全一致)
t=xxxx
  タイトルがxxxxと等しい(部分一致)

その他の引数
templatedir=xxxx テンプレートディレクトリ
perpage=9 省略時コンフィギュレーション設定ページあたりのデータ数
page=1 省略時1
nohitmsg=no 省略時yes
expired:no 公開終了日を過ぎたデータは表示しません。(デフォルト)
expired:yes 公開終了日を過ぎたデータも表示します。
order=date 省略時 date
order に指定できるのは、 random date released orderno code title description id と 表示制限されていない追加項目のテーマ変数 です。
date と released は逆順です。
【search】headercode.thtml xhtml, site_url, site_admin_url, layout_url, currenturl, site_name, og_title, og_image*5, og_description, og_type facebook_consumer_key*1
site_mail*4
fieldset_name
【search】 list_detail.thtml navigation_detail.thtml row.thtml site_url, this_script, home, category_top, lang_category_list_h2, category_name, category_code, category_description, cnt, lang_view, lin, cnt, lang_name, lang_username, lang_id, lang_uid, lang_username, lang_fullname, lang_released, lang_expired, lang_remaingdays, lang_date, lang_description, lang_addfield, lang_hits, blockfooter, msg
language
languageid,_languageid言語ファイル[多言語モード]に登録されていない場合は表示されません
imgfile_frd,data_img_url
imgfile_thumb_frd,data_thumb_img_url
{uid} {username} {fullname} {displayname}ゲストユーザの場合は、null *9

{order_date}{order_orderno}{order_code}{order_title}{order_description}{order_id}{order_released}{order_random}{cur_order}{lang_view} {lin} {cnt}{pagenavinone}
{order_各アトリビュートのテーマ変数}
{mkids}{selectedMarkers} *2
【search】col_detail.thtml data_link, data_fullname, data_username, data_description, data_id, data_url, data_released, data_expired, data_remaingdays,
data_datefield(使用する日付 作成日付or編集日付or公開日), new_img (使用する日付と新着マーク表示期間で判定します)
data_datefield_shortdate, data_releaaed_shortdate, data_expired_shortdate, data_hits
data_value(ソート順に指定されたアトリビュート項目の値),
data_edit
各アトリビュートのテーマ変数
カテゴリ列挙のテーマ変数
【search】nohit.thtml home ,category_top ,category_name ,category_code ,category_description ,xhtml ,site_url ,site_admin_url ,layout_url ,lang_nohit
【search】argument.thtml site_url ,this_script ,lang_search ,引数 (例:fieldset,gor_1,ams_1)
カテゴリチェックボックスのチェックされたidと名称(例:gor_1_names,gor_1_1_id,gor_1_1_name,gor_1_2_id,gor_1_2_name)
マスタチェックボックスのチェックされたnoとvalue(例:ams_1_names,ams_1_1_no,ams_1_1_name,ams_1_2_no,ams_1_2_name)
fieldset_name
【search】 list_detail.thtml〜 【search】nohit.thtml でも使用できます

各アトリビュートのテーマ変数(2015/09/16 update)

アトリビュートタイプ テーマ変数 説明
共通 {additionfield1}
{登録したテーマ変数名}
 
{additionfield1_name}
{登録したテーマ変数名_name}
名称
{additionfield1_description}
{登録したテーマ変数名_description}
説明
{additionfield1_requried}
{登録したテーマ変数名_requried}
必須チェック 1 or 0
12:画像(ファイル保存) {additionfield1_tn}
{登録したテーマ変数名_tn}
サムネイルファイル名
{additionfield1_noimage}
{登録したテーマ変数名_noimage}
NO PHOTO 画像ファイル名
{additionfield1_tn_image}
{登録したテーマ変数名_tn_image}
サムネイルファイル名
{additionfield1_tn_noimage}
{登録したテーマ変数名_tn_noimage}
NO PHOTO サムネイルファイル名
{additionfield1_disp}
{登録したテーマ変数名_disp}
画像表示HTMLタグ
9:オプションリスト(マスター)
16:ラジオボタンリスト(マスター)
18:マルチセレクトリスト(マスター)
{additionfield1:2}
{登録したテーマ変数名_mst_value2}
マスターのvalue2
{additionfield1:disp}マスターのdisp
{登録したテーマ変数名_mst_disp}
マスターのdisp
{additionfield1:no}
{登録したテーマ変数名_mst_no}
マスターのNo.
13:添付ファイル {additionfield1_readfile}
{登録したテーマ変数名_readfile}
サーバーに記憶しているファイルの名前
文言 {lang_download}
{lang_downloadrequired}
{lang_display}
{lang_displayrequired}
(注)No.以外のマルチセレクトリストの区切りはLANG_DATABOX['field_separater']で指定しています。

カテゴリ列挙のテーマ変数(2013/10/16 update)

テーマ変数 説明
{categories} カテゴリ 名称列挙
{categorieslink} カテゴリ リンク付 名称列挙
{categorieslinkcode} カテゴリ リンク付 引数コード 名称列挙
{categorieslinkid} カテゴリ リンク付 引数id 名称列挙
{group_xxxx} グループ別カテゴリ グループコードを使用する 名称列挙 
{group_xxxx_code} グループ別カテゴリ グループコードを使用する 名称列挙
{group_xxxx_pipeline} グループ別カテゴリ グループコードを使用する コードパイプライン区切 
{grouplink_xxxx} グループ別カテゴリ リンク付 グループコードを使用する 名称列挙 
{grouplink_xxxx_code} グループ別カテゴリ リンク付 グループコードを使用する コード列挙 
{group_1} グループ別カテゴリ グループidを使用する 名称列挙 
{group_1_code} グループ別カテゴリ グループidを使用する コード列挙 
{group_1_pipeline} グループ別カテゴリ グループidを使用する コードパイプライン区切 
{grouplink_1} グループ別カテゴリ リンク付 グループidを使用する 名称列挙 
{grouplink_1_code} グループ別カテゴリ リンク付 グループidを使用する コード列挙 
名称列挙の区切りはLANG_DATABOX['category_separater']で指定しています。
  表示例 日本 / アメリカ / イギリス
コード列挙の区切りはLANG_DATABOX['category_separater_code']で指定しています。
  表示例 japan america england
コードパイプライン区切は |で区切ます。
  表示例 japan|america|england


*1 Geeklogのコンフィギュレーション設定でFacebook OAuth Application IDの設定が必要です。
*2 mapプラグインが有効の場合 map のitem_10にDataBoxのコードを登録してmapのデータとdataboxのデータを紐付けしています。
{selectedMarkers} MAPS_getMarkerDetail使用
{marker} id のリスト スペース区切り
{selectedMarkers} MAPS_selectedMarkers使用
Mapsプラグイン Ver1.3.5以上
*4 標準テンプレートには記述されていません。
*5 DataBoxデフォルト画像またはロゴ画像
*6 featuredimageまたはDataBoxデフォルト画像またはロゴ画像
*7 template=テンプレートディレクトリ
    引数で指定されていない場合は、下記の順に使用されます(個別表示,マイデータ(新規登録または編集))
      データに登録されているテンプレートディレクトリ
      タイプに登録されているテンプレートディレクトリ
      default
      以上なければ、表示されません。($LANG_404(3))
*8 codeに指定される内容は、各データに登録されたアトリビュート(追加項目)の内容になります
    /が含まれると、urlが切れます
    使用できるのは、次のアトリビュートタイプです
      00一行テキスト
      02いいえ/はい
      03日付
      04日時
      07オプションリスト(選択肢)
      08ラジオボタンリスト(選択肢)
      09オプションリスト(マスター)
      16ラジオボタンリスト(マスター)
*9 Assist プラグイン Version 1.1.2.test20140331 以降がインストールされている必要があります
*10 標準カスタムテーマ変数 CUSTOM_templateSetVars,plugin_templatesetvars_XXXX で編集
*11 DataBoxカスタムテーマ変数 databox_custom_templateSetVars(custom/functions_custom.inc) で編集

featuredimage 最初に表示される画像(ファイル保存)タイプのアトリビュート(追加項目)
1 管理画面で表示されているid 1,2,3,4,5,...(システムで指定された数字)
xxxx 管理画面で指定したcodeの値