Andreas Grace Posted November 16 Posted November 16 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 November 16 Posted November 16 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 November 16 Author Posted November 16 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 November 20 Author Posted November 20 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 November 20 Posted November 20 The alternative of course would be to create an application for this
opentype Posted November 20 Posted November 20 Or convert to PHP template code? Like {{$variable = 5;}} I assume this continues to work?
Kirill Gromov Posted November 20 Posted November 20 (edited) However, language strings are still exist: content_block_add_custom_type_php and content_block_add_custom_type_php_desc Edited November 20 by Kirill Gromov
Marc Posted November 21 Posted November 21 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