Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-02-06 03:59:39

ivnj
Member
Registered: 2007-02-04
Posts: 20

Static Page?

I found this.

http://textpattern.com/faq/31/how-do-i-manage-static-pages

I did everything. I created a section called “ContactUs”. I created the static form and page.

I linked the section to the static. And linked the article to the section and called it sticky.

Everything is cool now. So I must be doing the link wrong.

<li><a href=”<txp:section link=1 title=1 name=“ContactUs”/>”>ContactUs</a></li>

Do I have change link=1 and title=1 or is something else wrong.

The link ContactUs shows up but doesn’t go to the Contact Us section. Stays on the home page.

Thanks,
ivnj

Offline

#2 2007-02-06 16:34:32

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

Re: Static Page?

<txp:section link="1" /> will create the html <a href=...> tag. So with your tag it’s created twice. Use this:

<li><a href="<txp:section name="ContactUs" />">Contact Us</a></li>

BTW, you’d better keep all your section and category names lower case:
name: contact-us
title: Contact Us

Last edited by els (2007-02-06 16:35:13)

Offline

#3 2007-02-06 21:24:07

ivnj
Member
Registered: 2007-02-04
Posts: 20

Re: Static Page?

I did that. I made it lower case

<li><a href=”<txp:section name=“contactus” />”>Contact Us</a></li>

I pasted that into “default page” and “static_page”.

But when I goto site and click Contact US I still see this.

http://complaintcentral.net/textpattern404/contactus

Page not found. So it’s still looking for an external file.

I want it like this. Like in another post here. http://johnwozniak.com/cms/

I don’t want to copy him or steal anything. But just the links like he has. Each tab (Articles, Resoujrces, etc) goes to another page. But doesn’t leave his site. Each tab stays within the same site and same template. It doesn’t open another external file.

Is this not the way to do that.

Thanks,
ivnj

Last edited by ivnj (2007-02-06 21:26:34)

Offline

#4 2007-02-06 22:23:37

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

Re: Static Page?

Some questions:

  • There is an article in section ‘contactus’?
  • Did you change the section name also in Presentation > Sections? (not just in the tag)
  • Which page template is section ‘contactus’ set to use (in Presentation > Sections)?
  • Is there an article tag on that page and what does it look like?

Also (not that it helps here) the code I gave you is better like this:

<a href="/<txp:section name="contactus" />/">Contact Us</a>

(I forgot the slashes, sorry about that.)

Offline

#5 2007-02-06 23:06:06

ivnj
Member
Registered: 2007-02-04
Posts: 20

Re: Static Page?

Yes in Presentation Sections that was changed too.

These are what the three files look like. The whole text from each.

http://complaintcentral.net/cex/staticbug/

static_article was created in the Form under Presentation as the article said to do so.

static_page and default were created in the Page under Presentation.

The section is linked to static_page and the article is linked to the section. But I think I’m missing something.

Thanks for being so patient,
ivnj

Offline

#6 2007-02-06 23:19:22

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

Re: Static Page?

Contact Us ;)

Either you’ve set Permanent link mode to ‘messy’ or your host doesn’t support clean urls. (I should have thought of that sooner…)

Edit: in messy mode your link should be:

<a href="/index.php?s=<txp:section name="contactus" />">Contact Us</a>

Better still:

<txp:section link="1" title="1" name="contactus" />

(This will work no matter what permanent link mode you use.)

Last edited by els (2007-02-06 23:23:38)

Offline

#7 2007-02-06 23:44:26

ivnj
Member
Registered: 2007-02-04
Posts: 20

Re: Static Page?

I updated my static_page and default pages.

<ul id=“navlist”>

<li><txp:link_to_home>Home</txp:link_to_home></li>

<li><txp:section link=“1” title=“1” name=“contactus” /></li>

<li></li>

<li><a href=”“>Link3</a></li>

<li><a href=”“>Link4</a></li>

</ul>

I get the links now. No need for A HREF. But I still get.

404 page not found.

Thanks,
ivnj

Offline

#8 2007-02-07 17:15:33

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

Re: Static Page?

Go to Admin > Preferences. Change whatever you have in ‘Permanent link mode’ to ‘Messy’. Does it work then?

Offline

#9 2007-02-07 22:47:20

ivnj
Member
Registered: 2007-02-04
Posts: 20

Re: Static Page?

Yes finally everything works now. Thanks for being so patient with me. Messy mode did the trick.

Thanks,
ivnj

Offline

Board footer

Powered by FluxBB