![]() |
creating new page groups
iphlex > webphlex > documentation > creating new page groups |
show contents
hide contents |
|
| ||
| ||
| ||||
| ||||
|
There are basically three ways of creating a new page group:
| |||
|
top of page
| |||
|
copying an existing page group
Open the web page groups screen (control panel > web pages > web page groups) and call up the web page group you want to use as the basis of a new one.
Click the button 'create new record, copied from this one' First change the local page group location (on page 'general 1') and/or any filenames, filename prefixes and suffixes to be used for output files (on pages 'main page' and 'detail page') to avoid overwriting existing files. Do the same for any extra pages, deleting those which will not be required in the new site (page 'extra pages'). If necessary, change the default locations for (image) files and previews to reflect the new situation (page 'general 1').
You can now start work on your new page group. Use the buttons 'preview generated code in browser' See section 'building elements' for tips on how to build new elements.
Note that copying a page group does not cause the creation of any new text blocks: the text blocks used by the original page group will also be used in the new one.
| |||
|
top of page
| |||
|
importing a page group
An import/export file can contain the entire form and structure of a web page group (or several of them, making up an entire web site), plus any text blocks used in the page group(s). They do not contain any images or other external files. Import/export file are available for all the example web sites, for the entire iphlex site, for this documentation and for several other sites made using webphlex.
They can be downloaded Import the contents of the import/export file into the database: control panel > actions > import data.
Open the web page groups screen (control panel > web pages > web page groups) and call up the page group you've just imported.
If the local page group location (on page 'general 1') exists on your machine, you may wish to change it so as to avoid overwriting its current contents. Otherwise you should create the directory where you want generated files to be placed, and set the local page group location to this directory.
If you wish you can now generate the web page group files in their new location by clicking the 'generate web page group' button You can now begin changing the contents of the page group, its elements and related text blocks. Use the buttons 'preview generated code in browser' See section 'building elements' for tips on how to build new elements.
If you now generate the altered page group using the 'generate web page group' button | |||
|
top of page
| |||
|
building a page group from scratch
Many people find it simpler to build a new page group from scratch; in our experience it takes longer, but can produce a 'cleaner' end result. You'll definitely have to have studied the documentation, and preferably played around with an existing page group, before attempting this!
Open the web page groups screen (control panel > web pages > web page groups) and call up the empty web page group, code *NEW.
Click the button 'create new record, copied from this one' Create the directory on disk where you want generated files to be placed, and set the local page group location (on page 'general 1') to this directory. Set the default locations for (image) files and/or preview images if these are being used. It's generally a good idea to place images in a subdirectory of the local page group location. The system also works best if you make the local directory structure identical to that which will eventually be used on the server hosting the site.
Set the the filename to be used for the first main page (e.g. 'index') on page 'main page'. If the page group is to contain detail pages, put the prefix and/or suffix to be used in their filenames on page 'detail page'.
On the elements subscreen (on page 'elements'), click button 'new record' If no template has (yet) been specified for an element, one will be created automatically according to the element's contents. You can see it using the button 'preview generated text for element' See section 'building elements' for tips on how to build new elements.
The main page template (on page 'main page') already contains rudimentary HTML statements. You can see what the main page will look like using the buttons 'preview generated code in browser' | |||
|
top of page
| |||
|
building elements
If the page group contains a number of similar elements (e.g. for a number of images or texts), it's easiest to work on a single element, continually previewing it using the 'preview generated code in browser' button Once you've got it working the way you want you can either copy the element record as many times as you need to using the button 'copy selected items' button You can also use the element as a basis for the creation of new elements for the (image) files in a given directory (button 'add element records for file(s)' on page 'tools'); first make sure the element is selected by clicking on its line in the element selection window on page 'elements'.
| |||
|
top of page
| |||
| iphlex > webphlex > documentation > creating new page groups | Copyright © 2006 iphlex systems |