Jump to content
xisto Community
Sign in to follow this  
Cezve

How To Use Texter With Textpattern (or With Coding In General) A simple tutorial to make things easy...

Recommended Posts

- What is TextPattern then?

 

TXP is a flexible blogging and CMS (Content Management System). Even though there are plugins to integrate TinyMCE, it's not as perfect or easy to use.. like WP for example. TXP supports a markup language called Textile. (It's easy to use and not very complicated. You can find an easy example further down.) And writing articles is mostly done with Textile or by just using hmtl tags.

 

Here is a link to TXP's official site if you're interested. TXP

 

A simple textile would look like...			 p. Here is the text.		 		 This would print out;			 <p>Here is the text</p>
This is why I suggest using a simple application called Texter to make writing articles faster and more efficient. The application is also great for coding. You can find some information about it and it's basic and advanced usage >> here

 

It basically turns shortcuts you assign to full text. Here are some shortcuts I use with TXP or HTML coding. There are two important attributes to use with it.

 

Posted Image

 

%c : inserts whatever text you've got copied in clipboard.

%| : moves your cursor to the place you want in inserted text by Texter.

 

Here are some shortcuts I use with TXP or HTML coding.

 

<img src="%c" />
It'll insert the image link in the clipboard and will print out. Similarly it can be used with links or for just simple HTML tags..

<a href="%c" >%|</a>
<p>%|</p>
An example for TXP tags. The following is for a plugin I use for embedding videos. The tag's originally used like ;

<txp:the_video from="" id="" />
... where "from" is an attribute to decide which video site (g for Google Video etc) it'll be. And the "id" is for video id. (Last part of video links. "6IH8CGohTh0" for a youtube video for example) And the hotstring for it would be ;

<txp:the_video from="%|" id="%c" />
So, by writing "//vid " (which activates the assigned hotstring) , copied video id will automatically get inserted into id="" and the code will be printed out with the cursor at from=" ".

 

 

It's quite basic stuff but it really improves things. I hope this will be helpful to the coders ad bloggers out there.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.