« Tutorials | Main | Work »

maandag, 05 juli, 2010

HTML as PHP

With a proper configuration on the server you can use webpages with a html extention as php files.

The question was raised in the iWeb forum at Apple Discussions.

Here's an explanation :

Execute PHP from a .html File

I used this :

AddType application/x-httpd-php .html

Here's a widget_markup file. You won't see anything php in the source :

http://dailynews.webege.com/phpdemo/widget1_markup.html

This is what I pasted in the HTML Snippet :

<?php
echo("hello world\n");
?>

How to create a .htaccess file on the server, read this :

http://iweb.dailynews.webege.com/PHP_parse_error.html
Posted by wyodor at 21:34.21
Categories: Web

zaterdag, 22 mei, 2010

iWeb : Adding Google Analytics without editing the webpage

Google Analytics is a service that tracks the visitors of your webpage and provides information about where they come from, what pages they visit, what they use as Operating System and Browser and how long they stayed on your website. And a lot more.

Google uses JavaScript code which you have to paste in the webpage.

iWeb has no way of adding this to the webpage. After publishing you must open the html file in a plaintext editor and paste the code before the </body> HTML element. Then save the page.

Everytime you edit the page in iWeb, you have to edit the published page again to add the code.

Rather cumbersome.

Here's how you can add the code with the HTML Snippet.

Go to Google Analytics and sign-up for an account if you haven't already done that.

Create a new profile for your website.

It will provide you with a Webuser ID and the JavaScript code :

<script type="text/javascript">

var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-xxxxxxxx-1']);
_gaq.push(['_trackPageview']);

