I have modified user.php k2 template to show extrafields for items in user blog, but I received the following error:
Warning: Invalid argument supplied for foreach() in /.../templates/mytmpl/html/com_k2/templates/default/user.php on line 100
Line #100 is:
Warning: Invalid argument supplied for foreach() in /.../templates/mytmpl/html/com_k2/templates/default/user.php on line 100
Line #100 is:
14 years 1 month ago #103860
Hi. You cannot do this. Extra fields are not fetched in the user layout.
Topic Author
14 years 1 month ago #103861
I don't understand, this is an output for
14 years 1 month ago #103862
This is just the databse value, not the rendered output you need. If you are familiar with PHP see how other views do it and do it by your own.
Log in or create an account to reply.