Hey guys,
I'm using {loadposition formname} to load a form into the output page of a Joomla component (Jreviews)
I'm trying to pass a variable from the Jreviews page into the form using the Jreviews api for page (or "listing") title. Here's the variable I'm trying to pass:
I've declared the same thing in the form .php area but can't get it to echo in the form. I can do it the hard way and make a database dip but it would be a ton better to use the api if it's possible.
Also, I tried calling the page title using
but all I get out of that is "faq" despite the fact that the "listing" title is correct in the browser title area. ??
Anyway, assuming that all makes sens, thanx a ton for taking a look!
I'm using {loadposition formname} to load a form into the output page of a Joomla component (Jreviews)
I'm trying to pass a variable from the Jreviews page into the form using the Jreviews api for page (or "listing") title. Here's the variable I'm trying to pass:
global $title;
$title = $listing['Listing']['title'];
I've declared the same thing in the form .php area but can't get it to echo in the form. I can do it the hard way and make a database dip but it would be a ton better to use the api if it's possible.
Also, I tried calling the page title using
global $mainframe;
echo $mainframe->getPageTitle();
but all I get out of that is "faq" despite the fact that the "listing" title is correct in the browser title area. ??
Anyway, assuming that all makes sens, thanx a ton for taking a look!