How do I code relative links as function parameters within Templates?

I am a newcomer looking for best practices for a "How Do I?" properly code relative links as function parameters within an Adobe template (DWT) which accomodates page creation at 2 different level of folders. Dreamweaver doesn't appear to handle auto-correction of relative links as function parameters as far as I can see.  It's not clear to me what the best practice I should be following.  While this is not exactly a SPRY question, I am hoping that someone using the Spry.Data.XMLDataSet had already found the best practice to use.
My Site
-- Multiple pages at this level    and the parameter needs to be "_includes/UnitSideNavigation.xml"
SubFolder
-- Other pages at this level.       and the parameter needs to be "../_includes/UnitSideNavigation.xml"
And this is the particular code snippet within a non edtable template area I would like to work for 2 levels of pages created from the template.
<script type="text/javascript">
var dsItems1 = new Spry.Data.XMLDataSet("_includes/UnitSideNavigation.xml", "/links/firstlevel");
var dslinks = new Spry.Data.NestedXMLDataSet(dsItems1, "secondlevels/secondlevel");
</script>
My environment is Windows/Vista using latest CS4 dreamweaver.
Any pointers appreciated. This is learn time for me. Hope I have made myself clear. Andy

I use serverside includes instead of DWT for exactly that reason. Not only that, if you change anything within the template you must re-upload all of the files affected by the change; only the modified include file needs to be uploaded.

Similar Messages

  • How do I make relative link in a pdf

    How can I make a relative link in a pdf file, so that I can put the pdf file and the files on a usb memory stick and send it out to our costumers. I use Acrobat XI Pro. I can´t possibly be the only person with that problem, so please, somebody help me with a solution.

    Thank you for your answer, but I have already tried that, I did all the work with links in the pdf to jpg´s in a folder (and there are a lot of links), and put it all on a usb memory stick, gave it to one of our costumers for testing and it didn´t work, it keeps referring to our server. I had a similar project in Excell, where I had to link the text in Excell to a product related file, after that I put it on a memory stick, and that worked without any problems, but off course Excell is a whole other world. I just think that it shouldn´t be so complicated in Acrobat, so I´m hoping you have a different solution ;-)

  • How can I add a link to an item within a workflow email - which will always find the item - even if it's status has changed?

    I've used the method within the SharePoint designer to add a link to the workflow context current item URL, but when the current item status changes then obviously this link will no longer work.
    How can I change this link so that it will always open the item, even if someone has changed it within the list, before I clink on the link?
    This is an important one as over 300 people will use the list and many of these will be emails about items on the list will be in different time zones.  I don't want to have lots of mails from people saying "this list doesn't work" as it's
    critical they keep using it.
    Please help.
    P.S.  I don't know if the <href> method will work, so if someone can confirm to me then that would be great.

    Hi,
    According to your post, my understanding is that add a link to an item within a workflow email.
    I’ m not very clear about the status you said. Please descript more detail which URL do you want to display.
    Per my knowedge, you can display the following url in your email body:
    [%Workflow Context: Current Item URL%]
    [%Workflow Context: Current Site URL%]
    [%Workflow Context: Workflow Status URL%]
    [%Current Item: Encoded Absolute URL%]
    Please start the workflow automatically when an item is changed and changed.
    No matter how you  edit the item or update the approve status, the URLs remains the same.
    Thank you for your understanding.
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • How do I make relative links in Acrobat pdf 10

    Hi there,
    I have a pdf file with sounds attached and would like to make these links relative instead of absolute so the document can be sent to
    others and still work.
    Is there a way to do this in acrobat 10
    thanks

    Thank you for your answer, but I have already tried that, I did all the work with links in the pdf to jpg´s in a folder (and there are a lot of links), and put it all on a usb memory stick, gave it to one of our costumers for testing and it didn´t work, it keeps referring to our server. I had a similar project in Excell, where I had to link the text in Excell to a product related file, after that I put it on a memory stick, and that worked without any problems, but off course Excell is a whole other world. I just think that it shouldn´t be so complicated in Acrobat, so I´m hoping you have a different solution ;-)

  • How to make site root-relative links work in DW and Server both?

    See details on buggy DW image link behavior, below. My question is:
    1) how to make site root-relative links work in DW and Server both? Or…
    2) how to reliably automate the change of several hundred legacy root-relative links of the form
    /images/image.jpg  to document-relative?
    That is, to
    ../images/image.jpg or
    ../../images/image.jpg or
    ../../../images/image.jpg etc…depending on where the directory is.
    The old format (/images/image.jpg ) used to work fine in my previous DW 8 configuration but appear grey in DW after “upgrading” to DW cs5.5 mac. (they look fine on the server, but it’s hard to edit image-heavy pages locally when they are all grey).
    I tried changing the files to how DW creates root relative links now:
    /public_html/images/image.jpg, which is a very easy, attractive root flow since there’s a one-to-one mapping. These look great in DW but are broken on the server!
    I looked at the “advanced” site setup, and it looked like it might be possible to nuke the /public_html/ part of my server info…but it also looked like there was the potential for doing damage changing these settings, which are automatically generated from our server connection settings, which seem to work.
    The “links relative to document/ site root” toggle…does that change how DW interprets existing links, or just change the default when you are adding a link?  I have made 80% of the file links document relative…before wondering if root-relative isn’t better?
    It sure seems less ambiguous for all those images if theres a way to make root relative work for DW design view, DW link check, and server.
    Summary of buggy behavior: (see test with images here)
    "old style" site root link
          /images/img_book/WScover120x150_NEW.jpg
          Design veiw in DW: broken (grey w/ broken icon)
          Link check in DW: "external link" (i.e., uncheckable, + file could appear orphaned)
          Browser: good
          Ease of switching: n/a (existing format)
    "new style" site root relative link
          /public_html/images/img_book/WScover120x150_NEW.jpg
          Design veiw in DW: good
          Link check in DW: good
          Browser: broken
          Ease of switching: easy
    Document relative link
          ../../images/img_book/WScover120x150_NEW.jpg
          Design veiw in DW: good
          Link check in DW: good
          Browser: good
          Ease of switching: hard (how to automate?)
    Absolute link
          http://www.oasisdesign.net/images/img_book/WScover120x150_NEW.jpg
          Design veiw in DW: broken (grey w/ broken icon)
          Link check in DW: external (i.e., uncheckable, + file could appear orphaned)
          Browser: good
          Ease of switching: n/a...not a real option
    Thanks!
    Similar discussion on "/"

    Hello again Jon!
    Thanks for jumping on this.
    All clear and understood about where publc_html is etc.
    No contemplation of nuking the actual public_html directory on the server, just the "/public_html" text string at the start of the DW-generated links.
    "/public_html" is automatically added to the front of the link in DW if I create the link with any of the GUI tools, if I have "site root relative" selected. And ""/public_html" ends up in the code, and gets uploaded that way to the server, where it (obviously) doesn't work.
    Doesn't sound like it is supposed to work this way. Also, what seems to be the usual root relative format (/images/image.jpg) shows as a broken link in the GUI and an external link in the DW link check. All this togther makes me thinkI have some obscure setting incorrect?
    The setting that caught my eye is manage sites/ site setup/ advance settings/ local info/ web url,  which is automatically set to http://www.oasisdesign.net/public_html/
    it gives an option to change it but it makes every effort to make this NOT look like something users should mess with:
    Having gone through the more careful thought process during this post, I'm ready to do the experiment of changing the remote server web URL (why is it wrong by default?)...think I'll eat dinner first so there's 45 min to avert disaster if anyone knows this to be a bad idea!
    Art
    PS--don't  have a local testing server...don't think this will solve the GUI broken link/ link shows as external problems.
    Is there an easy, automated way to change links sitewide from document to root relative?

  • Relative Links to External Files in OS X

    I'm using Director MX 2004 in OS X, and I need to use a
    relative link to an external cast member (a Flash file) in the
    "dswmedia" folder. I know how to create a relative link in Director
    for Windows - I edit the link in Flash Asset Properties to link to
    "dswmedia/filename.swf". I do not know how to do this in OS X - the
    link remains "Macintosh
    HD:Users:maxsimms:Documents:Director:dswmedia:file.swf".
    I'm sure that this is an easy question for most Mac users,
    but I'm new to the Mac and I cannot figure it out.
    Can any Mac person help me out?

    You need to use the proper file separator character. For
    Windows the
    character is "/", for Mac its ":". This character is also the
    last
    character in the moviePath property, so you can use that to
    simplify
    things.
    You could use something like this in your code:
    fileSep = _movie.path.char[_movie.path.char.count]
    pathToFile = "dswmedia" & fileSep & "filename.swf"
    Rob
    Rob Dillon
    Adobe Community Expert
    http://www.ddg-designs.com
    412-243-9119
    http://www.macromedia.com/software/trial/

  • Issues with using relative links in Captivate 8

    Is anyone else having issues with using relative links in Captivate 8?  These links all used to work in the previous version of Captivate. And I could have sworn this was fixed already once in Captivate 8 but it's popping up again for us. Here is the situation... We have courses that are made up of multiple lessons which as separate Captivate files. Within those lessons are buttons to link to external documents (which live in a shared document folder), demonstrations, etc.  We use relative links because we post these to our amazon servers and we also sell them to clients where they can post them on their own web servers or in their LMS.  SO we can't put in full paths for the links or we'd have to change them constantly.  So an example is that the link for a button might be "../Document/nameofdoc.pdf"  This would be going to a user guide or something that is posted in the "Document" folder that lives at the same level as the lesson's folder. But now, all of the sudden, none of our bazillion links is working. And I've tried buttons, hyperlinks, and even the old click box. Nothing works with relative links. And I did check the permissions on every file and folder on our Amazon server to verify nothing changed there as well.   Any suggestions?

    I have the same issue with relative links using Captivate 8.  I am trying to load Captivate modules into an LMS using relative links to document files within the LMS.  The links work fine during a site page test so not an issue in the LMS, but from the Captivate module they aren't working....
    Help?

  • Dynamically generated Detailed navigation and related link

    Where is the Detailed navigation and related link configured for the ESS/MSS.
    Is it done in the Homepage Framework  configuration?
    I could see different navigation and related links for different worksets within ESS/MSS getting called dynamically. Where is this configured.

    Where is the Detailed navigation and related link configured for the ESS/MSS.
    Is it done in the Homepage Framework configuration?
    I could see different navigation and related links for different worksets within ESS/MSS getting called dynamically. Where is this configured.
    Hello Sir,
    If you haven't made it at this point, this is indeed done via the Home Page Framework via the backend on the following IMG PATH:
    > Cross-Application Components
      >  Homepage Framework
    1. You make a resource available via the Role (via PCD)
    2. You customize every other part as a cascade:
    Define Area group / Headers
      -> Define Areas / Assign Area to Area Group
         -> Define Subareas / Assign subarea to Area
             -> Define Services / Assign Services to Subarea.
    Hope I have clarified.
    Regards,
    Bentow.

  • How to remove bullets and spacing for url links in the Related Links iview?

    I tried to look for a property that I can edit the look-n-feel of the url links in the Related Link iView using "Theme Editor".
    All I need is to remove the bullets and increase some vertical spacing between the links.
    Currently, it looks like this:
    URL iView A
    URL Iview B
    I go through the whole section of Related Links properties, none of them seems to do what I want.
    Here are the list of properties in Related Link section (of Navigation Panel):
    Link Color
    Text Decoration of Link
    Hover Color
    Text Decoration of Hovered Link
    Initially, I thought "Text Decoration of Link" should be the right property I should look at. But there are a drop-down with 5 options: None, Underline, Blinking, Overline and Line-Through, which really can't achieve what I want.
    Thanks for advice.
    Kent
    Post with Diagram Illustration:
    <a href="http://sapnetweaverforum.blogspot.com/2006/11/how-to-remove-bullets-and-spacing-for.html">How to remove bullets and spacing for url links in the Related Links iview?</a>
    Message was edited by: Kent C.

    Hi, Kai.
    I checked the Related iView properties (URL Template), I don't see what layoutset it is really using. I am not sure, is that a layout set apply to the Related Link Iview?
    For the regular KM iView, I will see what Layout Set I want to apply, then I can go and change the properties (of layout coontroller, collection renderer & resource renderer)you mentioned. But for this Related Link iView, I really don't know. I guess it may be in the code itself.
    If there is a layout set for Related Link iView (or the place to apply layout set to it), can you point to me which one is that? (I did a search through the layout set names, I only find the AppQuicklinkExplorer (I used this for Dynamic Nav. Link iView before), if I can aply this layout set to Related Link iView, my problem will be solved.)
    Thanks for help.
    Kent

  • Hi , my problem is that i can only create absolute links to other pdf-files in a main pdf-file. how can i switch to or create relative links. Thanks for help!

    Hi , my problem is that i can only create absolute links to other pdf-files in a main pdf-file. how can i switch to or create relative links. Thanks for help!

    I’m using version 11.0.10. So where the Menu resides in a folder ready to be burnt on to a CD, that same folder is where the links point to.
    Thanks

  • How to read current line number in function module sourrce code?

    Hi All,
    How to read current line number in function module sourrce code?
    regards,
    Anuj

    If you have new editor you would be able to see the line number. 
    Or in the Dump screen - there is a button called Debugger - click that you would be able to see the code where dump has occured..  you would be able to find the line number from there.
    To get the new editor with line number , you need to change the settingsin SE38.
    Regards
    Vivek

  • How to display related links iview in content area?

    Hi,
    I have created Related links, but they are opening in a separate windows even though I have set the attribute of the iviews to "open in portal content area".
    Please let me know how I can display the iviews of the Related links in the content area.
    -Ashwini.

    Hello Ashwini,
    I don't think you have changed the property at the right place.
    Open the iview for which related link is added. Now from the drop down box at the top right select Related Link. The related link editor will open which will show the related link iview. Select the iview and click the EDIT button at the bottom. The related link iview will open. Now Change the "Launch in new WIndow" property.
    When you add an iview as reletd link to some other iview, a delta link is created and added to the iview.
    This will solve ur problem.
    Regards
    Deb

  • How  to get the java code of the standard functions

    How  to get the java code of the standard functions in xi
    Example , hoh get the java code for a node function - removeContext.

    hi
    Click on the Standard Function.
    Hold Ctrl+Shift
    right click on the standard function to view the context menu. You will see options to view the source code by exporting
    regards
    krishna

  • How do I make document relative links for the site?

    How do I make document
    relative links for the site -
    <img src="../images/foo.gif"... (for example)?

    > How do I make document
    > relative links for the site -
    look in the bottom of the "browse to file" dialog box.
    Alan
    Adobe Community Expert, dreamweaver
    http://www.adobe.com/communities/experts/

  • How to make relative links

    Hello.
    I need your help.
    Inside the public_html folder I have two files one index.dir and part1.dir The file (index.dir) I wanted to do html and I do the Regulating through public settings
    My problem is that it will link files? I do not know how to do it and I want your help please.
    How to make relative links?
    Information my project test:
    Script from index to part1
    -- DESCRIPTION --
    on getBehaviorDescription me
      return \
        "GO NEXT BUTTON" & RETURN & RETURN & \
        "Moves the playback head to the next marker when the user clicks on the sprite." & RETURN & RETURN & \
        "PERMITTED MEMBER TYPES:" & RETURN & \
        "Graphic members" & RETURN & RETURN & \
        "PARAMETERS: None"
    end getBehaviorDescription
    on getBehaviorTooltip me
      return \
        "Use with graphic members. " & \
        "Moves the playback head to the next marker on mouseUp."
    end getBehaviorTooltip
    -- HISTORY --
    -- 3 November 1998, written for the D7 Behaviors Palette by James Newton
    --  5 January   2000: updated to D8 <km>
    on mouseUp me
      go frame "test1" of movie "pat1" -- test1 is Maker and the file is part1.dir
    end mouseUp
    on isOKToAttach (me, aSpriteType, aSpriteNum)
      tIsOk = 0
      if aSpriteType = #graphic then
        tIsOK = 1
      end if
      return(tIsOK)
    end on
    script from part1 to index
    -- DESCRIPTION --
    on getBehaviorDescription me
      return \
        "GO PREVIOUS BUTTON" & RETURN & RETURN & \
        "Moves the playback head to the previous marker when the user clicks on the sprite." & RETURN & RETURN & \
        "PERMITTED MEMBER TYPES:" & RETURN & \
        "Graphic members" & RETURN & RETURN & \
        "PARAMETERS: None"
    end getBehaviorDescription
    on getBehaviorTooltip me
      return \
        "Use with graphic members. " & \
        "Moves the playback head to the previous marker on mouseUp."
    end getBehaviorTooltip
    -- HISTORY --
    -- 3 November 1998, written for the D7 Behaviors Palette by James Newton
    --  5 January   2000: updated to D8 <km>
    on mouseUp me
      go frame "Intro" of movie "index" -- Intro is Maker and the file is index.dir
    end mouseUp
    on isOKToAttach (me, aSpriteType, aSpriteNum)
      tIsOk = 0
      if aSpriteType = #graphic then
        tIsOK = 1
      end if
      return(tIsOK)
    end on
    Please help
    Look my page for you to understand my problem www.ionio.gr/~aleksgeor

    It looks like you have taken a behavior from the Library Palette and hard coded it to suit your needs. This was unnecessary. Instead try the following behaviors attached to buttons that take you between movies - assuming they are in the same directory:
    on mouseUp me
      gotoNetMovie("@/part1.dcr#test1")
    end
    on mouseUp me
      gotoNetMovie("@/test.dcr#Intro")
    end
    Also, you should Shockwave-compress your files to DCR (see the Publish Settings) in order to make your movies as small as possible so they download quickly

