View Single Post
  #5 (permalink)  
Old Aug 21st, 2006, 15:22
moojoo's Avatar
moojoo moojoo is online now
Moderator
Join Date: Aug 2005
Location: Texas
Posts: 2,021
Blog Entries: 1
Thanks: 0
Thanked 33 Times in 33 Posts
Re: Content Management Systems

Yeah but all he would have to do to convert it over was create a page and section for each existing page and just copy/paste the HTML from the files into textpattern. Annoying perhaps but not very time consuming. One thing I like about textpattern is it only outputs code you tell it to. You have complete control over the look, feel and forms used to display the CMS content. And I hate template systems.

Here is example of a form I use for textpattern to auto generate my archives page to give you an idea of its sexy slickness heh.

Code: Select all
<!-- show the year -->
<txp:if_different>
<h2><txp:posted format="%Y" /></h2>
</txp:if_different>
<!-- show the month -->
<txp:if_different>
<h3><txp:posted format="%B" /></h3>
</txp:if_different>
<!-- article title and link -->
<ul>
<li><txp:permlink><txp:title /></txp:permlink><br /><txp:posted /></li>
</ul>
And in the HTML all you would put is something like this to output all of your articles in a month sorted list which updates automatically every time you write a new article:

Code: Select all
<txp:article_custom limit=99999 form="monthly_article" section="article" />
End result is here: http://www.newguyinennis.com/archives
__________________
I hate IE 6. Just sayin....

Last edited by moojoo; Aug 21st, 2006 at 15:30.
Reply With Quote