(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();

</script>

Open een plaintext document and paste the code without these lines :

<script type="text/javascript">
</script>

Save the file as plaintext and give it a meaningful name : I use analytics.js

Connect to your webserver and create a folder in the root of the server and put the file in it. I call this folder js.

Open iWeb and select the Site and page you want to track.

Add the HTML Snippet and paste this code :

<script type="text/javascript">

var bodyID = parent.document.getElementsByTagName("body")[0];

var newScript = parent.document.createElement('script');
newScript.type = 'text/javascript';
newScript.src = '/js/analytics.js';
bodyID.appendChild(newScript);

</script>

Publish the page and open it in the browser. In Safari open the Activity window (Command-Option-A).

Check to see that the /js/analytics.js file is loaded correctly and a very long URL to Google is present.

The newScript.src = '/js/analytics.js'; only works when you have your own domain.

If you use both web.me.com/username and Personal domain, use newScript.src = '../js/analytics.js'; for non-blog pages and newScript.src = '../../js/analytics.js'; with the main blog page.

And again, verify it.

Posted by wyodor at 12:45.59
Categories: Design, Web

dinsdag, 04 mei, 2010

iWeb : HTML5 Audio and Video

Based on some topics in the iWeb forum at Apple Discussions about HTML5 I decided to give it a go too.

I already made the BlowUp and 3D pages described earlier.

Now I added some sample pages with audio and video.

HTML5 AudioHTML5 Video

Both pages determine if a browser supports html5 and what audio or video formats.

Usually mp4/mpeg (h.264/AAC) or ogg. On the audiopage it falls back to a Flash Audioplayer if html5 is not supported.

I wrote the JavaScript in the past few days with some help from code at Apple Developers :

Safari HTML5 Audio and video Guide

I think it all looks rather well. See if you can apply it to your own pages.

Posted by wyodor at 11:12.32
Categories: Design, Web

maandag, 03 mei, 2010

Google Analytics — Besturingssystemen

In tegenstelling tot een hoop mensen in het iWeb Discussions forum ben ik niet gefrustreerd als ik niet #1 ben bij Google. Sterker nog, een hoop van die lui zijn volledig getraumatiseerd als hun kut webpaginaatje niet wordt gevonden.

Aangemoedigd door allerlei SEO FUD Meisters verspillen ze hun tijd met allerlei programmas om hun ranking te verbeteren.

En als je dan hun paginaatje ziet, vraag je je af waarom je ze wilt vinden.

Omdat ik toch wel nieuwsgierig ben naar wie er zoal m'n website bezoeken, heb ik Google Analytics op een paar paginas aangebracht.

Ik ga niet alle statistieken tonen, wellicht later eens, maar één staatje is aardig om te zien. De besturingssystemen. Dan blijkt dat de Apple iPad reeds na een maand op een verdienstelijke 3e plaats staat.

Vermoedelijk komt dat omdat ik zelf met de iPad Simulator mij website bezoek om te zien hoe een en ander in beeld komt.

Google Analytics Browsers

Posted by wyodor at 21:02.32
Categories: Web

maandag, 26 april, 2010

iWeb : HTML5 Video Blowing Up and 3D demo

I came across this demo that shows what can be done with HTML5 Canvas and video.

Blowing up HTML5 video and mapping it into 3D space

I studied the code and came up with two samples of blowing up a video and a 3D sample, all in iWeb.

Blow Up, 3D and one on my iPad Site : Blow Up

To see how its done, open the widget markup files (In Safari : Command-Option-A to open the Activity window and than double-click the link to open it in a browserwindow).

Look at the source and follow the links to the JavaScripts.

It took a lot of tinkering to get everything pixel-precise on the canvas. The JavaScript code will tell you how.

Posted by wyodor at 21:46.29
Categories: Design, Web

zondag, 11 april, 2010

MobileMe Public Folder

Ik heb m'n Openbare Map bij MobileMe wat duidelijker in beeld gebracht.

Public Folder @ MobileMe

Voorlopig is ie gevuld met Pdf bestanden van webpaginas waar ik m'n kennis vandaan haal om al het fraais op deze website te realiseren.

Dat het u tot nut moge weze.

Posted by wyodor at 13:10.28
Categories: Design, Web

zondag, 04 april, 2010

iWeb webpaginas voor de iPad

Ik heb geen iPad, maar verheug me erop er een te hebben.

Vooruitlopend daarop heb ik vast wat geoefend met iWeb om paginas voor de iPad te maken.

Doel was om paginas te maken die niet scrollen en die precies passen in het schermformaat (768 breed en 1024 hoog).

Enige hulpmiddel was de iPhone Simulator.

Na passen en meten kwam ik uit op een pagina die 768 pixels breed is en 984 pixels hoog.

Bekijk 'm hier : http://dailynews.webege.com/ipad/

Het ontwerp komt van een Pages sjabloon.

Aanvulling : Wellicht niet eerder gezien, maar in de nieuwe iPhone SDK zit nu ook de iPad Simulator. Je kiest eerst de iPhone Simulator and dan in het menu Hardware > Apparaat > iPad.

Klik om een grote afbeelding te bekijken (opent in nieuw venster).

Posted by wyodor at 14:29.32
Edited on: dinsdag, 06 april, 2010 12:58.16
Categories: Design, Web

maandag, 08 maart, 2010

iWeb : Publish to MobileMe without the Sitename in the URL

How to publish to MobileMe without the iWeb Site name.

Go to the Finder.

Type Command-K (Connect to Server from the Go menu).

Copy/paste or type this line : http://idisk.me.com/MobileMeUserName/Web/Sites/

Use your own MobileMe user name.

Connect to iDisk

Type Command-Shift-C to see the local Volumes and verify the iDisk Sites folder has mounted.

iDisk Sites mounted

Open iWeb and create a Site. Or use an existing Site.

Name it Sites.

Choose to publish to a folder.

But Do not select a folder to publish to.

In the path field just type /Volumes/

You have to mount the iDisk Sites folder before publishing. Otherwise a Sites folder will be created in Volumes.

iDisk Sites alias To easily mount the iDisk Sites folder, create an alias first.

Drag the iDisk Sites icon on top of your Username or Desktop icons in the Finder sidebar.

To mount the folder, select the Sites icon and type Command-R.

Now you can publish your iWeb pages.

Note that RSS and subscription feeds do not work.

And this set-up only works for ONE Site.

More iWeb Sites need to be published to a iWeb Sitesname folder.

You have to check the index.html file in the iDisk Sites folder to see that it redirects to the correct webpage.

Practice.

Posted by wyodor at 11:00.10
Categories: Design, Tutorials, Web

donderdag, 11 februari, 2010

DropBox and iWeb publishing. With code to add fixed images and menus

I use DropBox to add storage on the internet.

But it is also possible to publish your (iWeb) webpages there. To use the webpages for others to visit, put them in the Public folder in your DropBox folder.

Then lauch the DropBox website.

Go to your public folder and hover over a link. Click Copy public link and copy the URL.

Here's a link : http://dl.dropbox.com/u/3563737/Lycos/index.html

On the pages you'll see a bar across the whole webpage. Resize the browserwindow to see the effect. Normally that's not possible in iWeb, but it is with the JavaScript below :

<script language="JavaScript" type="text/javascript">
<!--
parent.document.body.style.backgroundImage='url(http://www.wyodor.net/postkantoor/images/Paginavulling.png)';
parent.document.body.style.backgroundRepeat='repeat-x';
// -->
</script>

On the Nirvana Bril (Fixed Menu) page I also added a fixed menu. Click the link below to see the code. I use a JavaScript file. It's easier to edit and you don't have to publish the iWeb webpage everytime you make changes. It doesn't display well in Microsoft Internet Explorer.

http://dl.dropbox.com/u/3563737/JavaScript/NirvanaBrilFixed.js

You paste the URL to the JavaScript file in the iWeb HTML Snippet like this :

<script src="../../../JavaScript/NirvanaBrilFixed.js" type="text/javascript"></script>

Another nice way to customize iWeb pages. Hope you like.

Posted by wyodor at 15:08.28
Edited on: donderdag, 11 februari, 2010 21:59.25
Categories: Design, Tutorials, Web

zondag, 07 februari, 2010

10.000 punten in Apple Discussions

Vandaag de 10.000 punten barriere doorbroken.

Sinds de laatste keer dat ik dit meldde, 9000 punten in Apple Discussions , weer 1.000 punten erbij.

Nog 40.000 punten tot level 5.

10000 punten in Apple Discussions

Posted by wyodor at 21:34.05
Categories: Web

donderdag, 28 januari, 2010

Apple iPad als e-book lezer

Gisteren, 27 januari 2010, presenteerde Apple z'n nieuwste speeltje voor de l'Uomo Digitalis : de iPad.

Over 3 maanden te koop vanaf $499. Prijs in NL zal wel in dezelfde orde van grootte zijn.

Behalve de hele riedel aan mogelijkheden, internet, web, e-mail, fotos en filmpjes, is er nu ook de mogelijkheid om boeken te lezen.

Een e-book (of ebook) zal in het epub formaat zijn. Een gratis open source e-book standaard van het International Digital Publishing Forum.

Volgens de berichten zullen de boeken in eerste instantie alleen in de Amerikaanse iTunes Store te koop zijn.

Maar wat belet je om zelf een e-book te maken of een gratis versie te downloaden bij Project Gutenberg, epubBooks, en anderen.

Net als MP3 deuntjes en videos van eigen makelij, zal je ongetwijfeld ook t.z.t. die boeken aan iTunes kunnen toevoegen. Effe wachten op de iTunes update dus.

Overigens zijn er al e-book lezers te verkrijgen. Ik heb bijvoorbeeld Stanza, dat ook andere soorten tekstbestanden, zoals pdf, kan lezen. Niet alleen verkrijgbaar voor iPod touch en iPhone, maar ook voor Apple Macintosh en Windows. Downloadspagina.

Hoe maak je een e-book in epub formaat

Om zelf een e-book te maken vereist de nodige kennis.

Hier een tutorial : .epub eBooks Tutorial

Anders zijn er wel de nodige, al of niet gratis, programma's te vinden.

Ik vond al snel deze: sigil, een gratis multi-platform open source WYSIWYG ebook editor. Hier is het forum.

Dan deze : iStudioPublisher. Niet gratis. Hier Wiki artikel.

En hier een Google zoekactie naar ipad e-book format.

Aanvulling 1 : toen ik rechts-klik deed om een e-book met een ander programma te openen, zag ik dat ik ook Adobe Digital Editions had. Da's een programma dat als boekenplank fungeert voor epub boeken. Handig.

Aanvulling 2 : Ook Stanza kan diverse formaten omzetten in andere formaten. En via Lulu kwam ik bij Calibre ebook Management uit, waar je ook gratis software kunt downloaden om ebooks te maken en te converteren.

Posted by wyodor at 14:40.52
Edited on: donderdag, 28 januari, 2010 16:09.51
Categories: Design, Web

zondag, 24 januari, 2010

iWeb : Display date & time the page was updated

Here's a quick one. Based on this question in Apple Discussions about adding the time and date the webpage was updated.

Made a false start (the solution with the textbox, etc, works) but eventually came up with this solution:

<div style="width: 340px; height: 30px; margin-left: 2px; font-family: HelveticaNeue-UltraLight, 'Helvetica Neue', Arial, sans-serif; font-size: 12px">
<script language="JavaScript" type="text/javascript">
<!--

elem = parent.document.lastModified;
document.write ("Last Updated : " + elem);
// -->
</script>
</div>

I use a <div> to wrap the code and display it with the font of the page here.

To format the time & date in JavaScript, search the internets.

Posted by wyodor at 21:14.48
Categories: Design, Tutorials, Web

dinsdag, 19 januari, 2010

Mailform with Captcha

I created a mailform with captcha.

Found the files to do so at White Hat Web Design with more information about creating captcha images with PHP at www.phpcaptcha.org.

General information about creating images with PHP at The Wizard and Google. And of course in the PHP Manual.

With a mailform from KPN I pieced together a mailform. You can see it here.

But the form didn't work on my Mac with Personal Webserver. The browser showed an Internal Server error.

So I decided to create a new form with the combined information from the links above to eliminate the error. And it worked.

Download the zip file

The zip file contains the mailform, the php file to create and test the security code and a PNG file used as background for the captcha image.

The only personal information you have to enter is your e-mail address as the recipient in the mailform.php file.

Edit the php file with a HTML Editor of your choice. Put it on the server and test it.

Mailform PHP

Note 1. When you use the form on your Mac with Personall Webserver, I found that MobileMe and Google will not accept the message. Therefore I use my e-mail address at my ISP. I reason that mailservers do not accept mail from unknown sources as a security measure. Since I'm in the domain of my ISP with a IP number in their range they probably trust me as a sender. Unsend/undelivered messages can be found here:

/private/var/spool/postfix/active/
/private/var/spool/postfix/defer/
/private/var/spool/postfix/deferred/

Note 2. It will not work on MobileMe. You need an external server with PHP. If you haven't one, I suggest you try the free webhosting package at www.000webhost.com.

Note 3. The enclosed files work as advertised. But as usual, I assume no responsibility.

Extra note for iWeb users : To display the mailform use the <iframe> HTML element and paste it in the HTML Snippet.

<iframe src="http://url/to/mailform.php" frameborder="0" width="634" height="550" scrolling="no"></iframe>

Posted by wyodor at 15:49.34
Edited on: woensdag, 03 februari, 2010 10:18.51
Categories: Design, Tutorials, Web

zondag, 10 januari, 2010

Avoiding the iWeb Sitename in the URL

iWeb organizes and publishes its pages in Sites. It will append the Site name to the base URL of your webserver.

If you signed up for a webhosting-and-domainname package (not MobileMe) you can avoid the Sitename in the URL with sub-domains.

www in an URL is a sub-domain. Just as web in web.me.com is a sub-domain of me.com.

Note : It doesn’t work with MobileMe and Personal Domain. MobileMe doesn’t support sub-domains and the sub-domain in your CNAME will be ignored anyway.

Based on my experience to figure out how to avoid the Site name in the URL I wrote an article, or tutorial if you like, on how to do that.

In the article I describe what I got and what I did with my free webhosting package.

The article describes how I set up iWeb and fooled it to use the sub-domains, what extras needed to be done and what the drawbacks are in the end.

And in the very end it describes how I solved the drawbacks and why all of the above wasn’t necessary.

iWeb doesn’t know about all this. So you can happily keep publishing your webpages as before.

And it works. Having your cake and eat it too. Nice.

Below are three URLs. The base URL, the URL iWeb creates, and the sub-domainname URL. When you click a link note the changing of the URLs when it redirects to the right webpage.

http://dailynews.webege.com/
http://dailynews.webege.com/iweb/
http://iweb.dailynews.webege.com/ (the Tutorial)

To test an iWeb Site with a Blog RSS feed and iPhoto/Podcast subscriptions, proceed here :

http://dailynews.webege.com/holiday/

As a bonus there’s a short explanation of how to solve a PHP parse error when you publish an iWeb Site to a 3rd party host with an ill-configured webserver.

Sources : Apache htaccess and Apache Redirect directive

Note : Apple Macintosh Users can read the Apache manual on their computer. Start Personal Webserver and type http://localhost/manual/ in the Browserwindow.

Posted by wyodor at 16:57.47
Edited on: dinsdag, 12 januari, 2010 22:03.43
Categories: Design, Tutorials, Web

dinsdag, 05 januari, 2010

More about a TABLE in iWeb

My tutorial about creating and addding a TABLE in a iWeb webpage will raise the question why not paste the table in the iWeb page.

Well, you can, but when you paste the table it becomes an image. It isn't text anymore. (The exception is an AppleWorks table. It will be pasted as text, but without the cells.)

Your visitor may want to copy the text for further use. And they can perform a Find on the webpage.

Also, text is indexed by search engines. If your spreadsheet numbers have relevance for others, you will be found by those numbers, not by the picture.

As a nice consequence, you can copy your table back into your spreadsheet. Including all the decorations. The calculations are gone, but you have your numbers back in case you lost your spreadsheet.

Try it.

BTW. Besides iWork Numbers you can also use Pages and Keynote to create tables.

6 januari 2010 : I might as well show the difference between a HTML Table and an image.

The HTML Table created with TextEdit:

The Table as an image pasted into iWeb.

Prices (HTML Table image)

Posted by wyodor at 12:21.53
Edited on: woensdag, 06 januari, 2010 16:59.41
Categories: Design, Tutorials, Web

maandag, 04 januari, 2010

Create and add a TABLE in iWeb

The use of a TABLE In a webpage is a convenient way to display information in tabular form.

iWeb has no feature to create tables in a webpage. The closest thing are textboxes. Create them and align them on the canvas.

To create a real HTML table and add it to a webpages you need the following:

  • A spreadsheet application like Microsoft Excel, iWork Numbers, AppleWorks or similar.
  • TextEdit.app.
  • A browser.
  • iWeb 08 or higher with the HTML Snippet option.

I use Mac OS X 10.6 and iWeb 09.

Create the spreadsheet

Create a spreadsheet with the columns and rows you want to display in the browser.

Add the numbers and apply decorations like fonts, colors, borders, etc.

Save your spreadsheet.

Exporting the spreadsheet

Microsoft Excel can export the spreadsheet as a HTML webpage. AppleWorks and iWork Numbers cannot.

All three applications can copy paste the formatted cells. I use that method.

Select the range of cells and copy them.

Open TextEdit.app and display the blank page as Rich Text.

Menu : Format > Make Rich Text (Cmd-Shift-R)

Paste the spreadsheet cells.

Save the page as a Web Page (.html) file.

Save as a web page

Open the saved page in a webbrowser. Verify that it looks as intended.

If you created your spreadsheet in Microsoft Excel and saved it as a webpage, you should verify it in a browser too.

Displaying the saved html file in a iWeb page

To add the saved webpage to the iWeb Snippet you have 2 options :

  1. Save the webpage in a folder on the webserver where you publish your webpages and display it in the HTML Snippet with the IFRAME HTML element.
  2. Copy the HTML code and paste it in the HTML Snippet.

Option 1

  • Determine the URL of the table webpage on the webserver. Copy the URL.
  • Open iWeb and create a webpage.
  • Add a HTML Snippet.
  • Paste this code :

<iframe src="spreadsheet.html" frameborder="0" width="300" height="300" scrolling="no"></iframe>

  • Paste the copied URL where is says spreadsheet.html.
  • Change the width and height numbers.
  • Click Apply. Your page will be displayed in the Snippet.
  • Publish your iWeb page and verify it looks as intended.

Option 2

  • Open the saved webpage in a browserwindow.
  • Display the source of the page. In Safari: Cmd-Option-U.
  • Copy the code.
  • Open iWeb and create a webpage.
  • Add a HTML Snippet.
  • Paste the code.
  • Click Apply. The Snippet will be adjusted to display the table.
  • Publish your iWeb page and verify it looks as intended.

Editing the table webpage

To make changes to the table you have 2 choices :

  1. Go back to your spreadsheet and repeat all the steps to publish your table again.
  2. Edit the saved TextEdit webpage in TextEdit.

With choice 2, choose the Open command in the File menu in TextEdit.

Open File

Uncheck Ignore rich text commands.

You can now edit the formatted page.

When you save the page and you had chosen Option 1 to display the page with the IFRAME you do not need to edit the webpage in iWeb. Simply put it on the server again. Note that when the width and height of the table have changed, it might not fit in the HTML Snippet. In that case you have to adjust the size of the HTML Snippet.

Otherwise you have to repeat the steps in Option 2.

Recommended reading : Using the iWeb HTML Snippet

Posted by wyodor at 16:38.42
Edited on: zondag, 24 januari, 2010 8:59.25
Categories: Design, Tutorials, Web

zondag, 03 januari, 2010

Weer een webhost erbij

In Apple Discussions weer zo'n iWeb figuur die goedkoop uit wil zijn. Ergens bij een gratis webhoster aangemeld (Tripod) waarmee je vergeven wordt van de reclame op je webpagina. En dan janken dat z'n iWeb paginaatje niet werk bij Internet Explorer gebruikers.

Dus proefondervindelijk maar eens op zoek gegaan naar een gratis aanbieders met alle toeters en bellen maar zonder reclame om te kijken wat het allemaal voorstelt.

Uiteindelijk bij 000webhost terecht gekomen.

Aangemeld en binnen een paar minuten online.

In iWeb een Site aangemaakt en met het ingebouwde ftp op de server gezet. Geen enkel probleem. En waarom ook niet.

Maar de webserver is verkeerd geconfigureerd. Elke iWeb pagina begint met de regel:

<?xml version="1.0" encoding="UTF-8"?>

Een webserver die z'n PHP.ini bestand niet goed heeft ingericht zorgt voor een PHP parse foutmelding.

Ik zou mezelf niet zijn als ik dit niet zou kunnen oplossen. Nou was ik al bekend met dit probleem. Zie onder andere dit artikel. Maar dat hield in dat je het PHP.ini bestand zou moeten wijzigen. En daar kon je niet bij. Dus maar gezocht naar een htaccess oplossing.

En ook hier is Google je vriend : short_open_tag htaccess. Dit dus :

php_flag short_open_tag off

Om een lang verhaal kort te maken, ik heb er een verhaaltje van gemaakt.

Hiero : http://dailynews.webege.com/

Hopelijk heeft een ieder er iets aan.

Posted by wyodor at 19:45.12
Categories: Tutorials, Web

vrijdag, 04 december, 2009

Google DNS

Omdat indertijd de DNS service van KPN niet lekker werkte, kwam ik uit bij OpenDNS. Opvragen van paginas ging vlotter en er was minder storing. Verder niet meer aangedacht.

Las nu dat Google sinds vandaag ook een DNS service heeft.

Lees de verhalen daarover

Hier kan je lezen hoe je het instelt : Using Google Public DNS

Heb het toegepast en merk dat de paginas sneller worden geladen dan met OpenDNS.

Hieronder de instelling bij Systeemvoorkeuren. Maak een nieuwe lokatie aan en vul bij DNS-server de twee IP nummers in. Past toe en klaar.

Google DNS  

Posted by wyodor at 14:09.33
Categories: Home, Web, Work

zaterdag, 21 november, 2009

9000 punten in Apple Discussions

Je moet er wat voor doen, maar dan is er de beloning.

Zojuist keek ik effe (hierrr) en zag dat ik 9000 punten heb bij Apple Discussions.

Op naar de 50.000 die nodig zijn voor Level 5.

9000 punten bij Apple Discussions

Posted by wyodor at 20:02.53
Edited on: zaterdag, 21 november, 2009 20:05.54
Categories: Web

iWeb layout template

I created a iWeb template to make it easier to position objects on the canvas.

iWeb template small

It is a grid with a selection of objects in various widths. All objects are graphic boxes. You should use textboxes if you want to type text. So place a textbox on an object to make it fit the width. Then delete the object.

It also contains an image with an irregular shape. It is copied from an older iWeb template. The latest version of iWeb has no irregular shape tool anymore. But it still works.

You can delete all the objects and use the small vertical lines at the top to snap your own objects to the grid.

Download the iWeb Template Domain file

After downloading the zip file, upzip it and put the Template.sites2 file in:

~/Library/Application Support/iWeb/

where ~ is your Home directory. Folder names may vary depending on your System language.

To add the Template Domain file to your own project you have to merge the files with iWebSites.

Caution when merging the files

When merging the files I noted an error in iWebSites. The Template page will sometimes have a page from your own Domain file after merging.

To prevent that, first open the downloaded Template Domain file in iWeb by double-clicking it.

Create a New Site and choose a page from iWeb when asked.

Then drag the Template page from the Template Site to your new Site. The Template Site will disappear.

Remove the page you chose when creating the New Site.

Save your Site and Quit iWeb. Open iWebSites.

Select the Template site and one of your own sites and click the Merge button. iWebSites will create a new Domain file.

Make it default or open it in iWeb. Check the result.

You may have to start over and fiddle to make it work properly.

To use the Template page, duplicate it and drag it to your own site. Work from there.

Hope this helps you creating stunning websites.

Other useful topics

Display a remote picture in your iWeb page
Using the iWeb HTML Snippet
How to add a movie to your blog

Posted by wyodor at 12:29.56
Edited on: zaterdag, 21 november, 2009 12:33.07
Categories: Design, Tutorials, Web