• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: How to concatenate Title + some string

How to concatenate Title + some string 12 years 10 months ago #17691

Hello,

I put that code in an hidden field to get the title of an article :
//<code>
$db = & JFactory::getDBO();
$fcitem_id= JRequest::getInt('id',0);
$view= JRequest::getVar('view');
if ($view!='items' && $view!='item' && $view!='article') {
   return "not in items view";
}
 
// RETRIEVE item data
if ($fcitem_id) {
   $query = 'SELECT c.* '
      .'FROM '.'#'.'__content AS c '
      .'WHERE c.id = ' . $fcitem_id;
 
   $db->setQuery($query);
   $itemdata = $db->loadObject();
   $item_title = $itemdata->title;
}
 
// e.g.
return $item_title;
 
//</code>
but now i would like to concatenate empty caracters + more string

For example :

Title is : Tram Bar
I would like to return : This e-mail address is being protected from spambots. You need JavaScript enabled to view it

thanks
Last Edit: 12 years 10 months ago by wilco.alsemgeest.
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!