home *** CD-ROM | disk | FTP | other *** search
- !Publish v2.00 and later
- ========================
-
- Please note that !Publish is a fairly technical tool, and is probably
- not of immediate use to users who are new to web page creation.
-
- HTMLEdit allows you to create pages with "dynamic content", that is,
- pages which contain references to other files, or variable information
- such as version numbers, current date/time etc. HTMLEdit includes a
- "publish" option which will expand this dynamic content, filling it
- in to produce a complete page.
-
- !Publish is designed to do the same thing, but on a site wide basis.
-
-
- Understanding "Dynamic Content"
- -------------------------------
-
- Although most customers will be using HTMLEdit to build pages, and
- will hence have menu options to automate this process, it is worth
- briefly describing what we're talking about.
-
- The system allows pages to include information which may change on
- a regular basis including date, time, version and (most usefully)
- shared blocks of text/HTML etc.
-
- These "dynamic" bits are included via comments in your HTML, thus
- each command is enclosed in <!-- and --> wrappers.
-
- The actual dynamic commands themselves each start with an @ sign:
-
- @DATE this would be replaced by the current date when published
-
- @TIME this would be replaced by the current time when published
-
- @VERSION this would prompt you for a version number
-
- @TEXT filename The file (a RISC OS filename eg. ADFS::4.$.Text)
- would be inserted when published.
-
- So an example might be:
-
- <!-- @TEXT ADFS::4.$.WebSite.Files.MyText -->
-
- As you can see, there's nothing magical to this, so you can create
- these tags yourself without HTMLEdit, but naturally HTMLEdit simplifies
- the process (and can also publish pages itself).
-
-
-
- By sharing things across a number of pages, you can rapidly change
- things across the whole site just by changing one file. Since this
- is done *before* uploading your pages to your web site, it will work
- on all browsers, and all web servers, and your users/customers will
- never know you are using the system!
-
-
- If you use !Publish 2 with scripts, you can also copy in (and publish
- at the same time) directories or files from other parts of your hard
- disc, or from a network, thus drawing together work that others are
- doing to form the complete web site.
-
-
- As we said above, this is not for those taking their first steps in
- Web Authoring, but when used correctly !Publish 2 is an extremely
- powerful tool, which adds a new level of scope and automation to
- the web design process.
-
-
-
-
- Getting started
- ----------------
-
- You can drag an HTML file, a directory of files, or a script onto the
- !Publish icon (or double click a script) to do this.
-
- Dragging an HTML file will publish it in much the same way HTMLEdit
- does.
-
- Dragging a directory will cause each file in that directory to be
- "published". For HTML files, this is just as described above. For
- text files, images and archives (zips etc.), the files are copied
- in to the destination directory. The exact behaviour for these files
- can be set in the choices.
-
- Scripts
- -------
-
- A script file (type &AB3 aka "PbScript") or text file dragged onto
- the icon will be parsed for "in/out pairs", allowing you to publish
- a whole site, merging in resources from all over your hard disc to
- produce the final site. The actions applied to each "in file/directory"
- are exactly as if you had dragged to the iconbar, making it easy to
- include directories full of files for inclusion.
-
- A script will have one or more lines, each taking the form:
-
- <source file/directory> <destination file/directory>
- ad infinitum...
-
- Eg.
-
- ADFS::4.$.Work.TempSite ADFS::4.$.Website
- ADFS::4.$.Work.Images.Temp ADFS::4.$.Website.Images
- Etc.
-
- A script of type &AB3 can be double clicked on to launch !Publish
- (if needed) and run the script. This makes it easy to build a
- script for the whole of each site you maintain. If you are a
- programmer, think of it as a "makefile" for the site.
-
- Date and Time format
- --------------------
-
- The date and time functions use the system variables HTMLEdit$dateformat
- and HTMLEdit$timeformat respectively. These are set in the !Run file,
- and allow you to adjust the date and time formats to your own house
- style.
-
-
-