Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2006-02-27 08:35:56
- emm_eye
- New Member
- Registered: 2006-02-27
- Posts: 2
TXP for dummies
Hi people,
Let me start with a brief introduction.. I have been making websites since the past 5 years. But most; infact all of them were flash websites. I used to care very little about web standards.
Very recently i picked up on (X)HTML and CSS and i’ve been playing around with it.. and uptil now it seems to be very interesting..
all went fine and i decide to get on working with a cms.
I have a site which is temporarily accessible at http://idealidiot.f2g.net/ins/
It isn’t completed yet.. however. i was playing around with txp.. here is what i am a bit confused about
1. for every seperate page i put the text into separate sections.. so now i have whatever.com/section-name with the text
2.will i need to hardcode the links for the main navigation.. or are they generated dynamically.
3. the programmes page with all the programmes will be linked further with programme details for most of the programmes.. i have no idea how i should be doing that.
4. the pictures on every page. where should i be uploading them and how should i be linking to them.
I went through the wiki.. and a few tutorials around.. but for some reason it is just not getting in my head.
Regards
Imran
Last edited by emm_eye (2006-02-27 08:38:00)
Offline
Re: TXP for dummies
Imran, This is a very good primer:
http://erraticwisdom.com/2005/11/30/intro-to-textpattern
Good luck!
Last edited by shotoshi (2006-02-27 18:19:16)
Offline
#3 2006-02-27 22:54:00
- nardo
- Member
- From: tuvalahiti
- Registered: 2004-04-22
- Posts: 743
Re: TXP for dummies
don’t forget the FAQ … and I think the title of your post should be used for an introduction to txp!
to the questions…
1. That’s reasonable for your type of site. You have domain.com/section-name
which will output an article list, i.e. all articles posted in that section (with default limit of 10 per page)… in most sections, you may only have one article, and life is easy.
In your programme section, you might handle it slightly differently. Create articles for each of your items (e.g. Medical Debate) and set them to section ‘programme’. Then write your ‘Programme of Events’ article, but give it a status of “sticky”. Add hyperlinks to the items which require further details – i.e. link to the individual article like so: "Medical Debate":/programme/medical-debate
obviously you need to make sure you’ve called the right URL there… for every article, if you look under ‘Advanced Options’ on the write tab, you’ll see a field called “URL-only title” – here you can set how the article’s title in the url should look… so “Medical-Debate” or “medical-debate” or “session-3-medical-debate” etc
To show only the sticky article at domain.com/programme
and your detailed articles at domain.com/programme/medical-debate
, your code in your page template might be something like this:
<txp:if_article_list><txp:article status="sticky" /><txp:else /><txp:article /></txp:if_article_list>
You don’t necessarily need to create more than one page template btw, because you can use conditionals:
<txp:if_section name="programme">insert that code above!<txp:else /><txp:article /></txp:if_section>
So this is a very hand-coded way of doing things I know (putting in links to your programme details), but I think easier for your programme list which has things like “lunch” etc which you might not want to create an article for…
2. you can generate a section list automatically, but for a ‘static’ type site, you might be best off just hand coding it… put it in a form of type “misc” and then call it in your page template: <txp:output_form form="nav" />
4. upload pictures through CONTENT/IMAGES … you can copy and paste the url in 3 flavours …
Last edited by nardo (2006-02-27 22:56:38)
Offline
#4 2006-02-28 14:35:43
- emm_eye
- New Member
- Registered: 2006-02-27
- Posts: 2
Re: TXP for dummies
Thanks a lot for the help.. will try this out and i’ll let you know if i manage to get through with it.
Offline
Pages: 1