Webtags: Difference between revisions
From Cumulus Wiki
Jump to navigationJump to search
m (→Using Webtags) |
m (→Using Webtags) |
||
Line 30: | Line 30: | ||
= Using Webtags = | = Using Webtags = | ||
There are | There are the following methods to ask CMX to do this translation both of which will be discussed below (or in a sub-page). The two methods are: | ||
#Processing files through the running instance of CumulusMX | #Processing files through the running instance of CumulusMX | ||
#Getting the value by using the local interface GET method. | #Getting the value by using the local interface [[Cumulus_MX_Local_API#General_API_-_HTTP_GET|GET method]]. | ||
#Getting the values through the local interface [[Cumulus_MX_Local_API#General_API_-_HTTP_POST|POST method]] | |||
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: | |||
#Getting [[Cumulus_MX_Local_API#Predetermined_Data|predetermined data]] | |||
#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 and third method's principal use is to be used programmatically from anywhere you can reach the CumulusMX machine.<br/> | |||
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 == |