Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
image not displayed
#8
Interesting thread... good point. Moving a site can be painful if there are many images in pages contents.

I can think of another simple way to do this (preferably from the beginning).

Go to settings. Don't use fancy permalinks, but:
- default URL schema (URL would be "SITE/index.php?id=page")
Or if you installed 2.02, you can use one of these:
- Custom permalink (mod_rewrite enabled): %slug% ("SITE/page")
- Custom permalink: ?id=%slug% ("SITE/?id=page")

(You see, no parent in URL.)

Now link your images with one of these relative paths:
“data/uploads/041.jpg”
or:
“./data/uploads/041.jpg”

I've only tested on localhost, but I think it should work... Even images are correctly displayed inline in the page editor.

Note: Not only images, you can also link your site's pages with relative URLs (<a href="page">) (Edit: <-- this would be for custom permalink %slug%)
Reply


Messages In This Thread
image not displayed - by jeel2008 - 2010-09-05, 20:33:55
image not displayed - by Zegnåt - 2010-09-05, 20:57:09
image not displayed - by jeel2008 - 2010-09-05, 21:09:10
image not displayed - by Zegnåt - 2010-09-05, 21:22:14
image not displayed - by jeel2008 - 2010-09-05, 21:31:45
image not displayed - by eric@rosewood - 2010-09-08, 00:19:07
image not displayed - by Zegnåt - 2010-09-08, 05:36:04
image not displayed - by Carlos - 2010-09-08, 08:07:55



Users browsing this thread: 1 Guest(s)