The system tag #CONFIG is used to display the value of a setting stored in the spip_meta table.

#CONFIG returns the raw contents of a value contained in the spip_meta table.

Read the spip_meta table

Example: Find out if visitors are accepted on the site:

[Visitors: (#CONFIG{accepter_visiteurs})]

will display either "oui" (yes) or "non" (no).

It is additionally possible to supply a default value to be used if the contents of the meta field are empty. #CONFIG{meta_name,default_value}
Example: Find out the address of the site

[Site address: (#CONFIG{adresse_site, no URL exists for the site})]

Warning: as the tag returns the value raw from the spip_meta table, the values stored as a serialized array are returned as they are.

Read the configuration of a plug-in

Many plug-ins store their configuration in an array. In this case, it is possible to access the internal values of this array by specifying a path with the / character.


See also

The tags

  • #CONST : to retrieve the value of a constant
  • #EVAL : to retrieve the value of a custom variable

Author jack, Mark Published : Updated : 22/04/23

Translations : عربي, català, English, Español, français, Nederlands