Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-01-29 05:54:52

mrl
New Member
From: Calgary
Registered: 2006-01-29
Posts: 4
Website

Configuration advice

Hi,

I’m investigating Textpattern for a new project, and I’m looking for some advice on the best way to set it up as a cms. I’ve been scanning the various resource sites, faq’s, documentation, etc.

What I’d like to do is set up the DOCROOT for the site as follows.

index.php
about/index.php
blog/ (where txp is installed)
contact/index.php
services/index.php

(other miscellaneous directories)

In other words, the docroot would contain the site’s home page plus several other directories, including a ‘blog’ directory where txp is installed. I’d like to use txp to manage all of the site’s content.

Is this the best way to set it up? Is there a better way? Are there any issues to be aware of?

Thanks in advance for any suggestions.

Mike


Thx,
Mike

Offline

#2 2006-01-29 07:00:57

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: Configuration advice

TXP won’t control anything outside it’s own directory so if you want it to control all of your site it needs to be setup in the root and all of your site needs to be in TXP. If you want to keep separate directories as you show above this is not a problem, but you will only be able to link to them from TXP as opposed to control them.


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#3 2006-01-29 07:23:54

mrl
New Member
From: Calgary
Registered: 2006-01-29
Posts: 4
Website

Re: Configuration advice

Thanks Stuart. I thought as much but I wasn’t sure.

As I’m just getting my feet wet with TXP, does anyone know of any tutorials of setting up a relatively simple site such as the following ‘logical’ structure?

HomePage (docroot)<br/>
—-> About (simple ‘page’)<br/>
—-> Contact (simple ‘page’)<br/>
—-> blog (a full blown blog system)<br/>

i.e. just a bog-standard simple site. I’ve searched, but I’ve come up empty so far.

Thanks, and sorry for the newbie questions.


Thx,
Mike

Offline

#4 2006-01-29 07:47:45

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: Configuration advice

Well it’s easier to explain that here. TXP will set-up as a blog. The default page template is your home page or front-page, and the archive page template is for the “individual_article” view and will include any comments and the comment entry form.

Your first decision is whether you want to create new page templates for the about and contact sections. If you do then copy the default page template to new names ie about and contact. If you want to use an existing page then I suggest you use the default and you will need to use <code><txp:if_section name=“about”></txp:if_section></code> tags (and similar for the contact section) and your presentation code for those pages sits inside those tags.

You then need to go to the “Sections” tab and create your about and contact sections. For each section choose the template you are using and also set the options to not display on the front-page and not be selected by default. Whether you want them searchable or in your feeds is up to you.

Now create 2 articles, about and contact, and assign them to their respective sections.

That is basically it apart from bringing your extensive HTML and CSS skills in to play to get it all styled nicely. :)


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#5 2006-01-29 08:14:28

mrl
New Member
From: Calgary
Registered: 2006-01-29
Posts: 4
Website

Re: Configuration advice

Thanks Stuart. Got it. It’s going to take a bit of time to get my head wrapped around TXP. It’s a bit, shall I say, different. Time to do more research. :)


Thx,
Mike

Offline

#6 2006-01-29 08:38:47

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: Configuration advice

Well starting with a nice, easy structure like this is the best way to go. Most problems occur when people new to TXP try to bring an existing, complex site across which means they are jumping in at the deep end with no rubber ring to keep them afloat. Well apart from us that is. And, of course, if they can’t get it working in less than 10 minutes it must really be difficult mustn’t it? ;)


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#7 2006-01-29 08:51:35

mrl
New Member
From: Calgary
Registered: 2006-01-29
Posts: 4
Website

Re: Configuration advice

Yup. I’m starting to get my head wrapped around it, and have a five page skeleton site structured like I want it. Now I just need to do that functionality, HTML, and CSS stuff. :)

I started hand-coding sites back in the mid-90’s, and have worked on some very large sites, so I have plenty of experience. It’s just that TXP is quite a bit different from anything I’ve worked with in the past. It is looking very interesting, though. Thanks again for your help in getting over that first hurdle!


Thx,
Mike

Offline

#8 2006-01-29 10:47:52

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: Configuration advice

No problem. :)


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

Board footer

Powered by FluxBB