10 years ago
8
Topic
Hi

This is a problem we encouter on many seblod projects:

When you have two seblod searches on the same content type on the same page, both search lists are modified by the other.

Is it a bug ? is there a way to avoid any confusion between both searches ?

thanks

cyril


Get a VIP membership
10 years ago
0
Level 1
two search lists using modules ?
10 years ago
5
Level 1
Yes

two list modules performing a search on the same page on the same content type but (for example) with different other fields and possibly with another result presentation.

We found a solution in creating fields aliases. We create an alias for the cck field and both modules can work together

cyril
10 years ago
4
Level 2

Hi,

I was hoping that you could better explain how I make an alias of the cck field? I have two mods in the same content type to display a diff set of results on the same page and I need them operating separately of each other. I would appreciate clarification on your solution. Thanks!

10 years ago
3
Level 3

Hi

Making an alias is straightforward since you understood an alias is simply another field that shares the same database storage. if your first field storage is Standard/article/myfield, put the exact same thing for the other field.

It is safer to create the alias in the SAME view as the initial field. Don't create the alias while you are in the search view. This way Seblod knows exactly what 'article' means. You can create the alias anywhere but in this case you should precise the real table (#__cck_store_form_<contentype>) 

cyril 

10 years ago
2
Level 4

Ah, okay. So the alias will have a new field name, but use the actual name from the real storage location. One problem: you said to make an alias of the cck field. Those are standard loaded, so won't that again be confused between the two on the page? Or, did you mean make an alias of the search field linked to the cck? I appreciate your quick response and assistance. This is a pretty awesome community, especially for a freeware.

Cheers!

Merkin

10 years ago
1
Level 5

Hi again

very simple: in the admin view of the content type, create the alias and discard it (move it to the right panel). 

On any other view use it when needed. 

That's it

cyril

10 years ago
0
Level 6

Okay, so is this alias of the cck field or the search criteria field? Thanks again, Cyril!

233 Posts
pepperstreet
10 years ago
0
Level 1
Weird... but maybe 2 component views?! 
(see related JED category)
Get a VIP membership