Top > MODx

TokyoBlog MODx CMS

CMS¡¡¥·¥ó¥×¥ëɽ¼¨¤Ç¹âµ¡Ç½

  • ÌÌÇò¤¤µ¡Ç½¤¬¤¢¤ê¡¢W3CÂбþ¤Î¥µ¥¤¥Èºî¤ê¤¬²Äǽ
  • Èó¾ï¤Ë½ÀÆð¤ÊWEB¡¡Contents¡¡Management¡¡System¡¡(CMS)
    • ¥á¥¤¥ó¥³¥ó¥Æ¥ó¥Ä¥¨¥ê¥¢¤¬°ì¤Ä
    • ¤½¤Î¾¤Î¥¨¥ê¥¢¤Ï¥Æ¥ó¥×¥ì¡¼¥ÈÊÑ¿ô¤Ç¹½ÃÛ¡ÊÄžå¤Ï¦ÌÌ¡¢¤Ç¤â¤É¤³¤Ç¤âÃÖ¤±¤ë¡Ë
    • Chunks ¤È¡¡Snippets ¤È¤¤¤¦¤â¤Î¤¬¤¢¤ë¡£
  • Chunks¤È¤Ï¥Ú¡¼¥¸¤ÇºÆÍøÍѤǤ­¤ëHTML¤ÎÃÇÊÒ
    • Chunk¤ÏÀÅŪ¤Êʸ¾Ï¤òÊÝ»ý¤¹¤ë¤Î¤¿¤á¤ÎHTML¥³¡¼¥É¤Ç¡¢Î㤨¤Ð¥á¡¼¥ë¤ò"MyMail"¤Î¤è¤¦¤ËÄêµÁ¤¹¤ë¤³¤È¤Ç²¿²ó¤âƱ¤¸»ö¤ò½ñ¤«¤Ê¤¯¤ÆºÑ¤à¡£
  • Shippets¤È¤Ï¡¢¥á¥Ë¥å¤ä¸¡º÷¥Ð¡¼¤Î¤è¤¦¤Ê´Ø¿ô¥¢¥¤¥Æ¥à
    • Snippet¤ÏưŪ¤Ê¹½Â¤¤ò¼Â¸½¤¹¤ë¤¿¤á¤ÎPHP¥³¡¼¥É¤Ç¡¢Î㤨¤Ð¸½ºß¤¤¤ë¥Ú¡¼¥¸¤«¤é¤Î¥Ê¥Ó¥²¡¼¥·¥ç¥ó¤ò"SiteNavigation"¤Î¤è¤¦¤ËÅÐÏ¿¤·¤Æ¤ª¤­¡¢¥Æ¥ó¥×¥ì¡¼¥È¤«¤é¸Æ¤Ó½Ð¤¹¤³¤È¤Ç¤½¤Î¥Æ¥ó¥×¥ì¡¼¥È¤òÍøÍѤ¹¤ë¥É¥­¥å¥á¥ó¥È¤«¤é¤Î¥Ê¥Ó¥²¡¼¥·¥ç¥ó¤¬Æ°Åª¤ËÀ¸À®¤µ¤ì¤ë¡£
  • Chunk/Snippet/Template¤Ç¤Ï¡¢¶¦Ä̤ÎAPI(µÚ¤ÓÊÑ¿ô̾)¤òÍøÍѤ¹¤ë¤³¤È¤Ç»²¾È¤µ¤ì¤Æ¤¤¤ë¥É¥­¥å¥á¥ó¥È¤Î¾ÜºÙ¾ðÊó¤ò¼èÆÀ¤¹¤ë¤³¤È¤¬¤Ç¤­¤ë¡£
  • "Template Variable"¤È¤¤¤¦Template¤ò¸Æ¤Ó½Ð¤¹µ¡Ç½
    • Á´¤Æ¤Î¥É¥­¥å¥á¥ó¥È¤ËÂФ·¤ÆÇ¤°Õ¤Î¥Ç¡¼¥¿·Á¼°¡õǤ°Õ¤Î¥×¥ì¥¼¥ó¥Æ¡¼¥·¥ç¥ó(¸«¤»Êý)¤òÍѰդ¹¤ë¤³¤È¤¬¤Ç¤­¤ë¡£
    • ¾¦ÉÊ̾¤ä²èÁü¤Ê¤É¤¬¥Ç¡¼¥¿¥Ù¡¼¥¹¤ËÊݸ¤µ¤ì¤ë¥Õ¥©¡¼¥Þ¥Ã¥È¤ò¼«Ê¬¤ÇÄêµÁ¤¹¤ë¤³¤È¤¬¤Ç¤­¤Æ¡¢¤«¤Ä¤½¤ì¤¬É½¼¨¤µ¤ì¤ë»ÅÁȤߤ⼫ͳ¤ËÄêµÁ¤¹¤ë¤³¤È¤¬¤Ç¤­¤ë¤È¤Î¤³¤È
  • coffeemilk¤µ¤ó¸æ¾Ò²ð¤Îtemplate¤Î»ÅÁȤß
  • µ¡Ç½¤Ê¤É¤ò²òÀâ
