- Posts: 2
COMMUNITY FORUM
Extrafields for items in user blog
- Alessandro Vicente
- Topic Author
- Offline
- New Member
Less
More
12 years 1 week ago #103859
by Alessandro Vicente
Extrafields for items in user blog was created by Alessandro Vicente
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:
Log in or Create an account to join the conversation.
- Lefteris
- Offline
- Moderator
Less
More
- Posts: 8743
12 years 1 week ago #103860
by Lefteris
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Lefteris on topic Re: Extrafields for items in user blog
Hi. You cannot do this. Extra fields are not fetched in the user layout.
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Alessandro Vicente
- Topic Author
- Offline
- New Member
Less
More
- Posts: 2
12 years 1 week ago #103861
by Alessandro Vicente
Replied by Alessandro Vicente on topic Re: Extrafields for items in user blog
I don't understand, this is an output for
Log in or Create an account to join the conversation.
- Lefteris
- Offline
- Moderator
Less
More
- Posts: 8743
12 years 1 week ago #103862
by Lefteris
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Lefteris on topic Re: Extrafields for items in user blog
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.
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.