Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-07-12 12:30:06

elduderino
Member
From: Whitstable. south-East England
Registered: 2006-01-02
Posts: 175
Website

problem with link to another section.

HI,

I think i must be missing something here.

Ive got this code

<code><a href=”<txp:site_url />testing”>home</a></code>

and then ive got a section called testing setup using a custom page and style template of my own.

When i click the link to “ home” on my default page it says page cant be found:

The requested URL /textpattern/about was not found on this server.

Im running a local server at the mo

any ideas?

Last edited by elduderino (2006-07-12 14:49:02)

Offline

#2 2006-07-12 15:59:22

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

Re: problem with link to another section.

Are you sure you put that code on the right page? When you view the default page in your browser, and then view the source, what is the code for the link to home you see there?

Offline

#3 2006-07-12 16:11:04

elduderino
Member
From: Whitstable. south-East England
Registered: 2006-01-02
Posts: 175
Website

Re: problem with link to another section.

HI there,

Yeah that code is definatley on the default page and this is the source code from the default page:

<code><li><a href=“http://localhost/textpattern/testing”>home</a></li></code>

Ive got a section named testing which uses my own page and style. I dont get it

Offline

#4 2006-07-12 16:32:02

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

Re: problem with link to another section.

Can it be your section’s title or name? I mean that one is ‘testing’ and the other is ‘about’?

Offline

#5 2006-07-12 16:42:42

elduderino
Member
From: Whitstable. south-East England
Registered: 2006-01-02
Posts: 175
Website

Re: problem with link to another section.

ok, im just using the default ‘about’ section now to make sure its nothing to so with my custom page/styles. This page is using the default templates.

the code i have to link to it in my default page is:

<code><li><a href=”<txp:site_url />about”>about</a></li></code>

and this is parsed:

<code><li><a href=“http://localhost/textpattern/about”>about</a></li></code>

the error i get is as before:

The requested URL /textpattern/about was not found on this server

I cant see anything wrong with what im doing.

Offline

#6 2006-07-12 17:03:41

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

Re: problem with link to another section.

Could it be that clean urls don’t work on your server? If you switch to messy, does it work?

Offline

#7 2006-07-12 17:45:56

elduderino
Member
From: Whitstable. south-East England
Registered: 2006-01-02
Posts: 175
Website

Re: problem with link to another section.

No unfortunatley not. Ive looked in to diagnostics and it says im using section/title permanent link mode. Ive made sure ive got it set to this in admin.

Ive tried setting it to messy and removing ht access but that doesnt work either!

Im going to un-install my server and txp because now links to comments pages and files are not working!

Last edited by elduderino (2006-07-12 17:49:32)

Offline

#8 2006-07-12 18:18:16

elduderino
Member
From: Whitstable. south-East England
Registered: 2006-01-02
Posts: 175
Website

Re: problem with link to another section.

arrgghhh! I un-installed- re-installed everything and then realised that i hadnt changed my link in my default section from:

<code> <li><a href=”<txp:site_url />about”>about</a></li></code>

to this:

<code><li><a href=”<txp:site_url />index.php?s=about”>about</a></li></code>

Nevermind. Thanks for your help again Els!

Offline

#9 2006-07-12 20:48:53

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

Re: problem with link to another section.

We always keep learning :)

Does that mean you’ve got it working now?

Offline

#10 2006-07-12 21:47:09

elduderino
Member
From: Whitstable. south-East England
Registered: 2006-01-02
Posts: 175
Website

Re: problem with link to another section.

yep, its working a treat thanks! Ive got a home page with excert & file lists, linklists etc which then links off to weblog page, a half working contact page ( zem plugin isnt quite working for me!) & a link to a blank archives page which im just off to work out how to create now!

Thanks

Offline

Board footer

Powered by FluxBB