Search the web
Sign In
New User? Sign Up
nanoblogger
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Message search is now enhanced, find messages faster. Take it for a spin.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Image URLs   Message List  
Reply | Forward Message #1108 of 1143 |
Re: [nanoblogger] Re: Image URLs

Thanks Terry,

I must be foggy this monday morning. It's not clear to me how this is going to help.

Is the /entry/mod/bas_url.sh plugin only going to apply to entries that have been modified?
It seems to me I need something that will apply to all entries.

Moreover, any solution should keep the local copy of the blog relative and make the published version absolute. It is the lack of an absolute reference that is breaking the published version.

I can imagine writing a publish script that would would copy my blog locally, scan it for img tags and rewrite them.  Then publish the result. Is there a better way?

-Val


On Jan 10, 2009, at 4:32 AM, terrytesting wrote:

--- In nanoblogger@yahoogroups.com, Val Schmidt <vschmidt@...> wrote:
>
> One of the things I like most about nanoblogger is that it's easy to 
> take my blog with me when I'm not connected to the web. But I've run 
> into a snafu that maybe some of you will know how to fix.
> 
> If I add an image to my blog with a relative path name it doesn't 
> resolve properly in the nanoblogger archives.
> 
> But if I add an image blog with an absolute url, then my images don't 
> resolve properly on the local version of my blog (which isn't served 
> up by a web server).
> 
> Is there some functionality in nanoblogger to handle this kind of 
> things?
> 
> Thanks,
> 
> Val

I had the same problem and it was fixed by Kevin's response here

Terry, thanks. You want to use plugin/entry/mod/base_url.sh. It
should already be in your setup.

Change the links in your post to read something like:
'href="%base_url%images/example.jpg"'.

Currently this feature is limited to posts, but future versions of NB
will extend this type of functionality to articles.

As a temporary fix for articles, you can recreate it as a page format
plugin (plugin/page/format/base_url.sh) and specify it as a format in
your article's metafile.

e.g. "FORMAT: base_url, markdown"

You then create links similar to how you would in your posts.

Thanks,
Kevin


------------------------------------------------------
Val Schmidt
CCOM/JHC
University of New Hampshire
Chase Ocean Engineering Lab
24 Colovos Road
Durham, NH 03824
e: vschmidt [AT] ccom.unh.edu
m: 614.286.3726




Mon Jan 12, 2009 2:19 pm

valschmdt
Online Now Online Now
Send Email Send Email

Forward
Message #1108 of 1143 |
Expand Messages Author Sort by Date

One of the things I like most about nanoblogger is that it's easy to take my blog with me when I'm not connected to the web. But I've run into a snafu that...
Val Schmidt
valschmdt
Online Now Send Email
Jan 10, 2009
2:17 am

... I had the same problem and it was fixed by Kevin's response here Terry, thanks. You want to use plugin/entry/mod/base_url.sh. It should already be in your...
terrytesting
Offline Send Email
Jan 10, 2009
9:32 am

Thanks Terry, I must be foggy this monday morning. It's not clear to me how this is going to help. Is the /entry/mod/bas_url.sh plugin only going to apply to...
Val Schmidt
valschmdt
Online Now Send Email
Jan 12, 2009
2:19 pm

... Hi yes I had to amend my posts and edit the the img code to href="%base_url%images/example.jpg" But I only had a couple of entries so it was no problem ...
terrytesting
Offline Send Email
Jan 12, 2009
10:06 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help