Textpattern CMS support forum

You are not logged in. Register | Login | Help

#11 2015-07-10 09:00:20

etc
Developer
Registered: 2010-11-11
Posts: 3,401
Website

Re: if_version tag?

Damn! How do I get the last word?.. maybe

<txp:etc_query url="http://textpattern.com/" functions="version_compare" globals="prefs"
	query="version_compare(string(//p[@class='versionNumber']), '{?version}', 'le')"
>
	You are on the edge
<txp:else />
	Please upgrade
</txp:etc_query>

Offline

#12 2015-07-10 09:42:32

ax
Member
From: Germany
Registered: 2009-08-19
Posts: 150

Re: if_version tag?

gomedia wrote #292994:

<txp:adi_globals name="version" />...

Actually, I think that this is a nice example for the power and versatility of the Textpattern system. Not only do plugins seamlessly integrate into the textpattern syntax, but can be combined almost ad libitum, in this example with txp:rah_function. Thereby, an amazingly simple application logic can be generated, which rests upon highly intelligent plugins and would otherwise require much expertise and programming efforts. Theses benefits of Textpattern over competing CMS could be explained more clearly on the Textpattern homepage.

Offline

#13 2015-07-10 09:48:27

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 8,813
Website

Re: if_version tag?

ax wrote #293009:

amazingly simple application logic can be generated, which rests upon highly intelligent plugins and would otherwise require much expertise and programming efforts.

That’s what we love about it :-)

Theses benefits of Textpattern over competing CMS could be explained more clearly on the Textpattern homepage.

I agree. Care to throw digital rocks at Phil and see if it can be folded into the new site?

Or perhaps better, write us a blog post about it and we’ll stick it on the .com site.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#14 2015-07-10 14:53:04

gomedia
Plugin Author
Registered: 2008-06-01
Posts: 1,226
Website

Re: if_version tag?

etc wrote #293006:

Damn! How do I get the last word?

It’s all yours!

Offline

#15 2015-07-10 16:27:27

michaelkpate
Moderator
From: Avon Park, FL
Registered: 2004-02-24
Posts: 1,211
Website

Re: if_version tag?

I wrote a plugin that output a version number in 2005 but it didn’t include a conditional. But I was curious how the coding worked.

		<txp:mkp_if_version version="4.5.7">
			<meta name="Textpattern" content="<txp:mkp_version />" />
		<txp:else />
			<meta name="Textpattern Classic" content="<txp:mkp_version />" />
		</txp:if_variable>

Offline

Board footer

Powered by FluxBB