Php webtags: Difference between revisions

680 bytes added ,  09:18, 8 January 2015
m
Line 13: Line 13:
=Installation=
=Installation=


* Download [http://wiki.sandaysoft.com/files/cumuluswebtags.txt '''cumuluswebtags.txt'''];
[[File:ScreenShot-PHPWebtags-ConfigSetup.png|right]]
[[File:ScreenShot-PHPWebtags-ConfigSetup.png|right|thumb]]
 
* place the file '''cumuluswebtags.txt''' in the Cumulus data folder (or any other location accessible by/to Cumulus);
# Download [http://wiki.sandaysoft.com/files/cumuluswebtags.txt cumuluswebtags.txt link];
* on the Cumulus main screen, from the pull-down menus, select the 'Configuration' option and then the 'Internet' option;
# Choose a local directory (that Cumulus can read) where you store your customised templates as the destination for this download, or copy the file there after download;
* on the 'Internet Settings' screen, select the 'Files' tab;
# On the 'Cumulus main screen', in the '''Configuration''' menu, select the ''Internet'' option;
* in one of the left side boxes (under the 'Local filenames' header), enter the name '''cumuluswebtags.txt''':
# On the 'Internet Settings' screen, select the ''Files'' tab;<br><br>
* -- if you have placed the file in a different location, also add the path to the file name;
# Edit the screen columns as indicated by red in the figure:
* -- you can also use the 'Browse' button to find the exact location of the file;
#* in one of the left side boxes (under the 'Local filenames' header), enter the path (directory\file): '''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 right side boxes (under the 'Remote filenames' header), enter the name '''cumuluswebtags.php''':
#* in one of the right side boxes (under the 'Remote filenames' header), enter the name '''cumuluswebtags.php''':
* -- if you are uploading the Cumulus files to a different server location, also add the server path to the file name;
#** -- if you are uploading the Cumulus files to a different server directory (to that specified on the ''Sites/Options'' tab), add the relative server path (from either the FTP default or the directory specified on ''Sites/Options'') before the file name;
* -- notice that the file extension has been changed from '''txt''' (on the left side) to '''php''' (on the right side);
#** -- notice that the file extension has been changed from '''txt''' (on the left side) to '''php''' (on the right side);
* place a check mark in the box under the 'Process?' header:
#* 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;
#** -- 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;
* place a check mark in the box under the 'FTP?' header:
#* place a check mark in the box under the 'FTP?' header:
* -- this tells Cumulus that the processed file must be uploaded to the Web server with all the other files;
#** -- this tells Cumulus that the processed file must be uploaded by file transfer to the remote Web server with all the other files;
* finally, click on the lower-right 'OK' button to save the newly entered settings.
#** (if you use a local web server, you can leave this un-checked and Cumulus will copy across the processed file to the location specified in the right hand box, but for this you need to specify the full path there);
#* place a check mark in the box under the 'UTF-8?' header:
#** -- this tells Cumulus to output the web page using the standard UTF-8 encoding as used by its standard files;
# Finally, click on the lower-right '''OK''' button to save the newly entered settings.


=Usage=
=Usage=
5,838

edits