Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-10-29 20:51:28

driz
Member
From: Huddersfield, UK
Registered: 2008-03-18
Posts: 441
Website

Textpattern Semantics

Okies here is my plan, I have a page called About (which is the section)
within this section, I want to have a contact page, a team page. I want INSIDE of team page to have individual pages for each team.

So that site looks like this:

domain.com/about/
domain.com/about/team/
domain.com/about/team/john-smith
domain.com/about/contact/

How do I go about doing all of this? Would contact be a category or an article, but if its a category, where would say the contact form be stored? Inside an article? So say I had my PHP contact form, as an actual Txp:Form, you wouldn’t insert that inside an article called contact would you? :S

Thanks. x

Code snippets would be much appreciated.

Last edited by driz (2008-10-29 22:51:35)


~ Cameron

Offline

#2 2008-10-29 23:02:11

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: Textpattern Semantics

Contact would be an article. You can put the contact form either inside the article, or in the article form that you’re using to display that article, or in a misc form (and call that in the article or in the article form with <txp:output_form />).

Example: let’s say you have a contact article (in section ‘about’) with a title and some text in the body that should be displayed above the actual contact form. You can assign a specific article form to only this article using ‘override form’ in ‘advanced options’. The article form (let’s say ‘contact_article’) can look like this:

<h3><txp:title /></h3>
<txp:body />
here your contact form code

If you prefer to keep the contact form code in it’s own (misc) form, the article form can look like this:

<h3><txp:title /></h3>
<txp:body />
<txp:output_form form="your_contact_form" />

You can also put <txp:output_form form="your_contact_form" /> inside your article.

(You say you have a PHP contact form, but have a look at zem_contact_reborn.)

If I had to do this, I’d make ‘team’ a category. URLs like /section/category/ and /section/category/title can be made with gbp_permanent_links.

Offline

#3 2008-10-29 23:32:04

driz
Member
From: Huddersfield, UK
Registered: 2008-03-18
Posts: 441
Website

Re: Textpattern Semantics

EDIT : please see here instead: http://forum.textpattern.com/viewtopic.php?pid=192533#p192533

Last edited by driz (2008-10-30 12:19:50)


~ Cameron

Offline

Board footer

Powered by FluxBB