1,848
edits
m (→Using Webtags) |
m (→Using Webtags) |
||
= Using Webtags =
There are
#Processing files through the running instance of CumulusMX
#Getting the value by using the local interface [[Cumulus_MX_Local_API#General_API_-_HTTP_GET|GET method]].
#Getting the values through the
NOTE: it is not possible to give Webtag modifiers by using the get method but it is in the POST method. Check out the differences in the above links.
There are two bonus methods for getting values out of the CMX database:
The first method is used in files used as input for the Extra Web Files in CMX which are then processed by CMX if you tick ''process'' The output file then contains the value.▼
#Getting [[Cumulus_MX_Local_API#Predetermined_Data|predetermined data]]
The second method can give you a quick view of a value from the browser but its principal use is to be used programmatically from anywhere you can reach the CumulusMX machine.▼
▲#Getting the values through the HTTP POST method
#Using MySQL through the Custom Upload feature
▲The first method is used in files used as input for the Extra Web Files in CMX which are then processed by CMX if you tick ''process'' The output file then contains the value.<br/>
▲The second
The predetermined methods and the SQL methods are really for programmers.
The local API methods are described on [[Cumulus_MX_Local_API|their own page]].
== Processing files ==
The oldest, most common and possibly the easiest method for using webtags is processing a file (e.g. a HTML web page or a PHP script) which contains a webtag description like <#temp rc=y>. After processing the output file then contains the value for that webtag and the complete description, including the brackets have then disappeared.
The configuration should look like the screenshot below:
[[File:Extra Webfiles config.jpg|center]]
== MySQL ==
|