To use third party extra providers, you'll usually need to create an account in order to access their Package Provider. You can find more information on how to do that in the documentation for each of the mentioned vendors. Commonly used Extras¶ With almost 1000 extras available, it can be hard when getting started to determine which extras you should use. The extras in the following list are cons
Placeholders These placeholders are related to templates. The searchString is available as placeholder. Use [+as.searchString+] to get the search string used for the search. E.g.: "Search results for [+as.searchString+]" as pagetitle for the landing page. All the fields of the main table and of the joined table defined as "displayed". All the TV can be displayed as placeholders with &withTvs or &t
MODXのテンプレートワークの基本は、まずはリソース変数から。リソース変数は、タイトル・本文・投稿日など、投稿画面上の各入力フィールドに対応し、その値をそのまま出力します。全部で37種類ありますが、[*pagetitle*]と[*content*]の2つを覚えておけば、通常のサイト作りは間に合います。 リソース変数を記述できる場所 場合によっては入れ子記述になってしまう可能性があるため、注意してください。たとえば本文(content)の中に [*content*]を記述するとループ状態になります。事故防止のため、この場合は10回まで繰り返して終了します。 リソース変数は、下記のエレメント内で記述できます。 テンプレート 投稿画面内のtextフィールドやtextarea全て チャンク スニペット プラグイン スニペットやプラグインはPHPコードなので、[*リソース変数名*]ではなく $mod
TIPS ここではスニペット開発のベストプラクティスだと思われるいくつかのガイドラインを見ることができます。これらに従う必要はありませんが、これらの点に気をつけておくことは良いことです。 カレントドキュメントのID取得にはdocumentIdentifierを使う 悪い例 $id = $modx->getDocumentIdentifier('id'); 良い例 $id = $modx->documentIdentifier; getDocumentIdentifier()メソッドは、フレンドリーURLsを使っている場合に問題が発生する可能性があるため、ドキュメントのIDを取得する目的では使わないようにします。
&ajaxSearch - ajaxモードの有効無効 機能: ajaxモードを有効にします。ajaxモードが有効になっていると、キーワードを入力して送信ボタンをクリックした時、ページを遷移せずその場で検索結果一覧を出力します。ユーザビリティに優れており、受け皿となるページを作る必要がなくスニペットコールを記述するだけなので実装も簡単に済ませることができます。 オプション: 0 (off) | 1 (on) | > 1 custom usage デフォルト値:1 備考: MySQL4.0系では利用できません。 &parents 機能: Ids of documents to retrieve their children to &depth depth where to do the search in or not in オプション: [ in | not in ] : comma sep
This write up gives you a step-by-step of how to set up and run multiple subdomains on a single instance of MODx Revolution. This process was created using the official documentation, along with some other helpful tricks that I added to make possible for anyone to do without root server access. Update: Feb 11, 2011 — If you’re interested in hosting multiple top-level domains, the new write-up is h
Overview¶ MODX Revolution (Revo) is an easy-to-use Content Management System (CMS) and Application Framework rolled into one. Despite the limitless possibilities that MODX affords you, we think you'll find it refreshingly intuitive to work with. At every step, MODX strives to deliver Creative Freedom. In addition to this documentation site, the MODX Community is vibrant and always willing to help.
2008年3月17日 MODxのドキュメントやテンプレート内で使用できるテンプレート(ドキュメント)変数の一覧。 親ドキュメントのIDを取得するために、「Ultimate Parent」なるスニペットを使用していましたが、あるとき、親ドキュメントのIDを取得するためのテンプレート変数が用意されていることに気付きました。MEはSHOCK!!・・・という不測の事態を受けて、テンプレート(ドキュメント)変数を、復習しました。 MODxテンプレート変数の基本書式 ドキュメント内や、テンプレート、チャンク内などで、以下のように記述します。 [*テンプレート変数名*] 公式ドキュメントはhttp://modxcms.com/document-tvs.html(英語)。 MODxテンプレート変数の一覧 [*id*]
アクセスしてきた端末のUset Agent(ver2.0から他の環境変数も利用可能)により表示するテンプレートを変更したり、文字コードを変更するプラグインです。ver1.10から画像の変換にも対応しました。 携帯端末でアクセスしてきたときにテンプレートの切り替えを行ったり文字コードをShift_JISに変更したりすることを目的としてるのでMobileConverterという名称にしています。 他にもブラウザごとに違うテンプレートを使用したりするという用途にも使えます。 2.10からはスマートフォンやタブレットのテンプレートや画像変換も視野に入れてリリースしています。 具体的には画像変換に割合(%)の指定、User Agentの指定方法の拡張、一時的にMobileConverterを無効にする機能...等です。 インストール方法や詳しい説明は付属のreadmeを参照ください。 ソースはgit
インストール 以下の解説は1.2.0を対象にしています。特に1.0.1以下では内容が異なることがあります。 MODxのルートはhttp://example.com/modx/, WordPressインストール先はhttp://example.com/modx/wp/, MODxを通してWordPressにアクセスするURIはhttp://example.com/modx/blog/とします。 MODxとWordPressのデータベースについて MODxとWordPressの使用するデータベースが異なる場合、動作しません。 WordPressのパスとWORDPRESS_ALIASについて MODxのフレンドリーURLに処理が渡るのは、URIに対応するパスが存在しない(!-f, !-d)場合に限られるため、実際のファイルシステム上にWORDPRESS_ALIASで指定する'blog
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く