• Home
  • Family Photos
  • About
  • Papermoney Portfolio
  • Disclaimer
  • Wordpress Plugins
  • RSS Feed
 
« new april oex position
a little more than three weeks to go! »

textpattern basics - part 3

Posted on March 24, 2006 at 7:56 pm         By Ryan in Web Development

Wow! Its been a while since I wrote my last textpattern basics article, and life has been quite busy! Well, its back to basics time! So lets talk page forms. Page forms are the heart of each section in a textpattern site. Generally speaking the page form controls what will actually show up on the page.

There are quite a few tags that you can use in a page form, and they do a ton of work! All of the tags mentioned in textpattern basics – part 2 can be used in a page form, along with some key tags to actually show articles…

<txp:article />

The article tag will show one or many articles, depending on how you have it configured. Some of the key attributes that you need to use and understand are form, listform and sortby. The form attribute specifies which article form to use when displaying a single article. The listform attribute specifies when article form to use when displaying a list of articles and of course sortby tells textpattern how to sort the output!

<txp:article_custom />

This tag will do the same as article, just with more options. You still need to use the key attributes from the article tag, but there are a few other key attributes to look out for. The section attribute will let you return articles from specific sections, regardless of where you are in the website, the same is true of the category attribute, but instead of sections it uses categories.

<txp:output_form />

One of the most important tags! This will call a regular form typically a form of type misc and output the form results into the page. This allows you to modularize your code, generally speaking, that’s a good thing!

There are plenty of other tags that you can use in a page form, however I try to keep my page forms limited to tags that call other forms! For example most of my pages look something like this…


<txp:output_form form="DTD_head" />
</head>
<body>
<div id="container">
<txp:output_form form="header" />
<txp:output_form form="navigation" />
..Some article tags and maybe a few div tags etc...
<txp:output_form form="footer" />
</div>
</body>
</html>

That’s it… The pages are pretty simple, allowing the power to be handled by the other forms! I’ll dive into those in part 4, which I’ll be publishing in the next few weeks months, till then – good luck and drop a few comments if you have a question.

Update: I’ve been slammed with buying property, my job and investing in the market. I’ll publish the next segment in my textpattern series soon!

Tags: textpattern

Categories: Web Development

No Responses to “textpattern basics - part 3”

RSS feed for the comments of this post

Places to go....

  • Barr Family Blog (40)
  • Business School (12)
  • Economics (7)
  • Investing (55)
  • Options Trading (82)
  • Papermoney (57)
  • Personal Finance (10)
  • Politics (3)
  • Real Estate (1)
  • Web Development (11)

Stock Quotes

Russell 2000 Inde505.03  chart+0.00
S&P 500927.45  chart+0.00
S&p 100 Index440.83  chart+0.00
DJIA8952.89  chart-81.80
NASDAQ1628.03  chart+0.00
Cboe Volatility I39.08  chart+0.00
2009-01-05 17:00

A sample from the gallery

Master3

Master3

Advertisements

Tags

auto bailout baby bear bull business cfc covered call dia dji Economics economy exit strategy expiration fed federal reserve fxp google inflation iron condor iwm kellogg nasdaq oex paper money php Politics pregnant profit qld qqqq recession risk rut school sds sonogram spx spy textpattern thinkorswim time decay vix volatility wordpress wpg2

Archives

  • January 2009 (5)
  • December 2008 (24)
  • November 2008 (9)
  • October 2008 (7)
  • September 2008 (11)
  • August 2008 (3)
  • July 2008 (5)
  • June 2008 (3)
  • May 2008 (2)
  • April 2008 (12)
  • March 2008 (5)
  • February 2008 (6)
  • January 2008 (29)
  • December 2007 (11)
  • November 2007 (1)
  • September 2007 (1)
  • July 2007 (1)
  • June 2007 (1)
  • January 2007 (1)
  • December 2006 (1)
  • November 2006 (7)
  • October 2006 (4)
  • September 2006 (2)
  • August 2006 (4)
  • July 2006 (6)
  • June 2006 (14)
  • May 2006 (16)
  • April 2006 (5)
  • March 2006 (11)
  • February 2006 (9)
  • January 2006 (2)
  • August 2000 (1)

Links

  • Useful Links

    • CNN Money After Market Data
    • CNN Money Pre Market Data
    • Evil Speculator
    • Firefox
    • Ryan’s Linkedin Profile
    • The Slope of Hope w/ Tim Knight
    • thinkorswim
    • Yahoo Finance
  • Log in

Creative Commons License This work is licensed under a Creative Commons License.
Grab our feed!
  Add to Google Reader or Homepage    Powered by FeedBurner