hypweb.net
XOOPSマニア  最新情報のRSS(サイト全体)
[ 自宅サーバーWebRing |ID=54 前後5表示乱移動サイト一覧 ]

TOP » xpwiki » xpWiki開発日記 » 2008-01-22

2008 1月 22 (火)
 

Ver 3.58 - 3.58.1 (レベル単位の段落編集と付箋のLightBox対応、タイトル設定書式追加など) anchor.png Edit

Page Top

レベル単位の段落編集 anchor.png Edit

段落編集での編集範囲は従来は「次の見出しまで」でしたが、これに加えて「同レベル以上の見出し行まで」を選択できるようにしました。

設定は、pukiwiki.ini.php で行います。

  • pukiwiki.ini.php
    1
    2
    3
    4
    5
    
    /////////////////////////////////////////////////
    // enable paraedit 
    $root->fixed_heading_anchor_edit = 1;
    // part-edit area - 'compat':PukiWiki 1.4.4 compat, 'level':level
    $root->paraedit_partarea = 'compat';
    • fixed_heading_anchor_edit は従来からある設定項目です。
      編集範囲の切り替えは、paraedit_partarea で行います。
      • compat: 従来どおり編集範囲は次の見出し行まで。
      • level: 編集範囲は同レベル以上の見出し行まで。
  • $root->paraedit_partarea = 'level'; とした場合、見出しレベルでの字下げスタイルを、compat と同様にするには、main.css をオーバーライトする必要があります。
    • [html側モジュールディレクトリ]/skin/css/main.css に追加するCSS
      Everything is expanded.Everything is shortened.
       1
       2
       3
       4
       5
       6
       7
       8
       9
      10
      11
      12
      13
      14
      15
      16
      17
      18
      19
      20
      21
      22
      23
      24
      
      -
      |
      !
      -
      |
      !
      -
      |
      !
      -
      |
      !
      -
      |
      !
      -
      |
      !
      -
      |
      !
      -
      |
      !
      
      $class div.level3 {
          margin-left: 1em;
      }
      $class div.level4 {
          margin-left: 1em;
      }
      $class div.level5 {
          margin-left: 1em;
      }
      $class div.level6 {
          margin-left: 1em;
      }
      $class div.level3_highlight {
          margin-left: 1em;
      }
      $class div.level4_highlight {
          margin-left: 1em;
      }
      $class div.level5_highlight {
          margin-left: 1em;
      }
      $class div.level6_highlight {
          margin-left: 1em;
      }
Page Top

付箋(fusen)プラグインの LightBox 対応 anchor.png Edit

付箋の中で、ref プラグインで画像サムネイルを表示した場合に、ページ内と同様に LightBox を使ってイメージ表示するようにしました。

Page Top

タイトル設定書式の追加 anchor.png Edit

ページタイトルは、従来最初の見出し行から得ていましたが、ページタイトルを設定できる書式を pukiwiki.ini.php にて設定できるようにしました。

デフォルトは TITLE: に設定してあります。ページ内で行頭から TITLE:ページのタイトル と記述することで、ページタイトルに「ページのタイトル」と設定されます。

  • pukiwiki.ini.php
    1
    2
    3
    
    // Specifies title formatting rule. (Regex)
    // The first pattern match part is used.
    $root->title_setting_regex = '/^TITLE:(.*)$/m';
    • 無効にするには
      $root->title_setting_regex = '';
      とします。
Page Top

CVS 更新内容 anchor.png Edit

+  今回の更新分
  • 2008-01-22 19:08 nao-pon
    • * xoops_version.php (1.285):
      • Version 3.58.1
  • 2008-01-22 19:07 nao-pon
    • * class/func/xpwiki_func.php (1.139), class/convert_html.php (1.23), ini/pukiwiki.ini.php (1.62):
      • Added config in pukiwiki.ini.php.
        // Specifies title formatting rule. (Regex)
        // The first pattern match part is used.
        $root->title_setting_regex = '/^TITLE:(.*)$/m';
  • 2008-01-22 08:50 nao-pon
    • * xoops_version.php (1.284):
      • Version 3.58
  • 2008-01-22 08:49 nao-pon
    • * skin/js/: fusen.js (1.9), lightbox.js (1.12):
      • Enabled lightbox on FUSEN.
  • 2008-01-22 08:49 nao-pon
    • * plugin/fusen.inc.php (1.13):
      • Bugfix, About missing '~\n' at editing.
  • 2008-01-22 08:47 nao-pon
    • * class/convert_html.php (1.22), class/func/xpwiki_func.php (1.138), ini/pukiwiki.ini.php (1.61):
      • Added a config 'root->paraedit_partarea' in pukiwiki.ini.php. ( compat or level, default: compat)
  • 2008-01-22 08:43 nao-pon
    • * class/config.php (1.4), class/func/pukiwiki_func.php (1.140), plugin/edit.inc.php (1.52), plugin/ls.inc.php (1.4), plugin/ls2.inc.php (1.9), plugin/menu.inc.php (1.5), plugin/tracker.inc.php (1.15), skin/css/main.css (1.12):
      • '*' of "<h>" format is five characters or less.
Page Top

一行コメント anchor.png Edit




トップ   編集 凍結 差分 バックアップ 添付 複製 名前変更 リロード印刷に適した表示   ページ新規作成 全ページ一覧 単語検索 最新ページの一覧   ヘルプ   最新ページのRSS 1.0 最新ページのRSS 2.0 最新ページのRSS Atom Powered by xpWiki
Counter: 170, today: 1, yesterday: 0
初版日時: 2008-01-22 (火) 23:04:03
最終更新: 2008-10-13 (月) 14:19:53 (JST) (5646d) by nao-pon
このページのTopへ
メインメニュー
ログイン

ユーザー名:


パスワード:





パスワード紛失  |新規登録
オンライン状況
545 人のユーザが現在オンラインです。 (4 人のユーザが xpwiki を参照しています。)

登録ユーザ: 0
ゲスト: 545

もっと...
サイト情報