We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 6557
    • 7 Posts
    Hi every one,
    I have just start using MODx, it’s very good.
    I love the Whatyouseeiswhatyouget Editor so I edit the Default template in that. grin
    But now, the default template is rubish after Edit.
    So may I get the code for the Default Template that is not modifide?

    and is the default theme portet from http://wuhan.authenticasian.com/?page_id=11?

    thanks smiley
      • 26435
      • 1,193 Posts
      this is from http://demo.opensourcecms.com/modx/

      You can copy the original snippets, etc... from here and paste them over the code you f’d up.

      http://demo.opensourcecms.com/modx/manager/

      username: admin
      password: demo
      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      <html xmlns="http://www.w3.org/1999/xhtml">
      
      <head>
      	<title>[(site_name)] | [*pagetitle*]</title>
      
      	<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
      
      	<link rel="stylesheet" href="assets/templates/default/site.css" type="text/css" media="screen" />
              <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="[(site_url)][~11~]" />
              <base href="[(site_url)]" />
      
      <!--[if lte IE 6]>
      
        <style type="text/css" media="screen, tv, projection">
              body { behavior: url(assets/js/csshover.htc); } /* hover:anything support */
              #content { margin-left: 22px; } /* to avoid the BMH */
              a,  a:link { border-bottom-style: solid } /* becuase IE just doesn't dot */
        </style>
      
        <script type="text/javascript" src="assets/js/sleight.js"></script>
      
      <![endif]-->
      
              <script src="manager/media/script/scriptaculous/prototype.js" type="text/javascript"></script>
              <script src="manager/media/script/scriptaculous/scriptaculous.js" type="text/javascript"></script>
      
      </head>
      <body>
      
      <div id="page">
      
      
      <div id="header">
      	<div id="search"><a name="search"></a>
      		[!FlexSearchForm? &FSF_showResults=`0` &FSF_landing=`8`!]
      	</div>
      	<h1><a href="[~[(site_start)]~]" title="[(site_name)]">[(site_name)]</a></h1>
      </div>
      <!-- close #header -->
      
      	<div id="content">
      
      		<div class="post">
      			<h4 class="date-header">[!DateTime? &format=`d-M-Y h:i A`!]</h4>
      			<h3 id="post-">[*longtitle*]</h3>
      				[*#content*]
      		</div>
      		<!-- close .post (main column content) -->
      
      		<div id="navlist"><a name="navlist"></a>
      			<h3>Related Links:</h3>
      			[[ListRelated? &LR_title=`Other pages possibly of interest...`]]
      		</div>
      		<!-- close #navlist -->
      
      	</div>
      	<!-- close #content -->
      
      	<div id="sidebar">
      		<ul>
      			<li><h2>About Me:</h2>
      			{{AboutMe}}
      			</li>
      
      			<li id="dropmenu"><a name="dropmenu"></a><h2>Pages:</h2>
      			[!DropMenu!]
      			</li>
      
      			<li id="recentdocs"><a name="recentdocs"></a><h2>Most Recent:</h2>
                      	[[ListIndexer?LIn_root=0]]
      			</li>
      
      			<li><h2>Meta:</h2>
      				<ul>
      				    <li><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></li>
                      	<li><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></li>
      				    <li><a href="http://modxcms.com/" title="Powered by MODx, Do more with less.">MOD<strong>x</strong></a></li>
      		        </ul>
      			</li>
      
      		</ul>
      	</div>
      	<!-- close #sidebar -->
      
      <div class="clear"> </div>
      
      <div id="footer">
      	<p>
      		[(site_name)] is powered by
      		<a href="http://modxcms.com/" title="Powered by MODx, Do more with less."><strong>MOD</strong>x</a>
      		<br /><a href="[~11~]" title="Link to our Blog RSS Feeds">Blog Entries (RSS)</a><br />
      <strong>MOD</strong>x-theme by <a href="http://www.liquidthemes.com">liquidthemes</a><br />
      MySQL: [^qt^], [^q^] request(s), PHP: [^p^], total: [^t^], document retrieved from [^s^].
      	</p>
      </div>
      <!-- close #footer -->
      
      </div>
      <!-- close #page -->
      
      </body>
      </html>
      


      and this one is from the default install of MODx called "Built-in Template". I think it is from the Eto days.

      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" 
        "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
      <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
      <head>
      <title>[(site_name)] » [*pagetitle*]</title>
      <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
      [[GetKeywords]]
              <style type="text/css">
                   @import url('assets/site/style.css');
              </style>
      </head>
      
      <body>
      <table border="0" cellpadding="0" cellspacing="0" class="mainTable">
        <tr class="fancyRow">
          <td><span class="headers"> <img src="manager/media/images/misc/dot.gif" alt="" style="margin-top: 1px;" /> <a href="[~[(site_start)]~]">[(site_name)]</a></span></td>
          <td align="right"><span class="headers">[[PageTrail]]</span></td>
        </tr>
        <tr class="fancyRow2">
          <td colspan="2" class="border-top-bottom smallText" align="right">[[PoweredBy]]</td>
        </tr>
        <tr align="left" valign="top">
          <td colspan="2"><table width="100%"  border="0" cellspacing="0" cellpadding="1">
            <tr align="left" valign="top">
              <td class="w22"><table width="100%" border="0" cellpadding="0" cellspacing="0">
                <tr>
                  <td align="center" valign="middle" class="logoBox"><a href="[~[(site_start)]~]"><img src="assets/images/logo.png" alt="" /></a></td>
                </tr>
                <tr>
                  <td align="left" valign="top"><img src="manager/media/images/_tx_.gif" alt="" height="4" /></td>
                </tr>
                <tr class="fancyRow2">
                  <td align="left" valign="top" class="navigationHead">Navigation</td>
                </tr>
                <tr style="padding: 0px; margin: 0px;">
                  <td align="left" valign="top" class="navigation" style="padding: 0px; margin: 0px;"><img src="manager/media/images/_tx_.gif" alt="" height="4" /><br />[[MenuBuilder?id=0]]<img src="manager/media/images/_tx_.gif" height="4" alt="" /></td>
                </tr>
              </table></td>
              <td class="pad" id="content"><h1>[*#longtitle*]</h1><div>[*#content*]</div></td>
            </tr>
          </table></td>
        </tr>
        <tr class="fancyRow2">
          <td class="border-top-bottom smallText"> </td>
          <td class="border-top-bottom smallText" align="right">MySQL: [^qt^], [^q^] request(s), PHP: [^p^], total: [^t^], document retrieved from [^s^].</td>
        </tr>
      </table>
      </body>
      </html>
      



      I hope this helps!

      -sD-
      scotty Delicious
        Husband, Father, Brother, Son, Programmer, Atheist, Nurse, Friend, Lover, Fighter.
        All of the above... in no specific order.


        I send pointless little messages
        • 26435
        • 1,193 Posts
        Perhaps someone can correct me if this is not the default 9x template. I upgraded from TP3.2, so my databases were not rewritten with the 9x defaults.

        -sD-
        scotty Delicious
          Husband, Father, Brother, Son, Programmer, Atheist, Nurse, Friend, Lover, Fighter.
          All of the above... in no specific order.


          I send pointless little messages
          • 18397
          • 3,250 Posts
          Woah! Thats the TP3.2 template!
            • 26435
            • 1,193 Posts
            I am pretty sure it is. The last time I purged the databases was to do a "fresh" MODx install.
              Husband, Father, Brother, Son, Programmer, Atheist, Nurse, Friend, Lover, Fighter.
              All of the above... in no specific order.


              I send pointless little messages
              • 6557
              • 7 Posts
              thanks smiley
                • 26435
                • 1,193 Posts
                no problem

                -sD-
                  Husband, Father, Brother, Son, Programmer, Atheist, Nurse, Friend, Lover, Fighter.
                  All of the above... in no specific order.


                  I send pointless little messages