Keyword

using custom code in tools module

  • Mark Landry
  • Mark Landry's Avatar Topic Author
  • Offline
  • New Member
More
8 years 7 months ago #151057 by Mark Landry
using custom code in tools module was created by Mark Landry
Hi, can't get the following to work, just shows up blank.
<?php
//convertArray to use ids as key
$extrafields = array();
foreach($item->extra_fields as $extra_field)
{
$extrafields[$extra_field->id] = $extra_field->value;
}
?>

<?php

print_r($extrafields);
?>

Is it possible to do this in the tools module?

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 7 months ago #151069 by Krikor Boghossian
Replied by Krikor Boghossian on topic using custom code in tools module
You need to specify which item to grab the fields from with an SQL query.

You cannot execute code from the component inside a module view.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum