Thanks for that John,

        yeah i've played about with the vars and the problem is
        they're wrong hehe.  Fusebox.rootpath is pretty useless to me
        in general so far... For the cfmodules I've added a variable
        request.blocksPathToRoot which fixes it up.

        There are a couple of things I've changed in openforums to get
        this working, do they sound right?:

        a) I've had to remove references to fusebox.rootpath in all
        links etc in any circuit other than the home circuit.  All
        exits now point simply to #self#.  It works, but seems
        strange.

        b) I've had to use a cfset request.queryPath in the
        fbx_settings of every sub-circuit, instead of cfparam, because
        I need this:

                #fusebox.rootpath#queries

        to use the fusebox.rootpath as pertains to that circuit.
        Otherwise the globally set value in the home fbx_settings
        overrides it and because fusebox.rootpath is empty when called
        from the home circuit....

cheers,
Toby



Thursday, April 04, 2002, 1:13:51 PM, you wrote:


JQv> for custom tags, I use
JQv> <cfset customtagsdir = "customtags/">
JQv> in the top-level fbx_settings
JQv> and then invoke it where needed as

JQv> <cfmodule template="#fusebox.rootpath##customtagsdir#mycustomtag.cfm">

JQv> this will work from anywhere within the actual fusebox app. If your path is
JQv> to somewhere else then you will have to adjust (and it may not be pretty).
JQv> If it is outside the app, up a level, then you *could* define it as

JQv> <cfset customtagsdir = "../customtags/">

JQv> but you know what? I've gotten out of the habit of throwing custom tags in
JQv> the generic Cfusion/CustomTags path.  that works great on one server but
JQv> when I move my app I want to (a) be able to move the whole app without
JQv> thinking "uh, did I forget a custom tag that I need?" and (b) don't want to
JQv> worry that a updated version of a custom tag will not be
JQv> backwardly-compatible and therefore "break" my app. To heck with it. All
JQv> that I waste is a few extra bytes of extra disk space, one of the cheapest
JQv> commodities on the market.

JQv> here's another point to keep in mind :  fusebox.rootpath always results in
JQv> either a empty string "" or it results in a relative path that ends with a
JQv> slash.  Ditto with fusebox.currentpath.   if you cant get things to work,
JQv> then try just outputting the value of these variables just before your call
JQv> to your custom tag and ensure that they are what you THINK they should be.


JQv> ----- Original Message -----
JQv> From: "Toby Tremayne" <[EMAIL PROTECTED]>
JQv> To: <[EMAIL PROTECTED]>
JQv> Sent: Wednesday, April 03, 2002 9:36 PM
JQv> Subject: Blocks directory and fusebox.rootpath


JQv> Hi all,

JQv>         wrestling with fusebox.rootpath again.  I'm setting up
JQv>         openforums to work with this variable, but I've run into yet
JQv>         another snag.

JQv>         I have several files in the /blocks directory, and obviously
JQv>         enough they're used as include.  The thing is, because they're
JQv>         included they take on the rootpath of the circuit they're
JQv>         being included from, and means fusebox.rootpath doesn't work
JQv>         for includes / cfmodules within the block file.

JQv>         for instance, dsp_message, a re-useable block to display a
JQv>         single message in a thread, calls a couple of custom tags.  I
JQv>         tried
JQv>         template="#fusebox.rootpath#customtags/translateQuotes.cfm"
JQv>         and it died, because it's being included from the home circuit
JQv>         and there is nothing in the fusebox.rootpath variable.  Yet
JQv>         the cfmodule call is obviously treating the current path as
JQv>         being the blocks directory, so the correct path would be:

JQv>         template="../customtags/translateQuotes.cfm"

JQv>         How on earth do I get this towork properly?  Am I missing
JQv>         something?

JQv> cheers,
JQv> Toby

JQv> ----------------------------------------------------------------------------
JQv> --------

JQv> Life is Poetry, write it in your own words

JQv> ----------------------------------------------------------------------------
JQv> --------

JQv> Toby Tremayne
JQv> Senior Technical Consultant
JQv> Code Poet and Zen Master of the Heavy Sleep
JQv> Lyricist Software
JQv> www.lyricist.com.au
JQv> m: +61 416 048 090
JQv> icq: 13107913







------------------------------------------------------------------------------------

        Life is Poetry, write it in your own words

------------------------------------------------------------------------------------

Toby Tremayne
Senior Technical Consultant
Code Poet and Zen Master of the Heavy Sleep
Lyricist Software
www.lyricist.com.au
m: +61 416 048 090
icq: 13107913

==^================================================================
This email was sent to: [email protected]

EASY UNSUBSCRIBE click here: http://topica.com/u/?bUrFMa.bV0Kx9
Or send an email to: [EMAIL PROTECTED]

T O P I C A -- Register now to manage your mail!
http://www.topica.com/partner/tag02/register
==^================================================================

Reply via email to