Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2008-09-16 06:28:43
- Sheru
- Member
- From: Kathmandu, Nepal
- Registered: 2007-05-09
- Posts: 96
Textpattern URL + messed up web layout
Dear All,
I have given direct URL in pages. Those URL values are from the section.
It’s working up to URL below. All the layout is OK.
http://localhost:8888/designing/blog
But as soon as the url becomes
http://localhost:8888/designing/blog/
Then content displayed correctly but my whole css design is lost.
Similarly the URL below has lost the CSS design.
http://localhost:8888/designing/blog/17/packing-books#comment
I need your help. Thank you so much.
Sheru
Last edited by Sheru (2008-09-16 06:29:24)
Offline
Re: Textpattern URL + messed up web layout
What are you using to link to your CSS? Try the following if you’re not using <txp:css/>
:
<link href="<txp:site_url/>path/to/file.css" rel="stylesheet" type="text/css"/>
Offline
#3 2008-09-16 06:54:01
- Sheru
- Member
- From: Kathmandu, Nepal
- Registered: 2007-05-09
- Posts: 96
Re: Textpattern URL + messed up web layout
Dear Jon-Michael Deldin,
Greetings from Sheru!
Thank you so much for your help. It’s now working perfectly.
Once again thank you for your great help.
Sheru
Offline
#4 2008-09-16 07:23:31
- Sheru
- Member
- From: Kathmandu, Nepal
- Registered: 2007-05-09
- Posts: 96
Re: Textpattern URL + messed up web layout
I have got another problem
As I click on article comment which is in blog (The URL is: http://localhost:8888/designing/blog/17/packing-books#comment)
New window follows, then after while clicking on other menu URL becomes http://localhost:8888/designing/blog/17/projects. Clicking on menu Projects remains on the same window. All other menu behaves like that. But actual link of Project menu is http://localhost:8888/designing/projects. This case is only in blog page and clicking on comment.
Thank you
Sheru
Last edited by Sheru (2008-09-16 07:24:50)
Offline
#5 2008-09-16 09:17:11
- Sheru
- Member
- From: Kathmandu, Nepal
- Registered: 2007-05-09
- Posts: 96
Re: Textpattern URL + messed up web layout
Dear Jon-Michael Deldin,
Thank so much for your help once again.
I missed in menu url what you have suggested and added in menu
<li><a href="<txp:site_url />about">ABOUT</a></li> instead of <li><a href="./about">ABOUT</a></li>
Now this works fine.
Thank you so much
Sheru
Offline
#6 2008-09-16 14:50:18
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Textpattern URL + messed up web layout
Sheru, to avoid this kind of problems you can do this (if ‘about’ is a section):
<li><txp:section name="about" link="1">About</txp:section></li>
or
<li><txp:section name="about" link="1" title="1" /></li>
This way the URLs will automatically be right, even if you should change from clean to messy URLs or vice versa. You can do the same with categories.
Offline