plugins - Joomla 3.3: Get data from column 'attribs' in the table 'content' -


i'm using aixeena easy cck-plugin in joomla 3.3-website. it's plugin allows me add custom fields in article edit-page. content fill out there (should) show on website. plugin stores information in #_content table in attribs column.

on website, aixeena says have use following code make filled out text visible on website:

$attrb = json_decode($this->item->attribs);  echo $attrb->fieldname; 

this code drops following error:

notice: undefined property: jdocumenthtml::$item in /applications/mamp/htdocs/buutpot/templates/buutpot.nl-standaardtemplate/index.php on line 123

notice: trying property of non-object in /applications/mamp/htdocs/buutpot/templates/buutpot.nl-standaardtemplate/index.php on line 123

fatal error: call member function get() on non-object in /applications/mamp/htdocs/buutpot/templates/buutpot.nl-standaardtemplate/index.php on line 124

i think written older version of joomla. searched around , found code:

$params  = $this->item->params; echo $params->get('fieldname'); 

when use code on site, gives me following error's:

notice: undefined property: jdocumenthtml::$item in /applications/mamp/htdocs/buutpot/templates/buutpot.nl-standaardtemplate/index.php on line 123

notice: trying property of non-object in /applications/mamp/htdocs/buutpot/templates/buutpot.nl-standaardtemplate/index.php on line 123

notice: trying property of non-object in /applications/mamp/htdocs/buutpot/templates/buutpot.nl-standaardtemplate/index.php on line 124

that's without fatal error. i'm not sure why without.

could me out getting right code variable out of table? in advance!

edit 1: link plugin: http://www.aixeena.org/aixeena-lab/aixeena-easy-cck

edit 2: edited question in reply on comment of elin.

so notices say, problem $this->item not exist. need figure out actual name of object , use rather $this->item. looking in layout of whereever trying display. can please check template see if has layout override article view (assuming view trying access form from)?


Comments

Popular posts from this blog

C# random value from dictionary and tuple -

cgi - How do I interpret URLs without extension as files rather than missing directories in nginx? -

.htaccess - htaccess convert request to clean url and add slash at the end of the url -