31 Posts
gzukry
9 years ago
3
Topic

Hi, salut.

What I try to do is pretty simple :

While I display a content, I want to display related item(same content type as then main content) with live value like : Different ID, Same category.

Ex : Content type = home design, categories are : kitchen / living room / ....

I'm looking a kitchen content, I wan't to have a list of other "home design" kitchens element.

Different ID, same Catid.

I added a simple php variable to echo the catid in my content template override :

$catid = JRequest::getCmd('catid', ''); 

echo $catid;

______

With joomla SEF ON, 

Seblod SEF : NATIVE JOOMLA BEHAVIOR (Or Seblod OPTIMISED) 

=> it works perfectly, and I get my request in my seblod list : .. AND t1.catid LIKE '%...%'

______

With joomla SEF ON, 

Seblod SEF : ANY OTHER SETTING 

=> CATID isn't transmit at all to the content ... nothing in seblod request neither.

______

How, why ? Is it the seblod's router which is doing that ? 

I tried with joomla 3.3.6 and the last one, 3.4.4

Any idea ?

Does someone else got this problem ? 

Get a VIP membership
1283 Posts
Bucklash
9 years ago
1
Level 1

Hi

I don't have an answer as what you do is beyond what I can do but I saw that JRequest is deprecated, replaced with JInput.... maybe that has something to do with it?

JRequest

JInput

Bucklash

Ps

good luck!!

154 Posts
WebOne
9 years ago
0
Level 2

The latest blog might help you with this :

www.seblod.com/community/blog/using-seblod-s-contextual-content-features

31 Posts
gzukry
9 years ago
0
Level 1

Thx mates !

@Bucklash, yes it is deprecated but still, it can display the catid.

I switched to :

$jinput = JFactory::getApplication()->input; $catid = $jinput->get('catid', ''); echo $catid;

Same behavior. Thanks a lot anyaway )

_

@WebOne

Thanks, but as the manual says, it should be possible to play with the catid livevalue.

_

The plugin your link brung me to is about making search list inside a searlist and pass live value to the child (which seems to have to be a different content type by this way).

_

exemple : List of categories [cat1] [cat2] ... and inside each item results, another list with all article in each category 

like tha [cat1{art1}[art5}] [cat2{art2}] [cat3{art3}] ....

_

What I try to achieve is very simple, and it works ... as long you don't turn the SEBLOD SEF ON.

_

_

Here is my demo website where I have the problem and a concret exemple 

_

In my search settings that will display the items on the right side, I pu :

CCK > on the content type, nothing special

_

a field that grab live value on ID (of the main content), with "different", so it will displays all the other items that have a different article ID for the same content type .. nothing special, it works perfectly.

_

a field that grav live value on CATID set to "exact" (on my website, it would be "cuisine", "salon", ... which mean kitchen, living room, etc ...). so it will displays all the other items that have a different article ID for the same content type with the same CATID.

_

I turn on debug for my test.

_

> With SEBLOD SEF : Alias (safe)

http://pole-artisan.com/realisations/harum-do-dolorem

end of the seblod request that displays my items on the right :

 AND t0.cck = 'realisations' < content type

AND t1.id NOT LIKE '%32%' < live value ID

__

> With SEBLOD SEF : Joomla Native Behavior

http://pole-artisan.com/10-realisations/32-harum-do-dolorem

end of the seblod request that displays my items on the right :

AND t0.cck = 'realisations' < content type

AND t1.id NOT LIKE '%32%' < live value ID

AND t1.catid LIKE '%10%' < live value CATID 

_

As I said, it works only if the SEBLOD SEF is turned of :/ Else it doesn't even try to catch the catid in the request.

I'll make some more test, but I think I did all the tests I can think about.

_

If somebody have an idea. Thanks again !

Get a VIP membership