Hello / Bonjour,
First of all I just discovered this extension, and I need to say: I love it !
I am building an joomla module related to SEBLOD, and I need some developer help, I have 2 main questions:
01/ How can I (programmatically) generate links over a SEBLOD item. Based on the item ID from the #__cck_store_xxx table as sample. I presume there is some files to include, and any way to instanciate a SEBLOD object, and then extract the URL. Someting like:
require_once JPATH_SITE.'/components/com_cck/ xxxx .php';
$sbl = new SeblodObject($id);
$href = $sbl->getUrl() ;
02/ Second question: my module need to know when it's dispplayed on a SEBLOD related page. My idea was to do some code like:
$app = JFactory::getApplication('site');
$code = 'com_content';
$option= strtolower(JRequest::getString('option'))
if (strtolower($option) != $code)
return ;
$task = strtolower(JRequest::getString("view"));
if ($task == "article") {....
But.... As I understand, the url can be option=com_cck, com_content, com_users, ... Right? Then How can I define the context ???
Thanks I advance, I hope I will get answers.
(Céd)Rick