Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#16 2008-01-09 16:09:50

frotzed
Member
From: Planet Earth
Registered: 2007-05-08
Posts: 20
Website

Re: [mention] Why someone prefers TXP over WP

Just know that by itself Sandbox does nothing other than add semantic classes (and a few ids) to many XHMTL elements. The real use for Sandbox is the ability to then use those auto-generated hooks to specifically style your site.

Keep in mind, in many ways you can accomplish the same thing with Textpattern. However, many of the classes that Sandbox adds to these elements would not be possible with TXP unless someone perhaps wrote a plugin.


Ben Gray | ben@openswitch.org | http://openswitch.org

Offline

#17 2008-01-09 16:16:24

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: [mention] Why someone prefers TXP over WP

Keep in mind, in many ways you can accomplish the same thing with Textpattern. However, many of the classes that Sandbox adds to these elements would not be possible with TXP unless someone perhaps wrote a plugin.

Yes it is. Have been done earlier with out plugins. I’m lazy, but there is the reqular post as tumblelog-styled.

	<txp:if_different>
		<div class="day-posted">
			<a href="<txp:permlink /><txp:posted format="%Y/%m/" />" title="permanent link to this month"></a>
		</div>
	</txp:if_different>

<div id=“post-<txp:article_id />” class=“post <txp:php>global $thisarticle;$keyword = $GLOBALS[‘thisarticle’][‘keywords’];$keyword = strtr($keyword, ‘,’, ‘ ‘); if($keyword) echo $keyword;</txp:php>”> <h2 class=“entry-title”><a href=”<txp:permlink />” title=“Permalink to <txp:title />” rel=“bookmark”><txp:title /></a></h2> <div class=“entry-date”><abbr class=“published” title=”<txp:posted format=”%Y-%m-%dT%H:%M:%S-%Z” />”><txp:posted format=”%B %d, %Y – %I:%M %p” /></abbr></div> <div class=“entry-content”> <txp:excerpt /><txp:body /> </div> <div class=“entry-meta”> <span class=“author vcard”>By <a class=“url fn n” href=”<txp:site_url />author/<txp:author />” title=“View all posts by <txp:author />”><txp:author /></a></span> <span class=“meta-sep”>|</span> <span class=“cat-links”>Posted in <a href=”<txp:site_url />category/<txp:category1 />” title=“View all posts in url” rel=“category tag”><txp:category1 /></a></span> <span class=“meta-sep”>|</span> <span class=“comments-link”><txp:if_comments_allowed><a href=”<txp:permlink />/#comments”><txp:else /><span></txp:if_comments_allowed><txp:comments_invite /><txp:if_comments_allowed></a><txp:else /></span></txp:if_comments_allowed></span> </div> </div><!— .post —>

The php is there just, if you use commas with keywords field, but as we know that we are using tumblelog, we won’t need even that. And there is also this

Cheers!

Last edited by Gocom (2008-01-09 16:22:24)

Offline

Board footer

Powered by FluxBB