Untitled
http://www.urbanfonts.com/fonts/Infinite_Justice.htm Nucleusバナーのフォント分かった。「Infinite Justice」というフォント。
<p><%Podcast(mypodcasting.mp3|the podcast mp3 here)%></p> tinyをアンインストするとこんな感じ。そのまんまタグが書けてる。トリガー用の「@」もない
<p>@<%Podcast(mypodcasting.mp3|the podcast mp3 here)%></p> tinyのソース編集ダイアログではこんな感じ
@shizuki_ @791127 とりあえず一覧
#actionlog 管理操作履歴ページ
#activate Activate
#activatesetpwd Set Activate password
#addnewlog 新規ブログ作成(確認)ページ
#adminerrorpage 管理エリアエラーページ
#adminskindelete adminskindelete
#adminskinedit 管理エリアスキンの編集ページ
#adminskinedittype adminskinedittype
#adminskinoverview 管理エリアスキン一覧ページ
#backupoverview Backup overview
#backuprestore DB保存/復元ページ
#banlist アク禁リストページ
#banlistdelete アク禁リストの削除ページ
#banlistdeleteconfirm アク禁リストの削除の確認ページ
#banlistnew アク禁リストの追加ページ
#batchcategory カテゴリのバッチ処理ページ
#batchcomment コメントのバッチ処理ページ
#batchdelete バッチ削除処理ページ
#batchitem アイテムのバッチ処理ページ
#batchmember メンバーのバッチ処理ページ
#batchmove Batch move select destination
#batchteam Batch Team
#blogcommentlist Blog comment list
#blogselectbox Blog select for new Item
#blogsettings Blog settings
#bookmarklet Explanation Bookmarklet
#browseowncomments Browse own Comments
#browseownitems Browse own Items
#categorydelete Delete Categories
#categoryedit Edit Categories
#commentdelete Delete Comment
#commentedit Edit Comment
#createnewlog Create Blog
#deleteblog Delete Blog
#editmembersettings Edit Member settings
#insertpluginoptions Show Plugin options
#itemcommentlist Comment to an Item
#itemdelete Delete Item
#itemlist Item list
#itemmove Move Item
#manage Management NucleusCMS
#manageteam Management Team
#memberdelete Delete Member
#overview Overview
#pagefoot Page foot
#pagehead Page head
#plugindelete Delete Plugins
#pluginhelp Plugin help page
#pluginlist Plugin list
#pluginoptions Options for Plugins
#settingsedit Edit configurations
#showlogin ADMIN area Login form
#skindelete Delete Skin
#skinedit Edit Skin
#skinedittype Edit a Skin type
#skiniedoimport Import Skin do!
#skinieimport Import Skin
#skinieoverview Skin import export overview
#skinoverview Skin overview
#skinremovetype Remove special Skin type
#systemoverview System overview
#teamdelete Delete Team
#templatedelete Delete Template
#templateedit Edit Template
#templateoverview Template overview
#usermanagement Management Member
う。インストール失敗
http://nucleus-private.googlecode.com/svn/branches/NewAdminArea/
上記からエクスポート
mySQL error with query INSERT INTO `nucleus_member` VALUES ( 1, /* mnumber */ ‘example’, /* mname */ ‘example’, /* mrealname */ ‘1a79a4d60de6718e8e5b326e338ae533’, /* mpassword */ ‘example@example.org’, /* memail */ ‘http://localhost:8080/nucleus/’, /* murl */ ”, /* mnotes */ 1, /* madmin */ 1, /* mcanlogin */ ‘d767aefc60415859570d64c649257f19’, /* mcookiekey */ ”, /* deflang */ 1, /* mautosave */ 5 /* defadskin */ ): Column count doesn’t match value count at row 1 エラー! エラーメッセージは次の通りです: “クエリの実行中にエラーが発生しました: (INSERT INTO `nucleus_member` VALUES ( 1, /* mnumber */ ‘example’, /* mname */ ‘example’, /* mrealname */ ‘1a79a4d60de6718e8e5b326e338ae533’, /* mpassword */ ‘example@example.org’, /* memail */ ‘http://localhost:8080/nucleus/’, /* murl */ ”, /* mnotes */ 1, /* madmin */ 1, /* mcanlogin */ ‘d767aefc60415859570d64c649257f19’, /* mcookiekey */ ”, /* deflang */ 1, /* mautosave */ 5 /* defadskin */ )): Column count doesn’t match value count at row 1”; 戻る
http://farm4.static.flickr.com/3538/3805665269_061008cda3_o.png
対象領域のIDがcontentであることを確認
http://farm4.static.flickr.com/3558/3805665329_433cce2c46_o.png
content領域専用のスタイルシートを作る。これをサイトとTinyMCEで共有する
http://farm3.static.flickr.com/2671/3805665337_b2049fda5f_o.png
TinyMCEプラグインの設定タブでこのように設定する
http://farm4.static.flickr.com/3542/3805665349_76cef3323d_o.png
Tools→System configurationの「Path to CSS file」でこのように設定
http://farm3.static.flickr.com/2491/3805665351_93e073b954_o.png
MODxHostテンプレートにcontent領域のスタイルシート読み込みを追記
※にっくさんへ
Jiraでは画像のURLを「!」ではさむと、画像がそのままインラインで表示されます。下記文面はすでに「!」ではさんでます
——————————————————————-
開発チームのみなさんはご存じのことと思いますが、投稿画面のtextareaは自由にカスタマイズすることができます。
!http://farm3.static.flickr.com/2557/3802793543_3aa5d529a2_o.png!
デフォルトではこのようになっていますが
!http://farm3.static.flickr.com/2424/3802793547_380cc4a8cd_o.png!
このようにカスタマイズできます。
方法は簡単、Tools→System configurationの「Path to CSS file」に投稿画面用のスタイルシートファイルのパスを記述するだけです。
※スタイルシートのパスを仮想パスで記述する場合は、下記の対応が必要です。
http://svn.modxcms.com/jira/browse/TINYMCE-21
しかし多くのユーザは、このようなカスタマイズが可能であることに気付いてません。MODxインストール直後のデフォルトでこのようなカスタマイズを施しておくことで、「どうやってこのようなカスタマイズを実現しているのか?」という興味と関心を呼び起こすことができます。
今回提案する方法は、サイトで利用しているスタイルシートと投稿画面で用いるスタイルシートを共用するノウハウです。この方法は実際に試してみてうまくいかなかった人がきっと多いと思います。
以下に解説します。もしよければ日本チームでファイル一式を作って提供します。
●参考サイト
http://wiki.moxiecode.com/index.php/TinyMCE:Configuration/body_id
http://wiki.moxiecode.com/index.php/TinyMCE:Configuration/body_class (今回は使わない)
http://wiki.moxiecode.com/index.php/TinyMCE:Configuration/content_css
(MODxでは「Path to CSS file」として、すでに実装済み)
●考え方
投稿画面をカスタマイズするには、基本的にはTinyMCEのcontent_cssオプションで関連づけられたスタイルシートにスタイルを定義します。この場合、少し考えると分かると思いますが、セレクタ表現を用いることはできません。たとえば「class=contentブロックの中のp要素」といった指定を入れると、その指定は投稿画面には反映されません。
http://wiki.moxiecode.com/index.php/TinyMCE:Configuration/content_css
上記ページの末尾を見ると分かると思いますが、TinyMCEの投稿画面は仮想的に「body.mceContentBody」の直下に出力されていることになっています。この「.mceContentBody」の部分を、サイトのスタイルシートと合わせるとよいでしょう。
http://wiki.moxiecode.com/index.php/TinyMCE:Configuration/body_id
上記オプションを指定することで、「.mceContentBody」を、MODxHostテンプレートで利用されている「#content」に置き換えることができます。
●手順
「content.css」などの適当な名前でスタイルシートを新規作成し、MODxHostディレクトリ内に置きます。そしてMODxHostテンプレートで利用されているlayout.cssを開き、#content関係の記述を全てcontent.cssに移動します。
!http://farm4.static.flickr.com/3459/3802880673_9525822058_o.png!
次に、TinyMCEプラグインの設定画面を開き、Configurationタブの「Custom Parameters」に「body_id : “content”,」と記述します。
次に、Tools→System configurationの「Path to CSS file」に、content.cssのパスを設定します。
この時点で投稿画面のスタイルは適用されています。
次に、MODxHostテンプレートの編集画面を開き、
<link rel=”stylesheet” href=”assets/templates/modxhost/content.css” type=”text/css” media=”screen” />
このように追記します。
以上で、サイトと投稿画面で共用できるスタイルシートの作成と、その共用設定は完了です。
そして、これらの設定がMODx導入時に適用されるように、MODxのインストーラを改修します。
MODxドキュメント変数一覧。忘れやすいのでメモ
※tumblerがシングルクォート・ダブルクォートを変に処理するためコピペしても動かないので注意
$modx->documentObject[‘id’]
$modx->documentObject[‘type’]
$modx->documentObject[‘contentType’]
$modx->documentObject[‘pagetitle’]
$modx->documentObject[‘longtitle’]
$modx->documentObject[‘description’]
$modx->documentObject[‘alias’]
$modx->documentObject[‘link_attributes’]
$modx->documentObject[‘published’]
$modx->documentObject[‘pub_date’]
$modx->documentObject[‘unpub_date’]
$modx->documentObject[‘parent’]
$modx->documentObject[‘isfolder’]
$modx->documentObject[‘introtext’]
$modx->documentObject[‘content’]
$modx->documentObject[‘richtext’]
$modx->documentObject[‘template’]
$modx->documentObject[‘menuindex’]
$modx->documentObject[‘searchable’]
$modx->documentObject[‘cacheable’]
$modx->documentObject[‘createdby’]
$modx->documentObject[‘createdon’]
$modx->documentObject[‘editedby’]
$modx->documentObject[‘editedon’]
$modx->documentObject[‘deleted’]
$modx->documentObject[‘deletedon’]
$modx->documentObject[‘deletedby’]
$modx->documentObject[‘publishedon’]
$modx->documentObject[‘publishedby’]
$modx->documentObject[‘menutitle’]
$modx->documentObject[‘donthit’]
$modx->documentObject[‘haskeywords’]
$modx->documentObject[‘hasmetatags’]
$modx->documentObject[‘privateweb’]
$modx->documentObject[‘privatemgr’]
$modx->documentObject[‘content_dispo’]
$modx->documentObject[‘hidemenu’]
こう
<h2>メール送信フォーム</h2>
<form method=”post” name=”itemformmail”>
●お名前: <input type=”text” name=”名前” />
●おところ: <input type=”text” name=”住所” />
●コメント: <textarea name=”コメント” cols=”20” rows=”5”></textarea>
●地域: <select name=”地域”>
<option value=”“>選択してください
<option value=”東京”>東京</option>
<option value=”大阪”>大阪</option>
<option value=”名古屋”>名古屋</option>
<option value=”福岡”>福岡</option>
<option value=”その他”>その他</option>
</select>
●性別: <input type=”radio” name=”性別” value=”男性” />男性
<input type=”radio” name=”性別” value=”女性” checked />女性
●未成年?: <input type=”checkbox” name=”未成年?” value=”未成年” />未成年
●E-Mail: <input type=”text” name=”メールアドレス” />
●確認用: <input type=”text” name=”確認入力” />
<input type=”hidden” name=”option:sendmail” value=”true” />
<input type=”hidden” name=”option:subject” value=”ホームページからの送信” />
<input type=”hidden” name=”option:from” value=”名前” />
<input type=”hidden” name=”option:email” value=”メールアドレス” />
<input type=”hidden” name=”option:confirm” value=”確認入力” />
<input type=”hidden” name=”option:preview” value=”名前,メールアドレス,住所,コメント,地域,性別,未成年?” />
<input type=”hidden” name=”option:need” value=”コメント,地域” />
<input type=”hidden” name=”option:thanksmessage” value=”%more%” />
<input type=”submit” value=”送 信” />
<input type=”reset” value=”リセット” />
</form>