Textpattern Run LeveL · 31 March 04

run level description

This is Textpattern Run Level v1.01b it is fully stable and the little *b* at the end just is there because I want to know what you think about it… and if you have any suggestions… they will be all collected and integrated into the final version.

What the hell is this ?
Well I ran into some serious problems while developing Textpattern Gallery .
Which mainly are shown by the left-top graphic. Normaly Textpattern runs from top to bottom to resolve all <txp:commands /> and expand them to whatever content they will produce.

This means once I passed a certain point on the page there is no way back… let’s take the case I ran into:

Gallery is producing some Javascript and as I allready passed the <head> section I can’t insert it there anymore and the Javascript will render right where the tag <txp:gallery /> got called.

This Problem gets solved with Textpattern Run Level as we got a slick and fast multipass render right under our fingertips.
This means we can instruct Textpattern to reParse the hole page using a different command scope.

run commands description

And Textpattern Run Level doesn’t change on line of code in the original Textpattern installation as it runs as a plugin.

Textpattern Run Level also introduces Getter/Setter that can be used from within your Plugin and as a Textpattern call.

Example :

<txp:set hello="world" foo="bar"/>

<txp:set var="foobar">
Text that goes in var supports sub txp:commands!
</txp:set>

<txp:get var="hello" />

You could do this without them too but everybody would reinvent the wheel and there would be no standard interface.

Okay back to our example with the Gallery… I could now stick some javascript into a variable and exctract it on a higher level.

This sounds complicated!? Well then look at this simple example and if you can read code you will rightaway see what I mean:

Example :

<txp:run level="main,test">
<head>
<txptest:get var="galleryJS" />
</head>
<body>
<txp:set galleryJS="some code here" />
</body>
</txp:run>

In realworld I would use the set command from within my Plugin like set(“some code here”); ... but you get the picture .. right!

Download current version
Please note this Software is released under GPL.
grab it now

And as a little bonus functionfactory:
grab it now

* * *

ONLINESTATUS:

My status

FLASH

Flash based cropping tool released (LGPL)
Flash based Content Management System
Flash based cropping tool
protos@layer51

TXP's

Textpattern Open Source Blog-CMS
Textpattern Flash Satay
Textpattern RewriteRule
Textpattern Textile Tag
Textpattern Run LeveL
Textpattern Gallery
Forum Posts

PRIVAT

Skype rocks...
flashConference Stuftgart 2005
Phishing an Apple with IDN-Domains
The future of mobile computing
Love BOB
wordOptimizer
2 Weeks Berlin ahead!
In the Berlin-Metro
Building a new stable
Welcome to flashrocket news

EXPERIMENTS

Great XMLSA Tutorial!. Checkout this nice tutorial from Jens C. Brynildsen at flashmagazine about a prototype I once wrote to parse XML into an Array-Structure.

flashback. A Flashers Toolbox with just on php-file to install. Adds BrowserHistory and Filesaving to flash projects.

flashzoom. With this little experiment you can zoom into high resolution pictures at low loading costs...

PROJECTS

berlinerklamotten. This site is base on SueperContentCMS… The Project offers young german Designers a plattform to present there label and sell there cloth in Salesrooms.

formentera.eu.com. An interactive mapguide to the island of formentera. Still under development.

MUSIC

Modeselektor tesa

MIXED PICKELS

Dragon Worm. Simple mouse trailer for the Flashkit community

RUNLEVEL

Worldoptimizer Runlevel Framework

CONTACT

contact me by mail

RELATED