Women in Technology

Hear us Roar



Article:
  ColdFusion MX on Mac OS X, Part 4
Subject:   One last Q (I hope:))
Date:   2003-01-31 15:24:40
From:   brianimator
First,


Thank you Dick for your help. I've followed your directions to a tee. After having done so, I find myself in the same bind I was in yesterday...


How do I get around the problem of having to change all of my site relative links in my site from:


/site_name/departments/employees
to:
/cfusion/site_name/departments/employees
?????


Thanks in advance!

Full Threads Oldest First

Showing messages 1 through 2 of 2.

  • One last Q (I hope:))
    2003-01-31 16:54:14  dicklacara [View]

    Are you talking about HTML (a href) links?

    Are you talking about URLs used in CF tags?

    Give me some examples?

    Dick
    • One last Q (I hope:))
      2003-01-31 19:48:54  brianimator [View]

      this is a portion of my site's structure, and where it currently sits:

      -Jrun4
      -- servers
      ---- admin
      ---- default
      ---- lib
      ---- samples
      ---- seawidgets - (the server I created)
      -------- CFIDE
      -------- cfusion
      ---------------- seattle_widgets
      ------------------------ _common_elements
      ------------------------ departments
      ------------------------ education
      ----------------------------- index.html
      ----------------------------- tech_tips
      ----------------------------- healthline
      ----------------------------- patient_bios
      ------------------------ home
      ----------------------------- home_random
      ----------------------------------- home1.html
      ----------------------------------- home2.html
      ----------------------------------- home3.html
      ------------------------ index.cfm - (a re-direct that points to home/home_random/home1.html)
      ------------------------ news
      ------------------------ products
      ------------------------------ widgets_1
      ------------------------------------ index.cfm
      ------------------------------------ detail.cfm
      ------------------------------ widgets_2
      ------------------------------ widgets_3
      ------------------------ tech_notes
      -------- default-ear
      -------- SERVER-INF


      So in all of the above directories, I have either an index.html or index.cfm file.

      Since I'm using essentially the same Flash navigation bar on all pages, (the only difference is their original state which highlights the current page) I've designed it so that links from it point back to the root, then down into the appropriate folder/subfolder.

      This way, the link from the Flash navigation to

      /departments

      will get you to "departments" from either

      seattle_widgets/education/index.html

      or

      seattle_widgets/education/techt_tips/index.cfm

      Now, in order to get things to work, I'm having to go through and change all my links pointing to the root, so that now a link that read like this:

      /departments

      has to read like this:

      /cfusion/seattle_widgets/departments


      Other oddities:

      I'm also forced now to include "index.html" in my hrefs,
      so now a link like this:

      /cfusion/seattle_widgets/departments

      has to change to change to this:

      /cfusion/seattle_widgets/departments/index.html

      Like I said, aarrgghhh!!