Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2005-11-07 08:09:54
- rsilletti
- Moderator
- From: Spokane WA
- Registered: 2004-04-28
- Posts: 707
Custom default article form for 4.0.2
What follows is a default (or otherwise if you wish) article form that uses tags available with TXP 4.0.2 or later. Style rules are included, but CSS is not my strong skill so you should review them.
Article form:
<code>
<div id=“post”><h3><txp:permlink><txp:title /></txp:permlink>
<txp:if_first_article>
<txp:sitename /> · <txp:site_slogan />
</txp:if_first_article></h3></div>
<div id=“post”>
<div class=“meta”>Filed under: <txp:category1 link=“1” title=“1” /> —<txp:category2 link=“1” title=“1” /> by: <txp:author link=“y” /> : <txp:posted />.</div>
<txp:body />
<div class=“meta”><txp:comments_invite /></div>
<txp:if_excerpt><txp:excerpt /><txp:else />
<div class=“meta”>Section: <txp:section link=“1” title=“1” /></div>
</txp:if_excerpt></div>
<txp:if_last_article>
<div align=“center”><img src=”<txp:site_url />images/1.gif” style=“height:1px;width:400px” class=“divider” alt=”“ /></div>
</txp:if_last_article>
</code>
Rules:
<pre>
#post
{
color:#000;
padding: 5px;
padding-left:15px;
margin: 0;
font-weight: normal;
font-size: .8em;
padding-bottom:.3em;
background:#F3F6ED;
border:#ccc 1px solid;
}
#post hr
{
color: #ccc;
width: 66%;
margin-top: 1em;
margin-bottom: 1em;
}
.meta
{
font-size: .95em;
color: #336;
font-weight: normal;
letter-spacing: 0;
}
.meta li
{
display: inline;
}
.meta ul
{
display: inline;
list-style: none;
margin: 0;
padding: 0;
}
.meta a
{
color: #808080;
border-bottom: 1px dashed #999;
}
.meta a:hover
{
border-bottom: 1px dashed #666;
}
</pre>
Offline
Pages: 1