Andreas Grace Posted Saturday at 07:50 AM Posted Saturday at 07:50 AM I have this notification. So, I am using two custom blocks. One is plain HTML. The other one has some JavaScript and just a php echo to insert the script. Can I use this somehow in v5? sobrenome 1
Daniel F Posted Saturday at 08:07 AM Posted Saturday at 08:07 AM What's the reason for not using plain HTML to add your JS code to the code? There's no need for php ?! or is it some dynamic JS code which also requires php variables?
Andreas Grace Posted Saturday at 09:28 AM Author Posted Saturday at 09:28 AM I think the php echo was used simply to insert the script. So I will try to save the javascript code in a .js file and insert it with plain HTML and see if this will make the warning go away.
Andreas Grace Posted yesterday at 08:13 AM Author Posted yesterday at 08:13 AM It turns out the block contains more php code that actually does something. So probably we will convert the php code to JS.
Marc Posted yesterday at 09:52 AM Posted yesterday at 09:52 AM The alternative of course would be to create an application for this
opentype Posted yesterday at 10:31 AM Posted yesterday at 10:31 AM Or convert to PHP template code? Like {{$variable = 5;}} I assume this continues to work?
Kirill Gromov Posted 20 hours ago Posted 20 hours ago (edited) However, language strings are still exist: content_block_add_custom_type_php and content_block_add_custom_type_php_desc Edited 20 hours ago by Kirill Gromov
Marc Posted 5 hours ago Posted 5 hours ago 15 hours ago, Kirill Gromov said: However, language strings are still exist: content_block_add_custom_type_php and content_block_add_custom_type_php_desc Feel free to post that up within the v5 bug tracker 21 hours ago, opentype said: Or convert to PHP template code? Like {{$variable = 5;}} I assume this continues to work? You may be best to ask questions like this in the v5 beta discussion area, rather than here
Recommended Posts