MODxのDittoCalのセットアップ
DittoCalはDittoで生成したJSONを元にカレンダーを生成するスニペット。
MODx | 0.9.6.1 |
DittoCal | 1.3 |
2. DittoCalという名前でsnippetを作成。
3. snippet.dittocal.phpのの間のものをコピー。
4. DittoCalが読み込むJSON用ドキュメントを管理画面で作成。
ここでDittoを使ってJSONの出力を行わせている。保存後、document-idを覚えておくこと。
- タイトル: blog json output
- 使用テンプレート: (blank)
- メニューに表示: チェックをはずす
- アクセス許可: 全ドキュメントグループ(Public)
- 検索対象: チェックをはずす
- コンテンツタイプ: text/plain
- 内容: 以下のみを記述。なお、&だとうまくいかない。
[!Ditto?startID=`yourblogfolder` &summarize=`100` &format=`json` &dateFormat=`%d-%m-%Y` &sortDir=`desc`!]