Oh... just occurred to me I can use relative addressing in the index.php.
 Not sure why I didn't think of that before.  Can't say how many times I
have put up a site and couldn't figure out why I was ending up somewhere
else.  This would solve it for all new sites (which start out a
preconfigured blank site template).

$BOLTadmin='somename';
#$cleanURL='http://hostname/';
#$fieldURL='http://hostname/field/';
$cleanURL='/';
$fieldURL='/field/';
date_default_timezone_set('America/New_York');
include_once("../boltwire/barn/scripts/engine.php");


-- 
Kevin Reed
TNET Services Inc.


On Sat, Aug 31, 2013 at 3:28 AM, Kevin Reed <[email protected]> wrote:

> Never really thought about this too much before but...
>
> If you want to display an image on a page you would use
>
>   [^imagename.png^]
>
> and it knows to get the link to it from [ROOT]/field/files/imagename.png
>
> But what if you want to provide a link to the same object.
>
>   [[/field/files/imagename.png|imagename.png]]
>
> Doesn't work, you get Invalid Link.
>
> Instead you have to give a full http URL to the object to do that.
>
>   [[http://sitename/field/files/imagename.png|imagename.png]]
>
> (also think PDF, DOC, some other non really displayable object that you
> want to provide a link to)
>
> Up to this point it has been just kind of a pain that you could just
> provide a relative link to the object using [[ ]].  When you have times you
> want to use the URL of the object, not display it.  Same is true for some
> other objects like PDF's.
>
> 1) Is there a syntax that would allow me to use [[ ]] to get to the object
> without providing a full link that I might have just missed?
>
> 2) Does someone have a function they use to already do this?  Ideally, it
> would allow for direct reference from anything from the top of the document
> root of the site but still be relative in form.
>
>  [[/scripts/somescript.php]]Somescript]]
>  [[/field/files/2003-12-meeting.pdf|2003-12 Meeting Notes PDF]]
>
> If not, I will write one... using some sort of other object descriptor
> instead of [[ ]].     Just thought I would ask.
>
> The goal btw is to make what is already a pretty relative format for a
> site completely relative.  Outside of this issue and the need to modify the
> index.php in what most people call as the field folder for the sites URL,
> the site is very relative and is easy to move from one virtual host to
> another same server or different.  I move sites around all the time and it
> one of the better features of the BW system.
>
> I plan on creating an rsync system which snarfs various admin virtual
> hosts on various client VPS servers to a central location which would allow
> access to their documentation, configuration notes etc... if their sites go
> down.  The less amount of tweaking needed after the rsync the better.
>

-- 
You received this message because you are subscribed to the Google Groups 
"BoltWire" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/boltwire.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to