41 Posts
mlep
8 years ago
Topic

Hi sebloders,

I'm a newbie in Seblod, so I need some help. This is what I would do :

I have created a form with an image field. I have also created a list of elements with thumb of image field into. I would implement a link into my form to my list (that's ok) where every thumb would have an opacity < 1 except thumb linked to content I come from. Just to highlight it.

Could someone give me an idea to do this ?

Thanks in advance

Get a VIP membership
4229 Posts
Kadministrator
8 years ago
3
Level 1

First you will need a parameter in the url to carry id of the content you came from. They I can think of 2 options - have some javascript pick up this id and go trough all items on the list to highlight the right one or you can use beforeRender event and add some class to selected item on the server side

41 Posts
mlep
8 years ago
2
Level 2

Thanks Klas. With help of this post, I got the URL ....&fid=12345 

So now, I didn't find the solution in forum to pick the fid passed in URL and use it into my before render field that I'm already using. 

Is there any post on this ?

Thanks again

4229 Posts
Kadministrator
8 years ago
1
Level 3

Hi,

for the second part you have to know how to code, you can read variable from url using joomla JInput and then check each field if its id matches your value from url, then modify its value and html properties as described in the manual. In case you don't know how to code you need to get someone that does or you can use Seblod service

41 Posts
mlep
8 years ago
0
Level 4

Hi,

Got it ! Thanks Klas

Get a Book for SEBLOD