5,838
edits
m (→Alternatives) |
|||
== Add your template(s) to Extra Files processing ==
Please note that a template file for Cumulus to process (local name in the following) can have any file extension you want. Some example show ".txt" being used, others show ".cum" being used, but some ready made templates might use ".php". It really does not matter what the file extension is, but obviously what you enter in the local name "slot" must match the actual file you are referencing.
Similarly, a file that you are going to include in other scripts can have any extension you like, it makes no difference to the PHP parser. Thus what you put in the remote name "slot" must also match what you are going to use in your "include" (or "require") statements. One convention is that the extension should be ".inc" to make it clear it is an include file, not a web page as might be implied by using ".php". It is the "<?php" at the start of the file that the PHP parser will recognise when it brings the contents of the uploaded file into another script.
=== Cumulus 1 ===
#Edit the screen columns as indicated by red in the figure:
#*in one of the local side boxes (under the 'Local filenames' header), enter the path (directory\file) to where you have stored the template:<br>e.g. '''your_customised_template_location\cumuluswebtags.txt'''<br> (you can use the 'Browse' button to find and select the exact location of the file);<br><br>
#*in one of the remote side boxes (under the 'Remote filenames' header), enter the name '''cumuluswebtags.
#** -- if needed add the relative server path (see Cumulus Help for explanation) before the file name;
#** (-- if you are using a local server, and want Cumulus to do a 'copy' instead of using 'FTP' then specify the full path for the destination file here);
#** -- ''notice that the file extension has been changed from'' '''txt''' (on the left side) to '''
#* place a check mark in the box under the 'Process?' header;
#** -- this tells Cumulus that the file '''cumuluswebtags.txt''' contains tags which need to be replaced by actual values when it processes the template into a web page;
#*(there is no red arrow under the 'Realtime' header as it may not be appropriate),
#** -- If any of your PHP pages require the latest information at your chosen real-time interval (rather than the 'normal' web site '''updating''' interval) they could be using this file because they require any web tags not in the
#* place a check mark in the box under the 'FTP?' header;
#** -- this tells Cumulus that the processed file must be uploaded by file transfer to the remote Web server with all the other files;
#If you have followed the instructions above and saved your file in UTF-8 encoding, tick the '''UTF8''' column.
#Leave the '''Binary''' column unticked.
#If you have not ticked the
==Example==
|
edits