9 years ago
4
Topic

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 

Get a Book for SEBLOD
9 years ago
2
Level 1

Hello pelloq1,

thank for your interest in SEBLOD.


Can you give us more information on the module you need to develope ?

Basically, SEBLOD let you archive 90% and more of your need without developping module.

If you need to display a specific article in a module, you just have to create a search type and configure the item view like you need.

So you can configure simply your link in this view by using SEBLOD feature.

And you need some custom part in this view, you can use a field code "Beforerender", or create a position override, or create your own variation, or....


Best regards.

Lionel

9 years ago
1
Level 2

Hello Lionel, 

I am creating have created a gateway between Geocode Factory 5 and Seblod.

The goal is not to make a concurrent product with your mapping solution, but integrate seblod content in GF5 maps (mixed with another extensions markers.

My goal is to create 01/ links from my app to seblod entries, and 02 defining if I am on a category containing seblod items OR if I am on a seblod entry itself.

Cédric / Rick

9 years ago
0
Level 3

Hi,

Any news here ?

If you do not want to reply because you think I want to be concurrent, then I prefere you say it to me ! 

;-)

Rick

9 years ago
0
Level 1

Hello pelloq1,

absolutly not, you can develop every extension you need / want.

You can even make them available for free or for a fee on the market or every where else.

The only think is that some questions request more reflexion / test,  than other, so answers don't come necessarly quickly.

We always develope in SEBLOD context, so we are never in your context and don't have time to make some test in this direction.


If you really need some help on that, I can advise you to have a look to our support package.


Best regards.

Lionel

Get a Book for SEBLOD