Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-07-28 10:43:06

emkay
New Member
Registered: 2006-07-28
Posts: 6

How do i implement textpattern into an existing layout?

I have a project currently going that needs a nice cms and textpattern looks like the best one. I have already made a template for my project, but how do I implement text pattern features into the template, and where can I find ALL the includes that I can use on my designed template?

Is there an integration wizard inside the admin panel like cutenews has?

Offline

#2 2006-07-28 10:53:59

masa
Member
From: North Wales, UK
Registered: 2005-11-25
Posts: 1,095

Re: How do i implement textpattern into an existing layout?

Take a look at the TXP default page and you should get an idea where to substitute TXP tags for your existing markup like titles body content etc.

Anyway it’ll probably be easier the other way round:
<a href=“http://textpattern.com/faq/65/how-do-i-embed-textpattern-in-an-external-page”>How do I embed Textpattern in another page?</a>

Cheers Martin

Offline

#3 2006-07-28 11:12:40

emkay
New Member
Registered: 2006-07-28
Posts: 6

Re: How do i implement textpattern into an existing layout?

Oh right ok thanks for the help

Offline

#4 2006-07-28 11:19:29

elduderino
Member
From: Whitstable. south-East England
Registered: 2006-01-02
Posts: 175
Website

Re: How do i implement textpattern into an existing layout?

Hi emkay,

Its quite simple getting your site intergrated in to textpattern. Unfortunately there is no intergration wizard in admin so you’ll have to do it manually.

To start with you need to get your template in to txp. Copy your html markup from your code editor and then go to the page tab in txp under presentation. Create a new page ( using copy page as at bottom of window, and then replacing the copied code with your code) and save it. remember what you named the page.

You then need to go to style and create a new style sheet. Name it and copy your css in to that. save it.

Now go to the section tab. Create a new section and select it to use the the page and style you have chosen. Save it.

You can now go to the pages tab again, go to default and put this code in to create a link to your new section:

<code>><a href=”<txp:site_url />home”>home</a></code> (replace home with whatever you’ve named your section)

Now when you view your site you should have a link on your default page to your new template page. test it out.

From here I found the easiest way of actually intergrating txp in to my template was to do what Masa suggested. look at the code in the default template.

to get started putting this in a div: <code><txp:article /></code> will allow you to show articles that have been posted in to this section. This tag will take additonal parameters such as <code><txp:article limit=5” /></code>. The best place to look for these is the textbook.

Hope that helps a little. Good luck!

Offline

#5 2006-07-28 12:29:15

emkay
New Member
Registered: 2006-07-28
Posts: 6

Re: How do i implement textpattern into an existing layout?

Thanks for your great help :)

Offline

#6 2006-07-28 12:36:32

emkay
New Member
Registered: 2006-07-28
Posts: 6

Re: How do i implement textpattern into an existing layout?

I have one more question. Can I use a form so that visitors can register to post articles and download files? How do i do this?

Offline

#7 2006-07-28 13:56:07

elduderino
Member
From: Whitstable. south-East England
Registered: 2006-01-02
Posts: 175
Website

Re: How do i implement textpattern into an existing layout?

hmmm, maybe this is what you’re looking for?…..

textpattern.com/viewtopic.php?id=8520

Last edited by elduderino (2006-07-28 13:58:00)

Offline

#8 2006-07-28 15:30:09

masa
Member
From: North Wales, UK
Registered: 2005-11-25
Posts: 1,095

Re: How do i implement textpattern into an existing layout?

Sorry, for my fairly brief answer this morning.
I wasn’t quite sure what you were referring to with <i>includes</i> – TXP’s special tags, plug-ins?
Anyway here are some resources I found very helpful when building my first site:

  1. <a href=“http://textpattern.org/tutorials/527/txp-tag-reference-pdf-2”>TXP Tag Reference</a> as PDF
  2. <a href=“http://textpattern.com/faq/147/common-how-do-i-questions”>Common “How Do I?” questions</a>
  3. <a href=“http://textpattern.com/faq”>TXP FAQ</a>

Hope that helps!

Cheers Martin

Offline

#9 2006-07-29 12:11:39

emkay
New Member
Registered: 2006-07-28
Posts: 6

Re: How do i implement textpattern into an existing layout?

OK thanks for the help :)

Offline

Board footer

Powered by FluxBB