Here's an example. Suppose we have a page title that is edited via MagicEdit:
<h1><magicedit me_name="pageTitle" me_plain>Default Title</magicedit></h1>
In my script, I want to also have a
pageTitle variable that I can do some fancy stuff with. To define a variable with a value that is stored in the MagicEdit database, use the following script declaration in your page (usually the
head of your page):
If the page title has been edited (and its value is available in the database), the resultant code as written to the page will be:
You can now use this variable in other scripts on the page.
srcwhen you use
cl_variables. Use a separate script declaration.
$me_nameto bind to the non-repeated element. This is similar to setting