Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-06-05 09:30:38

HAC
Member
From: Vietnam
Registered: 2009-06-05
Posts: 33
Website

Did I miss something: "Can not create Static Page"

Hello everyboby!

I’m a new user of TextPattern! I found that this script is powerful via reading through out all the FAQ. But at my first attempt, I got a difficulty. That is “Creating Static Pages”, for example: about, contact, ..

I did read the answer at “http://textpattern.com/faq/78/ive-installed-textpattern-now-what”. BUT sorry for my bad following! My static page show NOTHING. I wonder if i missed something? (I use TextPattern 4.0.8)

Step by step what I did to creat an “about page”.

1. Creat a new article form named static_article

presentation -> Forms -> Create new form. I filled the big box with

<h3><txp:title /></h3> <p><i><txp:excerpt /></i></p> <txp:body />

name (required) is static_article

and I choose Type is article

Save New

DONE step 1

2. Creat a new page template

presentation -> Pages -> .. scrolling the page down, i type static_page in the box follow or copy page as

click copy button. now i have a new page template named static_page.

FIND:

<txp:article form=“article_listing” limit=“5” />

REPLACE by:

<txp:article limit=1 form=“static_article” status=“sticky” />

DONE step 2

3. Create a new section named contact

presentation -> sections -> I create a new section named contact

then i change Uses pages of contact section to static_page

DONE step 3

4. Last step

I go to Content -> Write

Title = “contact me”

body = “just a message ….. contact me via email abc@abc.com”

Excerpt = “thankU for visiting my site”

on the right
- In status box, i select Sticky
- In sort and display, i select contact in section listbox

and then, I click SAVE

DONE Step 4

——————————-
Now, I return to the website: on the left, i have a menu with

Home About Articles contact

- I click contact link

and… it display nothing…

except the

- left menu,
- the top title “”,
- and the right menu with “

TextBook
Textpattern
Txp Resources

THE CENTER AREA HAS NOTHING!

i wonder if i missed something!

I looking forward to receiving your help.

Thank you so much!

Best regards,
HAC

Offline

#2 2009-06-05 14:04:35

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,091
Website GitHub Mastodon Twitter

Re: Did I miss something: "Can not create Static Page"

did I miss something?

yes you did:)

This <txp:article limit=1 form="static_article" status="sticky" /> lists articles in individual articles view. If you want the front page (which is the equivallent of an article list) to list something in particular you have to have something like <txp:article limit="1" listform="static_article" form="static_article" status="sticky" />. Note the 2 differences. Quotations around 1 and listform as well as form.

Having said this if you have in mind a particular article you would like to appear instead of the above you could use

<txp:article_custom id="10">
<p><i><txp:excerpt /></i></p>
<txp:body />
</txp:article_custom>

Note that the content of your excerpt should start with a space so as to escape the textile enabled paragraph.


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#3 2009-06-05 14:20:30

HAC
Member
From: Vietnam
Registered: 2009-06-05
Posts: 33
Website

Re: Did I miss something: "Can not create Static Page"

I found my mistake and fixed it successfully.

And thanks again for your tip: Note that the content of your excerpt should start with a space so as to escape the textile enabled paragraph. I didn’t know that before!

Thanks for your help!

Offline

Board footer

Powered by FluxBB