10 Replies Latest reply: Jul 1, 2012 12:10 AM by savanna3000
savanna3000 Level 1 Level 1 (0 points)

Hi all,


  I'm new to iWeb. I have a folder named "doc" filled with html pages that has been produced as an API for my project through Eclipse. My question , I created a new site and I want to add a hyperlink to this folder to show the project API.


Thank you,




Here is an examlple of an API site : http://docs.oracle.com/javase/6/docs/api/java/util/TreeSet.html 

MacBook, Mac OS X (10.6.3)
  • Roddy Level 6 Level 6 (17,265 points)

    Are you asking how to create a hyperlink in iWeb or do you want to be able to display a frame?

  • savanna3000 Level 1 Level 1 (0 points)

    Hi again Roddy, I think it's the later option as I know how to add a hyper link now whether it's a file/webpage. The "doc" folder created by Eclipse as a project API description. I created a new site but then couldn't link to the API pages.


    Thanks again,


  • Roddy Level 6 Level 6 (17,265 points)

    Can you give an example URL to a page you want to link to?

  • savanna3000 Level 1 Level 1 (0 points)

    That's the problem. It's not a published site yet, just generated HTML pages in a folder called "Doc" to display something like



    Let me rephrase to clarify further, how to import another site folder (located out of iWeb) to your site (located in iWeb) in iWeb?




  • Jeff Nitschke Level 4 Level 4 (2,655 points)

    With an ifame using an html snippet possibly.

  • Jeff Nitschke Level 4 Level 4 (2,655 points)

    <iframe src="http://www.w3schools.com"></iframe>

  • savanna3000 Level 1 Level 1 (0 points)

    Thanks for the reply.. But can the source be a local folder containing HTML pages? If so can you write an example like the one you wrote but with a local folder, thanks.



  • Roddy Level 6 Level 6 (17,265 points)

    You can't import anything in the way of HTML files into iWeb.


    You could do as Jeff has suggested and display it in an iFrame on a page of your iWeb built site. However, this is not advisable for a whole site and can end up causing problems.


    An iframe is a sort of a page within a page. When you create anything in an iWeb Snippet, the application creates another page for this content. So, you get a page within a page within a page!


    If you want to use this method its better to have the Home page of the other site in the iFrame and give visitors the option of opening it in a new window like this...




    Its probably better to create a sub site in the same root folder on the server which holds your iWeb site. Then you can link to this sub site from the iWeb built sites navigation and vice versa. How you go about this will depend on whether you are using the iWeb default navigation or have created your own in a text box or an HTML Snippet.


    Here's some info about navigation and how to create your own main and sub navigation using text boxes...




    This page is about sub sites...




    Note that a sub site is not the same as a sub domain. The latter is another possibility when considering how to load the extra site on the server.


    You can also add items to the iWeb default navigation by using some javascript in an HTML Snippet.


    Create a blank page and give it the name of the other website - or anything you want. Paste this code into an HTML Snippet on that page...


    <script type="text/javascript">

    parent.window.location = "URL to the Home page of the other site";



    The page name will appear in the default navigation and clicking it will take visitors to the other site.

  • Roddy Level 6 Level 6 (17,265 points)

    Not to a local folder. Files need to be published to a server.


    You can do this on your Mac. Open System Preferences and click on "Sharing". Check "Web Sharing" to set this up. From Mac Help...


    Sharing a website on your computer


    You can use the Apache web server software included with Mac OS X to host a website on your computer. Before doing so, you should already know how to create HTML pages and build websites.



    To host a website on your computer:

      • Use the HTML editor of your choice to create your website. For your site’s homepage, use the filename “index.html” so that web browsers can locate and open it automatically.



      • Put all of your website’s pages, graphics, and any media files in your home directory’s Sites folder.The existing index.html page will be replaced with your new index.html page.



      • Choose Apple menu > System Preferences and click Sharing.



      • Select the Web Sharing checkbox.



    To view webpages you put in your Sites folder:

    Open a web browser and go to http://your.computer.address/~yourusername/.

    To find your computer’s address, choose Apple menu > System Preferences, and then select Web Sharing. The address is displayed in the window.

    For “yourusername,” use your account name, and make sure you include the ending slash (/). To find your account name, choose Apple menu > System Preferences, click Accounts, and then select your account in the list.



    You can also share a website on your computer by placing files in /Library/WebServer/Documents on your hard disk. To place files there, you must be logged in as an administrator. To view these pages, open a web browser and go to http://your.computer.address.

  • savanna3000 Level 1 Level 1 (0 points)

    Thanks Roddy and Jeff, this is the best answer than I could follow.