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?

Similar Messages

  • How to get a DDE advise link working on a DDE server with more than one topic on the same service, and with an equal item name?

    When I create a DDE server with serveral topics, all on the same service and with the same item name (different topic), it appears that an advise link does not function properly. It doesn't work at all, it update only when the advise link is terminated or only one of the topics can use an advise link.
    eg.
    On one DDE server I have 2 topics:
    topic1:
    servicename: DDEserver
    topicname : C(1)
    itemnames : P(1), P(2), P(3)
    topic2:
    servicename: DDEserver
    topicname : C(2)
    itemnames : P(1), P(2), P(3)
    Only the topicnames differ!
    Now I can't get an advise link working on one of the items (sometimes on one, but not
    on another).
    Normal (non-advise) links are working fine however.
    (In my case there is no other solution since this DDEserver should be compatible with an older one, created earlier.)

    I really don't know DDE very well. It is usually recommended that you switch to using ActiveX. You may not be correctly configuring the netDDE server. There is an example in the reource library that shows how to do this. You may also want to look at the DDE advise examples that came with LabVIEW 5.1 and earlier.

  • Link to site-root relative style sheet not working CS4

    I am trying to define links to site-root relative external style sheets - as I believe that IE conditional comments prevent Templates from correctly updating the links. The styles are not being applied when I use any href path begining with "/".  So, the following do not work:
    <link href="/styles/myStyleSheet.css" rel="stylesheet" type="text/css" />
    <link href="/myStyleSheet.css" rel="stylesheet" type="text/css" />
    Dreamweaver can open the css file from a right-mouse click and even give me warnings about css properties as a tool-tip as I hover over the file. The styles are applied fine with document relative paths:
    <link href="../myStyleSheet.css" rel="stylesheet" type="text/css" />
    Any ideas?
    Jeff

    Close your meta tag.
    <meta name="description" content="blah, blah, blah...>
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb

  • Undesired Root Relative Link

    Document relative link changes to root relative link in new documents created from a template. When saving changes to the template, this link changes back to document relative in the new document. The link points to the content source for an iframe.
    What will I have to do to make this link remain a document relative link? Making and undoing a change to the template and re-saving it every time a new document is created constitutes a workflow problem. It also unnecessarily updates all other existing documents based on that template and uploads all of them to the server during synchronization.
    I looked through the preferences and couldn't find anything that I might have accidentally changed to cause this phenomenon.

    Ah - that's not a root relative link, it's a file:/// link (I don't think there is any name for it), and it's definitely wrong if you are finding it in a file that you have SAVED.  But it's how all links in a newly created child page will look BEFORE IT'S SAVED.  Once you have saved the file within the site, then DW can manage the links so that they reflect the location where you saved the file.
    I do that because the links in the header's navigation change whenever new content is added to a category and the current content moves to the archive. So far I changed the links in the basic template and re-uploaded all the child pages. That's getting a little too much already, so I want to have to update only a single file with the header that the iframes in the uploaded pages are already linked to.
    Good golly man, use Server-side includes, not IFrames!  This kind of this is exactly what SSI is for.
    Not all child pages are at the same level. Most are just one folder down from the top, others are two and even three folders down. That's why proper updating is important. I may stick with the absolute URL.
    You must use real ROOT relative links in the include files - then all things will work.  With a root relative link it doesn't matter where the page carrying the link is located within the site.

  • Root-relative links & local testing server

    Yesterday I figured out that I'd have to use root-relative links in an included SSI file so that it would work from both templates and pages in my main directory (or other directories, for that matter), e.g., 'src=/image/picture.jpg'. However, since my site is PHP, in order to test the pages or even to use Live View, I have to make use of a "testing server". I did this without much trouble using a package called EasyPHP, which sets up a local web server as well as the PHP module, MySQL support, etc. This all works very well.
    The problem is that, in order to support several web sites, I have to use a "virtual directory" spec to direct the web server to the correct location for my site's files. In the setup for the testing server, I therefore have to specify a URL prefix such as 'http://localhost/corinthian' for this particular site. That has worked previously, but breaks when using root-relative links since the server sees the "root" as being the main "localhost" directory instead of "localhost/corinthian". So now my SSI doesn't display correctly because it's not being resolved to the correct directories.
    I don't think that this is fixable unless someone else has run into it and can think of some gimmick I could try. Anyone? Breaking out some of my code into an SSI has definitely been more of a challenge than I expected!

    I use 1&1 Internet as my hosting service. They apparently have my site set up in a virtual directory / virtual host fashion. Going to http://corinthian241.org, the root directory for root-relative links would have to be the directory pointed to by the URL. However, running phpinfo.php on the site shows the following result for $_SERVER['DOCUMENT_ROOT']: '/kunden/homepages/29/d246935068/htdocs/corinthian'.
    So I'm pretty sure that a link from a page in my site home directory using this as a prefix would definitely not work, since the first "/" implies starting in the "corinthian" subdirectory -- not the real root of the server itself. Correct?
      Doug

  • Remote and testing server don't see root relative links the same

    My site works fine on my testing server (Apache, MYSQL,
    PHP). I use root relative links in a library
    file (include file) so that it will work with all pages. For the testing server these links look like this:
    /my_sites_root_folder/aaa/bbb/ccc etc.
    If I use these same links on the remote server they won't work. To get hem to work I have to change all these links to the form
    /aaa/bbb/ccc etc.
    When dreamweaver uploads files to the remote server, the site name folder  (my_sites_root_folder) doesn't go along for the ride--just the files in it. So on the remote all the site files are stored in htdocs. On my testing server, the files are stored in htdocs/my_site_root_folder.
    I think it must have something to do with the way I'm setting up the remote and testing servers, but I'm read a hundred pages of instructions without being able to figure it out. I think I'm just seeing something wrong, but I've already spent days on this. Can someone please point me in the right direction?
    I'm using DWCS5. Internet explorer 8, Windows 7.

    Thank you for your prompt response. I'm afraid I'm still totally puzzled here. It sounds like you're very knowledeable about your comments, but I would like to know more. I accept that using the local site root in links would be bad, but I'm not clear WHY. Structuring the links as I have doesn't cause any links to break. I've structured them this way because it's the only way I can find that everything works. But I still do not understand WHY I have to do it. Using different libary include files doesn't seem like a good way to go, though
    You suggest that if I use any root relative links at all, I need to use vitual hosts. I'm not finding any good coverage of what these are, and especially why they are necessary. If this is the case, does that imply that templates (which use root relative links) also will not work on the test server (at least without vitual hosts)? The conclusion I'm coming up with, given your remarks, is "Dreamweaver doesn't work with root relevant links when you're trying to test a site with a test server." Is this right?

  • Root Relative Linking not possible?

    I'm trying to set up my site so that the links are relative to the Site Root, but it doesn't seem to allow me to do that.  I can click on the Site Root button in Local Info, but when I click Save and then go back to it, it has reverted back to Document-relative links.  I don't have a Web URL that I can enter in, and I do need to use the root-relative linking (I can go into detail as to why, but I'll save that for now). 
    Is there something I'm missing that allows me to do that? 
    I'm using the Mac version of Dreamweaver CC.  There was no problem of this sort when I used a PC version of CS6 prior to switching computers. 

    We are unable to reproduce this issue. @bradthames or MurraySummers, can you please share a video of the issue?

  • How to make a magnifying glass link to a look up table ?

    Dear Friends,
    Hello. I am developing the accounting application of journal entry. In journal line, I use the image "magnifying glass" next to each chart field. When we click on the magnifying glass, it's supposed to come up a look up table( a chart and name mapping table), and we select the proper chart to input into the chart field.
    I understand to create another record and page for the look up table. But I don't understand how to make a magnifying glass link to a look up table. Can anybody tell me how to do that ? Thanks.
    Lucy

    This is how it works,
    Table A (which stores chart fields). You have used fields from table A on a page so that users can input data.
    You don't need to put a magnifying glass image or create a new page to achieve look up page.
    all you need to do is create another table say Table B which should have the chart field and corresponding description you want to show on lookup page. Then open record-field property of the chart field on Table A and mention Table B as prompt table.

  • Web sites containing mms links work in IE but not Firefox 4.0

    Web sites containing mms links work in IE but not Firefox 4.0. when I play the video in IE, I go into IE, and locate the mms link under properties, when I right click. If I copy the mms link form IE directly into firefox, it will work. There ought to be a better way to do this. Also, I am using a hardware firewall, not a software firewall, and no proxy.

    You need to use the file:// protocol, but you may still encounter problems if you fix that.
    See http://kb.mozillazine.org/Links_to_local_pages_do_not_work

  • Has anyone figured out how to make the Yamaha 01V96i mixer work with Logic 9.1.8

    Has anyone figured out how to make the Yamaha 01V96i mixer work with Logic 9.1.8 as a control surface ?

    In YAMAHA01v96i:
    Go to DIO/SETUP select Generic DAW. Go to MIDI settings page and set the desired port (personally I use Number 1), Select the same audio frequency you use in your DAW (I use 44.1KhZ)...at this point You should save a scene in you 01V96i to avoid to repeat all the procedure again.
    Open studio manager, go to patch and set the input port from 17 to 32 respectively to USB1-USB16 (this will give you the return from you DAW to the 01v96i
    Save again the scene overwriting the old one.
    in LOGIC
    Click on preferences, select Audio then select 01v96i, then click on control surface and select Mackie design Baby HUI and in the midi session set the same port that you've been setting on the Yamaha 01V96i (Port 1 if you follow this example).
    That's more or less it.
    It worked for me...so far

  • How to make visible Time Sheet link

    Hi,
    I want to know how to make visible Time Sheet link on portal for a particular Personnel Area so that employees of this PA can fill their Time Sheet from the portal.

    HI,
    Use Tcode - CAT 2
    Regards,
    Shadeesh.G

  • How to make the same code that works only?

    how to make the same code that works only?
    code:
    Form2.Close = Me.Enabled = true
    effect such as this code

    I have this code:
    Public Class Form1
    Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click
    Form2.Show()
    Me.Enabled = False
    End Sub
    Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button5.Click
    Form3.Show()
    Me.Enabled = False
    End Sub
    End Class
    he wants to after closing Form2 and Form3 unblocked the whole form1
    it means that:
    when I click the button, displays the himself form2 and blocks himself form1" and after closing Form2 , unlocks himself Form1"
    the same with Form3

  • How to make none root user to connect to TCP Port  (web ports)

    how to make none root user (any user)
    to connect to TCP Port 80 or port 81 or any port less than 1024
    cause i have web server i want to run and stop service with none root userand on port 80 and port 81
    can you help me and give me steps

    I believe Solaris 9 also has RBAC control. If so then all you need to do is present the uid with the PRIV_NET_PRIVADDR privilege. See the privielegs(5) manpage for more information on the subject.
    This privilege will allow the userid to bind to ports < 1024. You can give a user this privilege either by using usermod (you will probably need the auth_attr(4) manpage as well) after which you need to login again. Or you can try using ppriv to modify the privileges on the users shell.

  • How to make a photo CD to work in a DVD-player?

    I burn photo CDs in Finder in my MacBook. No problem with the burning, but the CD doesn't work in my DVD-player. I can see some of the photos, but some are just grey "items". A photografer told me to use a setting in the burning program that burns the CD in PC format. That would make my photo CD to work in PCs and DVD players. The problem is that I can't find any settings like that when I burn CDs in finer. Are there any? Shall I use some other program to burn?

    It’s not a good solution. (I’m no expert at IPhoto.) The manual in iPhoto says that you have to export the photos to a burning map in Finder if want the photo CD to work in Windows and PCs. Then the problem is back. I can see the photos, but there is grey “item” for every photo.
    The other way is to burn direct from iPhoto. OK, no grey items. But the photos are “down sized” in quality and not full size if you want to look at them on your TV via your DVD player.

  • Trying to make Reporting Services Configuration Manager work. Or, SQL Server Reporting Services.

    Under Start > Programs > Microsoft SQL Server 2008, I have the following:
    SQL Server Management Studio
    Configuration Tools
    Integration Services
    Import and Export Data
    Under Configuration Tools, I have the following:
    SQL Server Installation Center
    SQL Server Configuration Manager
    SQL Server Error and Usage Reporting
    Reporting Services Configuration Manager
    I tried to enable Reporting Services through 'Reporting Services Configuration Manager' but I don't seem to have much control from this view.  I see two boxes, one named Server Name (and it shows my server name) and the other is named Report Servicer Instance (and this is grayed out).  If I click on the Find box next to Server Name, I get this message:
    Report Server WMI Provider Error: Invalid Namespace
    Details
    Invalid Namespace
    To get the Server Name I right-clicked SQL Server > Properties > General
    Any ideas on how to make Reporting Services Configuration Manager work?  Or, can you please give me more details on how to access "System control" => "Services"?  I'm not seeing it anywhere and I'm not seeing any way to find "Sql Server Reporting Services".  Basically, I'm trying to activate my SQL Server Reporting Services.
    I am using SQL Server 2008 Express Management Studio.  Is SQL Server Reporting Services included in Express Management Studio?  I read, online, that it is, but I can't find it anywhere.
    Thanks again!
    Ryan--
    <input id="gwProxy" type="hidden"><!-- Session data--></input> <input id="jsProxy" onclick="jsCall();" type="hidden" />

    Thanks Jerry Nee!!  This may be exactly what I’m looking for!  I went to this link:
    http://www.microsoft.com/downloads/details.aspx?FamilyID=B5D1B8C3-FDA5-4508-B0D0-1311D670E336&displaylang=en#filelist  
    At the top of the page it says, ‘Microsoft® SQL Server® 2008 Express with Advanced Services’, which seems like this is what I’m looking for, so I downloaded the file named ‘SQLEXPRADV_x86_ENU.exe’
    Then, I cut that from my desktop and pasted it in my C-drive and I get a message that says, ‘this folder already contains a file named ‘SQLEXPRADV_x86_ENU.exe’, would you like to replace the existing file?’
    I’m thinking…what the heck?  Do I already have this thing?  If so, why can’t I see SQL Server Reporting Services?  Maybe I have it now, and I just don’t know how to access the reporting Services features…
    Couple quick questions:
    What’s the difference b/w these two files: 
    ‘SQLEXPRADV_x64_ENU.exe’ and ‘SQLEXPRADV_x86_ENU.exe’? 
    Also, my current version of SSMS, Help > About shows this:
    Microsoft SQL Server Management Studio
    10.0.1600.22 ((SQL_PreRelease).080709-1414 )
    Microsoft Data Access Components (MDAC)
      2000.085.1132.00 (xpsp.080413-0852)
    Microsoft MSXML
    2.6 3.0 5.0 6.0
    Microsoft Internet Explorer
    8.0.6001.18702
    Microsoft .NET Framework
    2.0.50727.3603
    Operating System
    5.1.2600
    Should Server Reporting Services be included in this version?  I think so!!!
    Under Start > Programs > Microsoft SQL Server 2008 > Configuration Tools > Reporting Services Configuration Manager, I see this:
    Connect to a report server instance:
    Server Name: 
    Report Server Instance: 
    My server name is ‘'EXCEL-4J2W8KYNP', which I got from Control Panel > System Properties > Computer Name > Full Computer Name;
    However, when I put that server name in the box, and hit ‘Find’ I get this message: ‘Report Server WMI Provider error’ Invalid namespace
    Details: Invalid Namespace.
    I have no idea what this means…
    Thanks for everything!
    Ryan---

Maybe you are looking for