Is anyone else having issues with using safecracker_head variable?
I added {safecracker_head} to one of my snippets and then tried it in an embed and it just echos itself as text.
v 2.1.3
build 20101220
v 2.0.0
This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.
The active forums are here.
February 25, 2011 6:37pm
Subscribe [4]#1 / Feb 25, 2011 6:37pm
Is anyone else having issues with using safecracker_head variable?
I added {safecracker_head} to one of my snippets and then tried it in an embed and it just echos itself as text.
v 2.1.3
build 20101220
v 2.0.0
#2 / Feb 27, 2011 3:22pm
Hi Natetronn,
The safecracker_head variable is not a global and must be used inside the safecracker tags. Just like any other embed it will be parsed separately and after the main template and that’s why you are seeing it echoed out.
Cheers
Greg
#3 / Feb 27, 2011 3:32pm
Thanks Greg for the reply.
I am wondering why this even exists? To have it somewhere else in the Safecracker (where is already resides) versus at the bottom of the page or head tag where it belongs doesn’t make sense to me?
Any chance is will be turned to a global in the future? (Feature Request?)
#4 / Feb 28, 2011 7:36am
Hi, Nate. Feel free to add this as a Feature Request.
#5 / Feb 28, 2011 2:35pm
Thanks Sue, here it is.
#6 / Mar 01, 2011 3:49am
Natetronn,
Thank’s for the FR. Closing this one out.