magic tags don't work

0

Hi. My magic tags don't work outside the main setup page: production/plugins/{@slugl} works fine for detail url field, but if i put {@name} in page title at Pages setup tab, or put them (after using get_field with appropriate fieldname) in the code or html, they just don't convert to values, staying as {@smth}. What could be the problem?

asked Sep 24 '10 at 7:18

Fike

208

edited Sep 24 '10 at 7:39

add comment
enter at least 15 characters

1 Answer

1

Magic Tags are only used in Pod Templates. To use them elsewhere, you'll need to run them through this function:

$Record->parse_template_string('{@my_field}');

There are other options I'm sure you can figure out, but Pod Pages currently don't parse magic tags.

answered Sep 25 '10 at 3:46

sc0ttkclark

2936

add comment
enter at least 15 characters