MODx - Truly Generic CMS
最近勉強がてらMODxというCMSをいじったりして遊んでいる。
CMSとはContent Management Systemの略で、ウェブ用のコンテンツを管理するシステムの総称。例えばウェブログは「日記的なコンテンツ」を管理することに特化したCMSだと言うことができる。
要するに、「デザインやら検索やらの機能はシステムに任せて、僕はコンテンツを作りますよ」といった場合に便利なウェブ用のシステムだ。
MODxは今年(2005年)の3月頃にEtomiteというプロジェクトから派生した(forkという)ばかり。
ライセンスはGPLで、RDBにMySQLを使っているのはイマドキのCMSらしい。
PHPで書かれていて非常に汎用的な作りになっているのが特徴。
元々Etomiteも同じようなCMSを目指して開発されていたのだけれど、今年に入ってコアの開発メンバーが抜けてしまう事件が発生して開発が滞ってしまい、そこで生まれたのがMODxというわけ。
**
Etomite自体とてもパワフルで面白いCMSなので、Etomite/MODxでドキュメントが生成されるからくりをまとめてみよう。
Etomite/MODxではひとつのページを「ドキュメント」という単位で扱っていて、それぞれのドキュメントはひとつのテンプレートをベースに生成される(左図参照)。
テンプレートやドキュメントではChunkとSnippetという自由定義のパーツを呼び出すことができる。
Chunkは静的な文章を保持するのためのHTMLコードで、例えば住所を"MyHomeAddress"のように定義することで何回も同じ事を書かなくて済む。
Snippetは動的な構造を実現するためのPHPコードで、例えば現在いるページからのナビゲーションを"SiteNavigation"のように登録しておき、テンプレートから呼び出すことでそのテンプレートを利用するドキュメントからのナビゲーションが動的に生成される。
Chunk/Snippet/Templateでは、共通のAPI(及び変数名)を利用することで参照されているドキュメントの詳細情報を取得することができる。
さらに、MDOxにはEtomiteにはない拡張がされていて、その中で僕が注目しているのが"Template Variable"という機能。
詳細は本家のドキュメントにあるWhat are Template Variables?でも読んでいただくとして、これを使うと全てのドキュメントに対して任意のデータ形式&任意のプレゼンテーション(見せ方)を用意することができる。
例えばAmazonに並んでいる商品はある規定のフォーマットによって並んでいる(商品名、画像、発売元、などなど)わけだけど、この商品名や画像などがデータベースに保存されるフォーマットを自分で定義することができて、かつそれが表示される仕組みも自由に定義することができたらどうだろう?
Template VariableはCMSの活用方法を無限に広げることができるとても魅力的な機能だ。
**
閑話休題。
大学にいた頃はZopeというCMSが気に入っていてよく遊んでいた。
これはLinuxやWindowsの上でサービスとして動作するウェブアプリケーションサーバーで、いくつか斬新な機構を持っている。
まず"acquisition"というのがそれで、Zope内ではディレクトリ階層(ZopeではCMSに特化した独自のファイルシステムを使っている!!)の上にあるものが全て下位の階層で利用できる、という特徴がある。
つまり、汎用的なヘッダー/フッター/エラーページなどを上位階層に置いておくだけで下位階層から読み出しが可能だったりして、当時は「おぉ!こんなに簡単にウェブアプリが作れる!」と感心した記憶がある。
大学の卒論でも取り上げたし、その延長線上で今は映画レビューサイトに応用したりしている。
ただ、この映画レビューサイトを実現しているからくり(Zopeでは"Product"と呼ぶ)は汎用的なデータベースをウェブから使えることを意識して作っていたものだったので、現実的には作りこむ作業を放棄した残骸であったりする・・・。
**
で、実はMDOxで実現しているTemplate Variableという仕組みこそ僕が自分で実現しようと思っていた、データ形式とプレゼンテーション方式を抽象的に定義したデータ単位をウェブ用に特化したもので、このコンセプトを理解した時の個人的な感動を他の人に伝えるのはとても難しいものがある・・・。
MODx自体まだバージョン0.90と発展途上で取っつきにくいところもあるのだけれど、これから将来がとても楽しみなソフトウェアだ。
管理ページを日本語化する言語ファイルは本家フォーラムで配布されているので、その辺が心配な人でも多分大丈夫だろう。
The comments to this entry are closed.
Comments
Yes, really.
Posted by: MesyGuef-web | 2010.07.13 02:28 AM
payday advance online ’ https://www.lahecashadvanceloans.com/ payday loans near me
Posted by: XdjlooZF | 2017.05.02 06:13 AM
payday loan online ’
https://vekpaydayadvanceloanssamepayday.com/
Posted by: cnypid | 2017.05.10 11:00 AM
Posted by: LodwepenWC | 2017.05.11 08:55 AM
Posted by: LodwepenWC | 2017.05.11 08:55 AM
online payday loan ’
https://berpaydayloanlendersquickloans.com/
Posted by: LodwepenWC | 2017.05.11 08:56 AM
I enjoy this website - its so usefull and helpfull.
Posted by: FvtnyWeevy | 2017.10.06 06:06 AM
I enjoy this website - its so usefull and helpfull.
Posted by: FvtnyWeevy | 2017.10.06 06:07 AM
I enjoy this website - its so usefull and helpfull.
Posted by: FvtnyWeevy | 2017.10.06 06:07 AM
The stuff is quite appealing.
Posted by: Nsbstoni | 2017.10.06 04:14 PM
I like this site - its so usefull and helpfull.
Posted by: Lbeulcruita | 2017.10.06 06:15 PM
Posted by: Thomasidera | 2018.07.26 04:52 AM
Hе
Posted by: Thomasidera | 2018.07.26 04:53 AM
????????????????????????????
http://feedbharke26.wordpress.com
Posted by: Julian2002 | 2018.09.04 05:45 AM
??????????????????????????????????
Posted by: Miguel03 | 2018.09.07 04:56 PM
Hey. Soon your hosting account and your domain coffeemilk.cocolog-nifty.com will be blocked forever, and you will receive tens of thousands of negative feedback from angry people.
Pay me 0.5 BTC until June 1, 2019.
Otherwise, you will get the reputation of a malicious spammer, your site coffeemilk.cocolog-nifty.com will be blocked for life and you will be sued for insulting believers. I guarantee this to you.
My bitcoin wallet:19ckouUP2E22aJR5BPFdf7jP2oNXR3bezL
Here is a list of what you get if you don’t follow my requirements:
+ abuse spamhouse for aggressive web spam
+ tens of thousands of negative reviews about you and your website from angry people for aggressive web and email spam
+ lifetime blocking of your hosting account for aggressive web and email spam
+ lifetime blocking of your domain for aggressive web and email spam
+ Thousands of angry complaints from angry people will come to your mail and messengers for sending you a lot of spam
+ complete destruction of your reputation and loss of clients forever
+ for a full recovery from the damage you need tens of thousands of dollars
All of the above will result in blocking your domain and hosting account for life. The price of your peace of mind is 0.5 BTC.
Do you want this?
If you do not want the above problems, then before June 1, 2019, you need to send me 0.5 BTC to my Bitcoin wallet: 19ckouUP2E22aJR5BPFdf7jP2oNXR3bezL
How do I do all this to get this result:
1. I will send messages to 33 000 000 sites with contact forms with offensive messages with the address of your site, that is, in this situation, you and the spammer and insult people.
And everyone will not care that it is not you.
2. I’ll send messages to 19,000,000 email addresses and very intrusive advertisements for making money and offer a free iPhone with your website address coffeemilk.cocolog-nifty.com and your contact details.
And then send out abusive messages with the address of your site.
3. I will do aggressive spam on blogs, forums and other sites (in my database there are 35 978 370 sites and 315 900 sites from which you will definitely get a huge amount of abuse) of your site coffeemilk.cocolog-nifty.com.
After such spam, the spamhouse will turn its attention on you and after several abuses your host will be forced to block your account for life.
Your domain registrar will also block your domain permanently.
All of the above will result in blocking your domain and hosting account for life.
If you do not want to receive thousands of complaints from users and your hosting provider, then pay before June 1, 2019.
The price of your peace of mind is 0.5 BTC.
Otherwise, I will send your site through tens of millions of sites that will lead to the blocking of your site for life and you will lose everything and your reputation as well.
But get a reputation as a malicious spammer.
My bitcoin wallet:19ckouUP2E22aJR5BPFdf7jP2oNXR3bezL
Posted by: Shawnsiz | 2019.05.26 04:22 PM
Hey. Soon your hosting account and your domain coffeemilk.cocolog-nifty.com will be blocked forever, and you will receive tens of thousands of negative feedback from angry people.
Pay me 0.5 BTC until June 1, 2019.
Otherwise, you will get the reputation of a malicious spammer, your site coffeemilk.cocolog-nifty.com will be blocked for life and you will be sued for insulting believers. I guarantee this to you.
My bitcoin wallet:19ckouUP2E22aJR5BPFdf7jP2oNXR3bezL
Here is a list of what you get if you don’t follow my requirements:
+ abuse spamhouse for aggressive web spam
+ tens of thousands of negative reviews about you and your website from angry people for aggressive web and email spam
+ lifetime blocking of your hosting account for aggressive web and email spam
+ lifetime blocking of your domain for aggressive web and email spam
+ Thousands of angry complaints from angry people will come to your mail and messengers for sending you a lot of spam
+ complete destruction of your reputation and loss of clients forever
+ for a full recovery from the damage you need tens of thousands of dollars
All of the above will result in blocking your domain and hosting account for life. The price of your peace of mind is 0.5 BTC.
Do you want this?
If you do not want the above problems, then before June 1, 2019, you need to send me 0.5 BTC to my Bitcoin wallet: 19ckouUP2E22aJR5BPFdf7jP2oNXR3bezL
How do I do all this to get this result:
1. I will send messages to 33 000 000 sites with contact forms with offensive messages with the address of your site, that is, in this situation, you and the spammer and insult people.
And everyone will not care that it is not you.
2. I’ll send messages to 19,000,000 email addresses and very intrusive advertisements for making money and offer a free iPhone with your website address coffeemilk.cocolog-nifty.com and your contact details.
And then send out abusive messages with the address of your site.
3. I will do aggressive spam on blogs, forums and other sites (in my database there are 35 978 370 sites and 315 900 sites from which you will definitely get a huge amount of abuse) of your site coffeemilk.cocolog-nifty.com.
After such spam, the spamhouse will turn its attention on you and after several abuses your host will be forced to block your account for life.
Your domain registrar will also block your domain permanently.
All of the above will result in blocking your domain and hosting account for life.
If you do not want to receive thousands of complaints from users and your hosting provider, then pay before June 1, 2019.
The price of your peace of mind is 0.5 BTC.
Otherwise, I will send your site through tens of millions of sites that will lead to the blocking of your site for life and you will lose everything and your reputation as well.
But get a reputation as a malicious spammer.
My bitcoin wallet:19ckouUP2E22aJR5BPFdf7jP2oNXR3bezL
Posted by: JoshuaBem | 2019.05.26 04:22 PM
Hey. Soon your hosting account and your domain coffeemilk.cocolog-nifty.com will be blocked forever, and you will receive tens of thousands of negative feedback from angry people.
Pay me 0.5 BTC until June 1, 2019.
Otherwise, you will get the reputation of a malicious spammer, your site coffeemilk.cocolog-nifty.com will be blocked for life and you will be sued for insulting believers. I guarantee this to you.
My bitcoin wallet:19ckouUP2E22aJR5BPFdf7jP2oNXR3bezL
Here is a list of what you get if you don’t follow my requirements:
+ abuse spamhouse for aggressive web spam
+ tens of thousands of negative reviews about you and your website from angry people for aggressive web and email spam
+ lifetime blocking of your hosting account for aggressive web and email spam
+ lifetime blocking of your domain for aggressive web and email spam
+ Thousands of angry complaints from angry people will come to your mail and messengers for sending you a lot of spam
+ complete destruction of your reputation and loss of clients forever
+ for a full recovery from the damage you need tens of thousands of dollars
All of the above will result in blocking your domain and hosting account for life. The price of your peace of mind is 0.5 BTC.
Do you want this?
If you do not want the above problems, then before June 1, 2019, you need to send me 0.5 BTC to my Bitcoin wallet: 19ckouUP2E22aJR5BPFdf7jP2oNXR3bezL
How do I do all this to get this result:
1. I will send messages to 33 000 000 sites with contact forms with offensive messages with the address of your site, that is, in this situation, you and the spammer and insult people.
And everyone will not care that it is not you.
2. I’ll send messages to 19,000,000 email addresses and very intrusive advertisements for making money and offer a free iPhone with your website address coffeemilk.cocolog-nifty.com and your contact details.
And then send out abusive messages with the address of your site.
3. I will do aggressive spam on blogs, forums and other sites (in my database there are 35 978 370 sites and 315 900 sites from which you will definitely get a huge amount of abuse) of your site coffeemilk.cocolog-nifty.com.
After such spam, the spamhouse will turn its attention on you and after several abuses your host will be forced to block your account for life.
Your domain registrar will also block your domain permanently.
All of the above will result in blocking your domain and hosting account for life.
If you do not want to receive thousands of complaints from users and your hosting provider, then pay before June 1, 2019.
The price of your peace of mind is 0.5 BTC.
Otherwise, I will send your site through tens of millions of sites that will lead to the blocking of your site for life and you will lose everything and your reputation as well.
But get a reputation as a malicious spammer.
My bitcoin wallet:19ckouUP2E22aJR5BPFdf7jP2oNXR3bezL
Posted by: MelvinBlero | 2019.05.26 04:22 PM
Hey. Soon your hosting account and your domain coffeemilk.cocolog-nifty.com will be blocked forever, and you will receive tens of thousands of negative feedback from angry people.
Pay me 0.5 BTC until June 1, 2019.
Otherwise, you will get the reputation of a malicious spammer, your site coffeemilk.cocolog-nifty.com will be blocked for life and you will be sued for insulting believers. I guarantee this to you.
My bitcoin wallet:19ckouUP2E22aJR5BPFdf7jP2oNXR3bezL
Here is a list of what you get if you don’t follow my requirements:
+ abuse spamhouse for aggressive web spam
+ tens of thousands of negative reviews about you and your website from angry people for aggressive web and email spam
+ lifetime blocking of your hosting account for aggressive web and email spam
+ lifetime blocking of your domain for aggressive web and email spam
+ Thousands of angry complaints from angry people will come to your mail and messengers for sending you a lot of spam
+ complete destruction of your reputation and loss of clients forever
+ for a full recovery from the damage you need tens of thousands of dollars
All of the above will result in blocking your domain and hosting account for life. The price of your peace of mind is 0.5 BTC.
Do you want this?
If you do not want the above problems, then before June 1, 2019, you need to send me 0.5 BTC to my Bitcoin wallet: 19ckouUP2E22aJR5BPFdf7jP2oNXR3bezL
How do I do all this to get this result:
1. I will send messages to 33 000 000 sites with contact forms with offensive messages with the address of your site, that is, in this situation, you and the spammer and insult people.
And everyone will not care that it is not you.
2. I’ll send messages to 19,000,000 email addresses and very intrusive advertisements for making money and offer a free iPhone with your website address coffeemilk.cocolog-nifty.com and your contact details.
And then send out abusive messages with the address of your site.
3. I will do aggressive spam on blogs, forums and other sites (in my database there are 35 978 370 sites and 315 900 sites from which you will definitely get a huge amount of abuse) of your site coffeemilk.cocolog-nifty.com.
After such spam, the spamhouse will turn its attention on you and after several abuses your host will be forced to block your account for life.
Your domain registrar will also block your domain permanently.
All of the above will result in blocking your domain and hosting account for life.
If you do not want to receive thousands of complaints from users and your hosting provider, then pay before June 1, 2019.
The price of your peace of mind is 0.5 BTC.
Otherwise, I will send your site through tens of millions of sites that will lead to the blocking of your site for life and you will lose everything and your reputation as well.
But get a reputation as a malicious spammer.
My bitcoin wallet:19ckouUP2E22aJR5BPFdf7jP2oNXR3bezL
Posted by: WilliamZek | 2019.05.26 04:22 PM
Hey. Soon your hosting account and your domain coffeemilk.cocolog-nifty.com will be blocked forever, and you will receive tens of thousands of negative feedback from angry people.
Pay me 0.5 BTC until June 1, 2019.
Otherwise, you will get the reputation of a malicious spammer, your site coffeemilk.cocolog-nifty.com will be blocked for life and you will be sued for insulting believers. I guarantee this to you.
My bitcoin wallet:19ckouUP2E22aJR5BPFdf7jP2oNXR3bezL
Here is a list of what you get if you don’t follow my requirements:
+ abuse spamhouse for aggressive web spam
+ tens of thousands of negative reviews about you and your website from angry people for aggressive web and email spam
+ lifetime blocking of your hosting account for aggressive web and email spam
+ lifetime blocking of your domain for aggressive web and email spam
+ Thousands of angry complaints from angry people will come to your mail and messengers for sending you a lot of spam
+ complete destruction of your reputation and loss of clients forever
+ for a full recovery from the damage you need tens of thousands of dollars
All of the above will result in blocking your domain and hosting account for life. The price of your peace of mind is 0.5 BTC.
Do you want this?
If you do not want the above problems, then before June 1, 2019, you need to send me 0.5 BTC to my Bitcoin wallet: 19ckouUP2E22aJR5BPFdf7jP2oNXR3bezL
How do I do all this to get this result:
1. I will send messages to 33 000 000 sites with contact forms with offensive messages with the address of your site, that is, in this situation, you and the spammer and insult people.
And everyone will not care that it is not you.
2. I’ll send messages to 19,000,000 email addresses and very intrusive advertisements for making money and offer a free iPhone with your website address coffeemilk.cocolog-nifty.com and your contact details.
And then send out abusive messages with the address of your site.
3. I will do aggressive spam on blogs, forums and other sites (in my database there are 35 978 370 sites and 315 900 sites from which you will definitely get a huge amount of abuse) of your site coffeemilk.cocolog-nifty.com.
After such spam, the spamhouse will turn its attention on you and after several abuses your host will be forced to block your account for life.
Your domain registrar will also block your domain permanently.
All of the above will result in blocking your domain and hosting account for life.
If you do not want to receive thousands of complaints from users and your hosting provider, then pay before June 1, 2019.
The price of your peace of mind is 0.5 BTC.
Otherwise, I will send your site through tens of millions of sites that will lead to the blocking of your site for life and you will lose everything and your reputation as well.
But get a reputation as a malicious spammer.
My bitcoin wallet:19ckouUP2E22aJR5BPFdf7jP2oNXR3bezL
Posted by: Brandonhah | 2019.05.26 06:11 PM
Hey. Soon your hosting account and your domain coffeemilk.cocolog-nifty.com will be blocked forever, and you will receive tens of thousands of negative feedback from angry people.
Pay me 0.5 BTC until June 1, 2019.
Otherwise, you will get the reputation of a malicious spammer, your site coffeemilk.cocolog-nifty.com will be blocked for life and you will be sued for insulting believers. I guarantee this to you.
My bitcoin wallet:19ckouUP2E22aJR5BPFdf7jP2oNXR3bezL
Here is a list of what you get if you don’t follow my requirements:
+ abuse spamhouse for aggressive web spam
+ tens of thousands of negative reviews about you and your website from angry people for aggressive web and email spam
+ lifetime blocking of your hosting account for aggressive web and email spam
+ lifetime blocking of your domain for aggressive web and email spam
+ Thousands of angry complaints from angry people will come to your mail and messengers for sending you a lot of spam
+ complete destruction of your reputation and loss of clients forever
+ for a full recovery from the damage you need tens of thousands of dollars
All of the above will result in blocking your domain and hosting account for life. The price of your peace of mind is 0.5 BTC.
Do you want this?
If you do not want the above problems, then before June 1, 2019, you need to send me 0.5 BTC to my Bitcoin wallet: 19ckouUP2E22aJR5BPFdf7jP2oNXR3bezL
How do I do all this to get this result:
1. I will send messages to 33 000 000 sites with contact forms with offensive messages with the address of your site, that is, in this situation, you and the spammer and insult people.
And everyone will not care that it is not you.
2. I’ll send messages to 19,000,000 email addresses and very intrusive advertisements for making money and offer a free iPhone with your website address coffeemilk.cocolog-nifty.com and your contact details.
And then send out abusive messages with the address of your site.
3. I will do aggressive spam on blogs, forums and other sites (in my database there are 35 978 370 sites and 315 900 sites from which you will definitely get a huge amount of abuse) of your site coffeemilk.cocolog-nifty.com.
After such spam, the spamhouse will turn its attention on you and after several abuses your host will be forced to block your account for life.
Your domain registrar will also block your domain permanently.
All of the above will result in blocking your domain and hosting account for life.
If you do not want to receive thousands of complaints from users and your hosting provider, then pay before June 1, 2019.
The price of your peace of mind is 0.5 BTC.
Otherwise, I will send your site through tens of millions of sites that will lead to the blocking of your site for life and you will lose everything and your reputation as well.
But get a reputation as a malicious spammer.
My bitcoin wallet:19ckouUP2E22aJR5BPFdf7jP2oNXR3bezL
Posted by: RichieGus | 2019.05.26 06:11 PM
Hey. Soon your hosting account and your domain coffeemilk.cocolog-nifty.com will be blocked forever, and you will receive tens of thousands of negative feedback from angry people.
Pay me 0.5 BTC until June 1, 2019.
Otherwise, you will get the reputation of a malicious spammer, your site coffeemilk.cocolog-nifty.com will be blocked for life and you will be sued for insulting believers. I guarantee this to you.
My bitcoin wallet:19ckouUP2E22aJR5BPFdf7jP2oNXR3bezL
Here is a list of what you get if you don’t follow my requirements:
+ abuse spamhouse for aggressive web spam
+ tens of thousands of negative reviews about you and your website from angry people for aggressive web and email spam
+ lifetime blocking of your hosting account for aggressive web and email spam
+ lifetime blocking of your domain for aggressive web and email spam
+ Thousands of angry complaints from angry people will come to your mail and messengers for sending you a lot of spam
+ complete destruction of your reputation and loss of clients forever
+ for a full recovery from the damage you need tens of thousands of dollars
All of the above will result in blocking your domain and hosting account for life. The price of your peace of mind is 0.5 BTC.
Do you want this?
If you do not want the above problems, then before June 1, 2019, you need to send me 0.5 BTC to my Bitcoin wallet: 19ckouUP2E22aJR5BPFdf7jP2oNXR3bezL
How do I do all this to get this result:
1. I will send messages to 33 000 000 sites with contact forms with offensive messages with the address of your site, that is, in this situation, you and the spammer and insult people.
And everyone will not care that it is not you.
2. I’ll send messages to 19,000,000 email addresses and very intrusive advertisements for making money and offer a free iPhone with your website address coffeemilk.cocolog-nifty.com and your contact details.
And then send out abusive messages with the address of your site.
3. I will do aggressive spam on blogs, forums and other sites (in my database there are 35 978 370 sites and 315 900 sites from which you will definitely get a huge amount of abuse) of your site coffeemilk.cocolog-nifty.com.
After such spam, the spamhouse will turn its attention on you and after several abuses your host will be forced to block your account for life.
Your domain registrar will also block your domain permanently.
All of the above will result in blocking your domain and hosting account for life.
If you do not want to receive thousands of complaints from users and your hosting provider, then pay before June 1, 2019.
The price of your peace of mind is 0.5 BTC.
Otherwise, I will send your site through tens of millions of sites that will lead to the blocking of your site for life and you will lose everything and your reputation as well.
But get a reputation as a malicious spammer.
My bitcoin wallet:19ckouUP2E22aJR5BPFdf7jP2oNXR3bezL
Posted by: PatrickRek | 2019.05.26 06:11 PM