Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-05-02 09:25:00

otti
Member
From: Australia
Registered: 2008-04-16
Posts: 75
Website

Change from messy to section/title

Another beginner question.

I almost finished my first site in Textpattern but left the Permanent link mode as messy from the start. When I want to change now the preferences from messy to section/title, the site still works, but all the images (links) don’t get displayed anymore.

Is there any other setting I have to take care of?

Thanks very much again.

otti

Offline

#2 2008-05-02 12:32:51

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

Re: Change from messy to section/title

How did you call the images (<txp:image />, <txp:article_image />, plain XHTML)? If XHTML can you post the code you used?

Offline

#3 2008-05-02 12:42:37

otti
Member
From: Australia
Registered: 2008-04-16
Posts: 75
Website

Re: Change from messy to section/title

Hi Els,

Here are some examples:

<txp:section link=1 name=“Home”><img src=“images/BlencoweBooksLogo_84_112.jpg” alt=“Logo Blencowe Books” width=“84” height=“112” /></txp:section>

<txp:section link=1 name=“The-Stone-Testament”><img src=“images/STFront_W130_Short.jpg” alt=“Cover Image Book The Stone Testament” width=“130” height=“80” /></txp:section>

Should I have loaded the images via the images tab under content? I thought it would be good enough to load them as above with the path directing to the image folder.

otti

Offline

#4 2008-05-02 16:02:26

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

Re: Change from messy to section/title

No you don’t have to upload them through the images tab. Try putting a slash before images, like this:

<img src="/images/BlencoweBooksLogo_84_112.jpg" />

If you do decide to upload them through the images tab, you can simply use <txp:image id="123" />, and the path will automatically be correct.

Offline

#5 2008-05-03 00:45:23

otti
Member
From: Australia
Registered: 2008-04-16
Posts: 75
Website

Re: Change from messy to section/title

Thanks Els,

that did the trick. Can you possibly explain why I needed the forward slash just because I changed from messy to section/title?

Cheers
otti

Offline

#6 2008-05-03 01:34:48

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Change from messy to section/title

Simple: with messy urls you never leave index.php, but clean urls fake a folder structure.

So let’s say you’re in section “blog” with messy urls: http://yourdomain.com/index.php?s=blog. This images/STFront_W130_Short.jpg would be translated to: http://yourdomain.com/images/STFront_W130_Short.jp

With clean urls: http://yourdomain.com/blog. This: images/STFront_W130_Short.jpg would be translated to: http://yourdomain.com/blog/images/STFront_W130_Short.jpg which obviously doesn’t exist.

By putting in the starting slash in front of “images” you are forcing the browser to start from the root of the domain, and not from the current “folder”.

Offline

#7 2008-05-03 02:53:29

otti
Member
From: Australia
Registered: 2008-04-16
Posts: 75
Website

Re: Change from messy to section/title

Thank Mary,

Now it makes sense.

I’m really enjoying Textpattern more and more. Thanks to all you people answering my questions.

otti

Offline

Board footer

Powered by FluxBB