Maybe you are looking for

  • How to access custom ume user attributes via VC?

    Hi guys, I configured a custom user attribute within the ume configuration: <a href="http://help.sap.com/saphelp_nw2004s/helpdata/de/44/0316d50bbe025ce10000000a1553f7/frameset.htm">Adding Custom Attributes to the User Profile</a> Now, how can I acces

  • CORS issue in ECC 6.0

    All, We are having a problem with transaction CORS in our ECC 6.0 environment.  This is not occurring our 4.6C environment.  Records are posting to CO1P when they are not successful in CORS.  According to note 208477: "In the case of a lock situation

  • HOW TO USE "WITH" STATEMENT IN MESSAGES

    MESSAGE e001 WITH WERKS  SY-REPID TELL ME HOW TO USE "WITH" IN MESSAGES SEND SYANTAX AND EXAMPLE CODE

  • A question about JList (URGENT)

    I have a jtextfield that you can write anything on, another jtextfield that only accepts integers that are greater than 0 , a Jbutton, and a JList. I wanna add a listener for the JButton so that whenever it is pressed, the String in the first textfie

  • Seriousley thinking of canceling my order for Premiere Elements 10

      after reading this review it seems that adobe has still not learnt any lessons about bringing out new http://www.pcpro.co.uk/reviews/software/370027/adobe-premiere-elements-10 Products with quiet a few bugs NOT sorted I fined the review quiet dammi