MODx_editor-mainpage.gif
  • The template contains the Content Area, identified in pink, and inserted into the template with the syntax [*content*]. This content is taken from the Document as edited in the Manager.
  • The template also contains MODx tags that insert Snippets. In this example there are two menu Snippets, identified in blue and inserted with the following syntax SnippetName?
  • The template contains Template Variables that allow the Editor to insert text, images and other content items outside of the main Content Area. These are identified in green and are inserted in the template with the following syntax [*TemplateVariableName*]

¡¡Template¤Îºî¤êÊý

  • ´ÉÍý²èÌ̤è¤ê
  • MODx¤Î¥¿¥°¤òtemplate¤ËÄɲÃ
    • ¥µ¥¤¥È̾¤È¥Ú¡¼¥¸¥¿¥¤¥È¥ë¤ò¥¿¥¤¥È¥ëɽ¼¨
      <title>[(site_name)] - [*pagetitle*]</title> 
    • ¥Ú¡¼¥¸¤Î¥á¥¤¥ó¥Ñ¡¼¥È¤Ëdocumentcontent¡¡¤òɽ¼¨
      <div id="content">
        <h1>[*longtitle*]</h1>
        [*content*]
      </div> 
    • ¥³¥ó¥Æ¥ó¥Ä¤ÎÁ°¤Ëlongtitle¤òɽ¼¨
    • ¥Õ¥Ã¥¿¡¼¤òɽ¼¨
      <div id="footer">Copyright &copy; <a href="mailto:[(emailsender)]">[(site_name)]
      </a> 2005</div>
      MODX_template_tags.jpg
  • template¤ÎÃæ¤Ësnippets¤òÍѤ¤¤ë
  • Web¥µ¥¤¥È¤Ë´Ø¿ô¤Î¤è¤¦¤Ê¥í¥¸¥Ã¥¯¤ò²Ã¤¨¤ësnippets
    [[snippetName]] 
    • MODxAPI¤Ë¤è¤Ã¤Æsnippets¤ÎÃæ¤Ë¡¢snippets¤òÃÖ¤±¤ë
      $modx->runSnippet('snippetName'); 
  • sidebar¤Ë¥Ê¥Ó¥²¡¼¥·¥ç¥ó¥á¥Ë¥å¤òÉÕ¤±¤ë
    <a href="http://www.mysite.com/index.php?id=1">Home</a>
    <a href="http://www.mysite.com/index.php?id=2">News</a>
    <a href="http://www.mysite.com/index.php?id=3">About Us</a>
  • snoppets¤Ï¡¢¥É¥­¥å¥á¥ó¥È¤¿¤Á¤Î¥ê¥¹¥È¤òÆÀ¤Æ¡¢»ØÄê¤Î¾ì½ê¤ËÇÛÃÖ¤·É½¼¨¤µ¤»¤ë¡£
    <div id="sidebar">
    <!-- menu and other blocks goes here -->
    [[MenuSnippet?id=`0`&activelink=`active`]]

    /div>

  • ²¼µ­¤Î¤è¤¦¤Ëɽ¼¨¤µ¤ì¤ë¤Ï¤º
MODX_template_menu.jpg
  • DropMenu Snippet¤ò»È¤¦
    • Example 1 Creates menu with wrapping DIV with id=myMenu, starting at the site root, two levels deep, with descriptions next to the links, and nested UL elements with class=nestedLinks; output of menu can be placed in layout using placeholder named myMenu ( e.g. [+myMenu+] )
[[DropMenu? &menuName=`myMenu` &startDoc=`0` &levelLimit=`2` &topdiv=`true`
 &showDescription=`true` &subnavClass=`nestedLinks`]]
  • Example 2 Creates topMenu from site root, including only 1 level, with class=topMenubar applied to the top level UL and class=activeLink applied to current page LI
[[DropMenu? &menuName=`topMenu` &startDoc=`0` &levelLimit=`1` 
&topnavClass=`topMenubar` &hereClass=`activeLink`]]
  • Example 3 Creates dropmenu 3 levels deep, with DIV wrappers around all nested lists styled with class=hoverZone and currentPage LI styled with class=currentPage
[[DropMenu? &levelLimit=3 &subdiv=true &subdivClass=hoverZone 
&subnavClass=menuZone &hereClass=currentPage]]
  • Example 4 Creates dropmenu of infinite levels, ordered by menutitle in descending order
[[DropMenu?orderBy=menutitle &orderDesc=true]]

