首页 > 代码库 > [MODX] 1. Template
[MODX] 1. Template
After uploading javascript, css and images to the assets folder.
We try to use Template to customize our html.
First template: We set up some placeholder ([[*longtitile]], [[*content]]) in our template.
<body> <div class="site"> <!-- Header --> <header class="group"> <div class="logo"> <h1> [[*longtitle]] </h1> </div> <nav> <ul> <li class="active"><a href="#">Home</a></li> <li><a href="#">Services</a></li> <li><a href="#">About Us</a></li> <li><a href="#">Sign Up</a></li> </ul> </nav> </header> <!-- Banner --> <section class="banner"> <div class="banner-caption"> <h2>A Whole New World</h2> <p>Come explore like never before!</p> </div> </section> [[*content]] <!-- Footer --> <footer> <!-- ... --> </footer> </div> </body>
Those placeholder will be replace by the document (html):
There are some build-in placeholder:
[MODX] 1. Template
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。