Modx cms sample page (Evolution 1.0)


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3.  
  4. <head>
  5. <title>[(site_name)] | [*pagetitle*]</title>
  6. <meta http-equiv="Content-Type" content="text/html; charset=[(modx_charset)]" />
  7. <base href="[(site_url)]"></base>
  8. <link rel="stylesheet" href="assets/templates/modxhost/layout.css" type="text/css" media="screen" />
  9. <link rel="stylesheet" href="assets/templates/modxhost/modxmenu.css" type="text/css" media="screen" />
  10. <link rel="stylesheet" href="assets/templates/modxhost/form.css" type="text/css" media="screen" />
  11. <link rel="stylesheet" href="assets/templates/modxhost/modx.css" type="text/css" media="screen" />
  12. <link rel="stylesheet" href="assets/templates/modxhost/print.css" type="text/css" media="print" />
  13. <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="[(site_url)][~11~]" />
  14. <script src="manager/media/script/mootools/mootools.js" type="text/javascript"></script>
  15. <script src="assets/templates/modxhost/drop_down_menu.js" type="text/javascript"></script>
  16. </head>
  17. <body>
  18. <div id="wrapper">
  19. <div id="minHeight"></div>
  20. <div id="outer">
  21. <div id="inner">
  22. <div id="right">
  23. <div id="right-inner">
  24. <h1 style="text-indent: -5000px;padding: 0px; margin:0px; font-size: 1px;">[(site_name)]</h1>
  25. <div id="sidebar">
  26. <h2>News:</h2>
  27. [[Ditto? &parents=`2` &display=`2` &total=`20` &removeChunk=`Comments` &tpl=`nl_sidebar`]]
  28. <div id="recentdocsctnr">
  29. <h2>Most Recent:</h2>
  30. <a name="recentdocs"></a>[[ListIndexer?LIn_root=0]] </div>
  31. <h2>Login:</h2>
  32. <div id="sidebarlogin">[!WebLogin? &tpl=`WebLoginSideBar` &loginhomeid=`[(site_start)]`!]</div>
  33. <h2>Meta:</h2>
  34. <p><a href="http://validator.w3.org/check/referer" title="This page validates as XHTML 1.0 Transitional">Valid <abbr title="eXtensible HyperText Markup Language">XHTML</abbr></a></p>
  35. <p><a href="http://jigsaw.w3.org/css-validator/check/referer" title="This page uses valid Cascading Stylesheets" rel="external">Valid <abbr title="W3C Cascading Stylesheets">css</abbr></a></p>
  36. <p><a href="http://modxcms.com" title="Ajax CMS and PHP Application Framework">MODx</a></p>
  37. </div>
  38. <!-- close #sidebar -->
  39. </div>
  40. <!-- end right inner-->
  41. </div>
  42. <!-- end right -->
  43. <div id="left">
  44. <div id="left-inner">
  45. [[Breadcrumbs?]]
  46. <div id="content">
  47. <div class="post">
  48. <h2>[*longtitle*]</h2>
  49. [*#content*] </div>
  50. <!-- close .post (main column content) -->
  51. </div>
  52. <!-- close #content -->
  53. </div>
  54. <!-- end left-inner -->
  55. </div>
  56. <!-- end left -->
  57. </div>
  58. <!-- end inner -->
  59. <div id="clearfooter"></div>
  60. <div id="header">
  61. <h1><a id="logo" href="[~[(site_start)]~]" title="[(site_name)]">[(site_name)]</a></h1>
  62.  
  63. <div id="search"><!--search_terms--><span id="search-txt">SEARCH</span><a name="search"></a>[!AjaxSearch? &ajaxSearch=`1` &landingPage=`8` &moreResultsPage=`8` &addJscript=`0` &showIntro=`0` &ajaxMax=`5` &extract=`1`!]</div>
  64. <div id="ajaxmenu"> [[Wayfinder?startId=`0` &outerTpl=`mh.OuterTpl` &innerTpl=`mh.InnerTpl` &rowTpl=`mh.RowTpl` &innerRowTpl=`mh.InnerRowTpl` &firstClass=`first` &hereClass=``]] </div>
  65. <!-- end topmenu -->
  66. </div>
  67. <!-- end header -->
  68. <br style="clear:both;height:0;font-size: 1px" />
  69. <div id="footer">
  70. <p> <a href="http://modxcms.com" title="Ajax CMS and PHP Application Framework">Powered
  71. by MODx</a> &nbsp;<a href="http://www.modxhost.com/" title="Template Designed by modXhost.com">Template &copy; 2006-2011
  72. modXhost.com</a><br />
  73. MySQL: [^qt^], [^q^] request(s), PHP: [^p^], total: [^t^], document retrieved
  74. from [^s^]. </p>
  75. </div>
  76. <!-- end footer -->
  77. </div>
  78. <!-- end outer div -->
  79. </div>
  80. <!-- end wrapper -->
  81. </body>
  82. </html>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.