QuickEdit module

  • ²¿¤Ë»È¤¦¡©
    • QuickEdit ¤Ï¡¢¥Ú¡¼¥¸¾å¤Ç¥¯¥ê¥Ã¥¯¤¹¤ë¤À¤±¤ÇÊÔ½¸¤Ç¤­¤ë¥·¥ó¥×¥ë¤Ê¥Ä¡¼¥ë¡£email¤ò½Ð¤¹¤è¤¦¤Ê´Ö³Ö¤ÇÊÔ½¸¡£
  • ¤É¤Î¤è¤¦¤Ë»È¤¦¤«¡£
  • ÊýË¡£±¡¥Tag Method
    • ºÇ¤â´Êñ¤ÊÊýË¡¤Ç¤ª´«¤á¤·¤Þ¤¹¡£
      ¥·¥ó¥×¥ë
      [*tv-name*]
      ¥¹¥¿¥¤¥ëtags with 
      [*#tv-name*]
       style tags Example: 
      [*#content*]
      ¤³¤ì¤À¤±
    • ÊýË¡£²¡¥HTML Method
      ¥ê¥ó¥¯¤ò½ñ¤¤¤Æ¥¢¥¯¥»¥¹¡£±£¤·¤Æµö²ÄÉÕ¤­¤â²Äǽ¡£¤É¤Á¤é¤Ç¤â¤ª¹¥¤ß¤Ë
      ¡¡<quickedit> ¡¡The tags must be in the format <quickedit:content /> ¡¡Replace content with the name or ID of the template variable you want to edit.
    • ÊýË¡£³¡¥Custom Links Method
      ¥Ñ¥ï¡¼¥æ¡¼¥¶¡¼¸þ¤­¤ÎÊýË¡¡£¿äÁ¦¤·¤Ê¤¤¡£ but if you have very specific needs it may be the best choice for your situation.
Javascript (recommended): 
window.open('index.php?a=112&id=[QuickEdit module id]&doc=[*id*]
&var=content', 'QuickEditor', 'width=525, height=300, toolbar=0, menubar=0, 
status=0, alwaysRaised=1, dependent=1');
Link Tag: 
< href="index.php?a=112&id=[QuickEdit module id]&doc=[*id*]&var=content" 
target="_blank">Edit</a>

QandA

  • ÆÃÄê¥æ¡¼¥¶¡¼¤ËÂФ·¤Æ¡¢link¤ò±£¤»¤Þ¤¹¤«
    • ÌÞÏÀ¡ª¡ª¡£³èÍѤ·¤Æ
  • Edit¤Î¥ê¥ó¥¯¤ò¸«¤Ä¤±¤ëÊýË¡¤Ï¡©
    • TagMethod¤Ç¸«¤Ä¤±¤é¤ì¤Þ¤¹¡£¤½¤ì¤Ç¤â¥À¥á¤Ê¤éadmin¥æ¡¼¥¶¡¼¤ÇÆþ¤Ã¤Æ¥Ñ¡¼¥ß¥Ã¥·¥ç¥ó¤òÊѹ¹¤¹¤ì¤Ð¤è¤¤¡£QuickEdit permissions can be tricky because there are a lot of things to check. First of all make sure that the user has Edit Documents, Save Documents, and Run module rights. Then check that he has rights to the page. Then check the users rights to the QuickEdit module and to any Template Variables on the page.

W3C¤Îɽ¼¨ÍѤΥ¿¥Ö

  • W3C¤ÎXHTML¤â¥Ñ¥¹
  <p>
    <a href="http://validator.w3.org/check?uri=referer"><img
        src="http://www.w3.org/Icons/valid-xhtml10"
        alt="Valid XHTML 1.0 Transitional" height="31" width="88" /></a>
  </p>
  • W3C¤ÎCSS¤â¥Ñ¥¹
<p>
 <a href="http://jigsaw.w3.org/css-validator/">
  <img style="border:0;width:88px;height:31px"
       src="http://jigsaw.w3.org/css-validator/images/vcss" 
       alt="Valid CSS!" />
 </a>
</p>

icon

  • ¥×¥ê¥ó¥ÈÍÑ
    icon-print.jpg

»²¹Í¤Ë¤Ê¤ë¥µ¥¤¥È


źÉÕ¥Õ¥¡¥¤¥ë: fileMODx_editor-mainpage.gif 692·ï [¾ÜºÙ] fileicon-print.jpg 607·ï [¾ÜºÙ] fileMODX_template_menu.jpg 560·ï [¾ÜºÙ] fileMODX_template_tags.jpg 597·ï [¾ÜºÙ]

¥ê¥í¡¼¥É   ¿·µ¬ ÊÔ½¸ Åà·ë²ò½ü º¹Ê¬ źÉÕ Ê£À½ ̾Á°Êѹ¹   ¥Û¡¼¥à °ìÍ÷ ñ¸ì¸¡º÷ ºÇ½ª¹¹¿· ¥Ð¥Ã¥¯¥¢¥Ã¥× ¥ê¥ó¥¯¸µ   ¥Ø¥ë¥×   ºÇ½ª¹¹¿·¤ÎRSS
Last-modified: 2007-07-18 (¿å) 13:59:26 (1655d)