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 Wednesday at 08:13 AM Author Posted Wednesday 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 Wednesday at 09:52 AM Posted Wednesday at 09:52 AM The alternative of course would be to create an application for this
opentype Posted Wednesday at 10:31 AM Posted Wednesday at 10:31 AM Or convert to PHP template code? Like {{$variable = 5;}} I assume this continues to work?
Kirill Gromov Posted Wednesday at 05:12 PM Posted Wednesday at 05:12 PM (edited) However, language strings are still exist: content_block_add_custom_type_php and content_block_add_custom_type_php_desc Edited Wednesday at 05:12 PM by Kirill Gromov
Marc Posted Thursday at 08:15 AM Posted Thursday at 08:15 AM 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