I want to basically ask:
Is the "show title on"
If so, show the $row->title.
I've tried this, but I don't think I'm doing the right thing:
if ($row->item_title == 1 )
{
echo "
" . $row->title . "
";}
Maybe I'm using incorrect syntax. Maybe I'm looking at the wrong variable. This is a bit mysterious to me as it's my first trip through the chasms of code that is joomla.
The object $row is mosParameters. When I do a print_r on it ($row), I get :
Code: Select all
stdClass Object
(
[id] => 25
[title] => Lorem Ipsum Products
[title_alias] => Lorem Ipsum Products
[introtext] => <p>Proin justo tellus, elementum sit amet, aliquam ut, convallis nec, lectus. Integer quam justo, nonummy eget, eleifend ut, facilisis vel, est. Curabitur eget leo non tellus ullamcorper pharetra. </p>
[fulltext] =>
[state] => 1
[sectionid] => 9
[mask] => 0
[catid] => 24
[created] => 2007-12-06 12:35:40
[created_by] => 62
[created_by_alias] =>
[modified] => 2007-12-06 22:23:43
[modified_by] => 62
[checked_out] => 0
[checked_out_time] => 0000-00-00 00:00:00
[publish_up] => 2007-12-06 12:34:34
[publish_down] => 0000-00-00 00:00:00
[images] =>
[urls] =>
[attribs] => pageclass_sfx=
back_button=
[color=red]item_title=1[/color]
link_titles=
introtext=1
section=0
section_link=0
category=0
category_link=0
rating=
author=
createdate=
modifydate=
pdf=
print=
email=
keyref=
docbook_type=
[version] => 2
[parentid] => 0
[ordering] => 1
[metakey] =>
[metadesc] =>
[access] => 0
[hits] => 0
[author] => Administrator
[usertype] => Super Administrator
[category] => Private Banking
[section] => Products
[groups] => Public
[sec_pub] => 1
[cat_pub] => 1
[sec_access] => 0
[cat_access] => 0
[sec_id] => 9
[cat_id] => 24
[prev] =>
[next] =>
[text] => <p>Proin justo tellus, elementum sit amet, aliquam ut, convallis nec, lectus. Integer quam justo, nonummy eget, eleifend ut, facilisis vel, est. Curabitur eget leo non tellus ullamcorper pharetra. </p>
)
It seems like a pretty easy if then echo thing but I may be just a little off in my approach. Any help is appreciated.
Cheers,
Adam