Integrating a Custom Site

 < Day Day Up > 

If you're here, you've taken the time to learn HTML or a graphical editor, and you've created a fabulous site that blows away the already great templates provided by Apple. Now, it's time to take the plunge and put your site up for everyone else to browse.

The benefit of publishing your custom page this way is that your page appears in the list of links at the top of your .Mac site menu (and you optionally get the page counter and contact link). The drawback is that you can't organize it quite as efficiently, and the page is surrounded by the .Mac interface.

Once the custom Web site is uploaded, you can connect to it without doing anything else. Simply point your browser to http://homepage.mac.com/yourmembername/filename, where yourmembername is your .Mac member name, and filename is the name of the index file you've just uploaded.

To integrate a custom site

1.

Gather the HTML files that you'll publish on your .Mac site, along with any supporting files (such as images, Flash animations, or movies), and put them in a folder.

2.

Connect to your iDisk, and upload the contents of your site's folder (not the folder itself) to your iDisk's Sites folder. If you upload the whole folder, you can still connect to the site, but you won't be able to use the External HTML template to integrate it into your site (Figure 4.64).

Figure 4.64. Drag a custom HTML file to your iDisk's Sites folder to upload that file in preparation for integration into your .Mac site.


3.

Log in to your .Mac account using a Web browser, and click the HomePage link.

The main HomePage page loads.

4.

At the bottom of the list of tabs, click the Advanced tab (Figure 4.65).

Figure 4.65. The Advanced template tab has one template External HTML. This template lets you connect an HTML file you create to your .Mac site.


The Advanced templates page loads, showing one template: External HTML.

5.

Click the External HTML template button.

The "Choose your web page" page loads. The HTML file that you uploaded in step 2 should show up in the Sites folder.

6.

Select the HTML file and click Choose (Figure 4.66).

Figure 4.66. When you load the External HTML template, you are asked to locate the HTML document you uploaded. Click it, and then click Choose.


The page loads in HomePage in the "Edit your page" page, showing you a preview of how it will look when published.

7.

In the title field, type a title for your uploaded page (Figure 4.67).

Figure 4.67. After you've loaded the HTML file, the "Edit your page" page loads, allowing you to type a new name for your custom HTML page.


8.

If you want a counter or a Send Me a Message link, check the boxes next to these items at the bottom of the page.

9.

Click Preview.

A preview of the page loads (Figure 4.68).

Figure 4.68. After you click the Preview button, the custom page loads as others would see it.


10.

If you need to make changes, click Edit. If you're satisfied with how it looks, click Publish.

A page loads with the custom page's URL and gives you the opportunity to send an iCard announcing the new page (Figure 4.69).

Figure 4.69. After you publish the custom HTML page, its URL loads, and you're given the opportunity to send an iCard announcing it.


Tips

  • As long as your links all point to the proper places, you can host a whole Web site, with as many pages, graphics, and supporting files as space on your iDisk will allow.

  • To publish a custom HTML page to a site other than the default site, first create the site using HomePage, and then upload the HTML file (and supporting files) to the proper site folder, which lives in the Sites folder of your iDisk.


Forwarding a Domain Name to Your .Mac Site

If you've spent the $10 or so to register your own domain name, you can use your registrar's domain redirect function to redirect people to your .Mac site instead. Here's how it works. If people type in

http://www.yourfancydomain.com

they're sent to

http://homepage.mac.com/yourmembername/index.html.

This process varies a bit from registrar to registrar, but the essential thing to note is that you're simply forwarding your domain to your .Mac site. If you remember that, making changes with your registrar ought to be easy.


Publishing a Custom Site Sans HomePage

If you're a stickler for keeping things organized, there's another way to host your custom site through your .Mac account that doesn't involve HomePage.

Rather than upload the bare Web page and any supporting files for your custom site, upload the folder that contains those pages. There is one major benefit to doing it this way you can keep your content organized by folder (staying out of the way of the HomePage application). Here's how you go about it.

1.

Upload your entire custom site's folder to the Sites folder on your iDisk.

2.

Log in to your .Mac account, and click the HomePage link.

3.

Rather than clicking the Advanced tab, select the site where you want to include the new custom page, and click the Site Menu tab (Figure 4.70). On the new site menu page that results, click the Plus button next to where you'd like a link to your custom site to appear. See the sidebar "Adding Links to Your Site Menu," earlier in this chapter, for complete instructions.

Figure 4.70. To create a new site menu, first select the site where you'd like the menu page to appear in the Sites column, and then click the Site Menu tab below.


4.

Give the new link item a proper graphic, title, and description, and then click the Edit Link button.

5.

On the "Edit your links" page, click the Other Pages tab, and type in the URL for the index file inside your newly uploaded site folder (such as http://homepage.mac.com/dreynolds/webcam/webcam.html) (Figure 4.71).

Figure 4.71. Create a link to the newly integrated site by entering its URL in the Other Pages field, and then click Apply.


6.

Click Apply.

7.

Click Preview to see how the site will look before it goes live. If you like what you see, click Publish.

You can edit an existing site menu page in the same way to include the new site.

Also, here's one tip worth remembering: If you're using this technique, consider naming the index page inside the folder index.html. Why? Most Web servers, including the .Mac Web server, are set to automatically serve up the page named index.html if one isn't specified. So, that means that

http://homepage.mac.com/dreynolds/webcam/index.html

and

http://homepage.mac.com/dreynolds/webcam/

work the same. And, hey, you're doing your visitors a favor a shorter URL means less typing for anyone who wants to visit your site.


     < Day Day Up > 


    .Mac. Visual QuickStart Guide
    .Mac
    ISBN: 032130473X
    EAN: 2147483647
    Year: 2005
    Pages: 97

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net