- Posts: 7
COMMUNITY FORUM
Calling extra field values separately?
- Johan Mauritzson
-
Topic Author
- Offline
- New Member
Less
More
14 years 10 months ago #85220
by Johan Mauritzson
Calling extra field values separately? was created by Johan Mauritzson
Hi,I wonder if someone can tell me the answer to a quick question... Sorry for double-posting, seems the other Forum was dead.I need
to hack my Category view and turn it into a table view like this:Address Rooms Area Size Rent
Available Value Value Value Value
Value ValueValue Value Value Value Value ValueValue
Value Value Value Value ValueClicking the address
is the link to the Item view. Now, the item has lots more extra fields
than these, but I only want to show these. What would I do to call on
the specific ones I want to use?I am under a tight deadline (2
days) and could pay pretty good money for someone to do this hack for me
if it turns out it is very complicated. /Johan
to hack my Category view and turn it into a table view like this:Address Rooms Area Size Rent
Available Value Value Value Value
Value ValueValue Value Value Value Value ValueValue
Value Value Value Value ValueClicking the address
is the link to the Item view. Now, the item has lots more extra fields
than these, but I only want to show these. What would I do to call on
the specific ones I want to use?I am under a tight deadline (2
days) and could pay pretty good money for someone to do this hack for me
if it turns out it is very complicated. /Johan
Please Log in or Create an account to join the conversation.
- william white
-
- Offline
- Platinum Member
Less
More
- Posts: 3722
14 years 10 months ago #85221
by william white
Replied by william white on topic Calling extra field values separately?
Any luck?
Attached is code to display extra fields from an item
first - default
second - create an array
third - display directly from the item
Attached is code to display extra fields from an item
first - default
second - create an array
third - display directly from the item
Please Log in or Create an account to join the conversation.
- Johan Mauritzson
-
Topic Author
- Offline
- New Member
Less
More
- Posts: 7
14 years 10 months ago #85222
by Johan Mauritzson
Replied by Johan Mauritzson on topic Calling extra field values separately?
Thanks so much William!
I will immediately try it and see if I can get it to work...
/Johan
William White said:Any luck? Attached is code to display extra fields from an item
first - default
second - create an array
third - display directly from the item
I will immediately try it and see if I can get it to work...
/Johan
William White said:Any luck? Attached is code to display extra fields from an item
first - default
second - create an array
third - display directly from the item
Please Log in or Create an account to join the conversation.
- Johan Mauritzson
-
Topic Author
- Offline
- New Member
Less
More
- Posts: 7
14 years 10 months ago #85223
by Johan Mauritzson
Replied by Johan Mauritzson on topic Calling extra field values separately?
Sorry, Can't get it to work... I basically copied it into my category_item.php, which is the page I want to customize like this. I put it before the other "Info-block" to see if it would work at all, but i get.."
"Invalid argument supplied for foreach() in /var/www/02/32/02/kuststaden.se/www/templates/rt_dominion_j15/html/com_k2/templates/lagenhet/category_item.php on line 142"
What am I doing wrong? :-)
JohanM said:Thanks so much William! I will immediately try it and see if I can get it to work...
/Johan
William White said:Any luck? Attached is code to display extra fields from an item first - default
second - create an array
third - display directly from the item
"Invalid argument supplied for foreach() in /var/www/02/32/02/kuststaden.se/www/templates/rt_dominion_j15/html/com_k2/templates/lagenhet/category_item.php on line 142"
What am I doing wrong? :-)
JohanM said:Thanks so much William! I will immediately try it and see if I can get it to work...
/Johan
William White said:Any luck? Attached is code to display extra fields from an item first - default
second - create an array
third - display directly from the item
Please Log in or Create an account to join the conversation.
- william white
-
- Offline
- Platinum Member
Less
More
- Posts: 3722
14 years 10 months ago #85224
by william white
Replied by william white on topic Calling extra field values separately?
See my PM
Please Log in or Create an account to join the conversation.
- Johan Mauritzson
-
Topic Author
- Offline
- New Member
Less
More
- Posts: 7
14 years 10 months ago #85225
by Johan Mauritzson
Replied by Johan Mauritzson on topic Calling extra field values separately?
Thanks very much William. We are in different time zones here, I will reply to your message ASAP.
Again, thanks!
/Johan
William White said:See my PM
Again, thanks!
/Johan
William White said:See my PM
Please Log in or Create an account to join the conversation.