Web Hosting Forum | Lunarpages


*
Welcome, Guest. Please login or register.
Did you miss your activation email?



Login with username, password and session length
May 21, 2012, 05:17:32 AM

Pages: [1]   Go Down
  Print  
Author Topic: Templates ????  (Read 18081 times)
inventor
Intergalactic Cowboy
*****
Offline Offline

Posts: 51


« on: June 15, 2011, 08:58:34 PM »

Hi, I have a problem with my template and it’s a real stumper for me, the solution is probably staring my in the face but I don't see it.  Confused Help Help
For example I get this broken link from the sub-pages http://www.rvezcooking.com/rvezcooking/Pages/Mikes%20Meat%20Sauce.html
And a working link from the Home page http://www.rvezcooking.com/Pages/Mikes%20Meat%20Sauce.html
The template on Dreamweaver for some reason do not update the pages, in order for the link to work I have to go in all the sub-pages and remove (rvezcooking), what I don't comprehend is why the template don't update all the pages the same.

This is the code on the sub-page.

        <p><font color="#cccccc" size="2" face="Century"> <a href="BBQ Prime Rib.html" target="_parent"><font color="#CCCCCC">BBQ Prime Rib</font></a></font></p>
      </div>
      <div align="center">
        <p><font color="#cccccc" size="2" face="Century"> <a href="Greek Coffee.html" target="_parent"><font color="#CCCCCC">Greek Coffee</font></a></font></p>
      </div>
      <div align="center">
        <p><font color="#cccccc" size="2" face="Century"> <a href="../rvezcooking/Pages/Mikes Meat Sauce.html"target="_parent"><font color="#CCCCCC">Mikes Meat sauce</font></a></font></p>
            </div>
                <div align="center">
        <p><font color="#cccccc" size="2" face="Century"><a href="Glazed chicken.html" target="_parent"><font color="#CCCCCC">Glazed Chiken</font></a></font></p>
      </div>
       <div align="center">
        <p><font color="#cccccc" size="2" face="Century"> <a href="../Pages_prep/Pate.html" target="new page"><font color="#CCCCCC">Pate</font></a></font></p>

And this from the template.

        <p><font color="#cccccc" size="2" face="Century"> <a href="../rvezcooking/Pages/BBQ Prime Rib.html" target="_parent"><font color="#CCCCCC">BBQ Prime Rib</font></a></font></p>
      </div>
      <div align="center">
        <p><font color="#cccccc" size="2" face="Century"> <a href="../rvezcooking/Pages/Greek Coffee.html" target="_parent"><font color="#CCCCCC">Greek Coffee</font></a></font></p>
      </div>
      <div align="center">
        <p><font color="#cccccc" size="2" face="Century"> <a href="../rvezcooking/Pages/Mikes Meat Sauce.html"target="_parent"><font color="#CCCCCC">Mikes Meat sauce</font></a></font></p>
            </div>
                <div align="center">
        <p><font color="#cccccc" size="2" face="Century"><a href="../rvezcooking/Pages/Glazed chicken.html" target="_parent"><font color="#CCCCCC">Glazed Chiken</font></a></font></p>
      </div>
       <div align="center">
        <p><font color="#cccccc" size="2" face="Century"> <a href="../rvezcooking/Pages_prep/Pate.html" target="new page"><font color="#CCCCCC">Pate</font></a></font></p>


Thank you…..
 Confused
Logged
wektech
Master Jedi
*****
Offline Offline

Posts: 1031



WWW
« Reply #1 on: June 16, 2011, 04:51:46 AM »

I would check in site management and ensure that the local root folder is properly defined. If you are on a shared server using the primary domain; it should correspond to the folder named public_html on the server. Are you by chance managing multiple domains using the same Dreamweaver site definition?
Logged

inventor
Intergalactic Cowboy
*****
Offline Offline

Posts: 51


« Reply #2 on: June 16, 2011, 08:01:15 AM »

I would check in site management and ensure that the local root folder is properly defined. If you are on a shared server using the primary domain; it should correspond to the folder named public_html on the server. Are you by chance managing multiple domains using the same Dreamweaver site definition?

Thanks.....
Yes I'm managing multiple domains in Dreamweaver. I have one folder with all the domains in.
Logged
inventor
Intergalactic Cowboy
*****
Offline Offline

Posts: 51


« Reply #3 on: June 25, 2011, 08:22:33 PM »

I would check in site management and ensure that the local root folder is properly defined. If you are on a shared server using the primary domain; it should correspond to the folder named public_html on the server. Are you by chance managing multiple domains using the same Dreamweaver site definition?

Thanks.....
Yes I'm managing multiple domains in Dreamweaver. I have one folder with all the domains in.


Can some one please help me out here, what dose he mean by, (Are you by chance managing multiple domains using the same Dreamweaver site definition?) Yes I do and what dose it mean?

Logged
wektech
Master Jedi
*****
Offline Offline

Posts: 1031



WWW
« Reply #4 on: June 26, 2011, 01:35:47 AM »

When applying a Dreamweaver template to a page, it will adjust all links relative to the server root directory in the site definition file. It will not understand that the links are for an add on domain. The solution is to define a separate site definition for the add on domain using the public_html/addon_directory/ as the root.
Logged

inventor
Intergalactic Cowboy
*****
Offline Offline

Posts: 51


« Reply #5 on: June 26, 2011, 08:45:52 AM »

When applying a Dreamweaver template to a page, it will adjust all links relative to the server root directory in the site definition file. It will not understand that the links are for an add on domain. The solution is to define a separate site definition for the add on domain using the public_html/addon_directory/ as the root.

I do have a separate site definition sub folder under the public_html and all my pages work with the exception of this one see below in bold, all the pages are on the same root folder and uploaded on the same public_html domain sub folder. Is it something I'm missing? or don't see?

Site link www.rvezcooking.com

      <div align="center">
        <p><font color="#cccccc" size="2" face="Century"> <a href="../rvezcooking/Pages/Greek Coffee.html" target="_parent"><font color="#CCCCCC">Greek Coffee</font></a></font></p>
      </div>
      <div align="center">
        <p><font color="#cccccc" size="2" face="Century"> <a href="../rvezcooking/Pages/Mikes Meat Sauce.html" target="_parent"><font color="#CCCCCC">Mikes Meat sauce</font></a></font></p>
            </div>
                <div align="center">
        <p><font color="#cccccc" size="2" face="Century"><a href="../rvezcooking/Pages/Glazed chicken.html" target="_parent"><font color="#CCCCCC">Glazed Chiken</font></a></font></p>
      </div>
Logged
Pages: [1]   Go Up
  Print  
 
Jump to: