List Manager Forum

Insert image choosed by the user

User imsj 2015-02-25 10:56:20

I know that I can create an HTML field and put ad image into that field. Instead I would like to insert a field "image" that show an image based on user choice. I created an "Option list" field and put "red" on name and "red.jpg" on value (green/green.jpg, ecc.). So the user can choose "red" and insert "red.jpg" into the field. How I can show the img src="red.jpg" tag on front end view? Can you suggest me a strategy working on CSS or php?
Thank you very much in advance.
cmc

Moonsoft support 2015-02-25 11:15:44

Hi,
you can try to insert these names for the options:


Red


Blue


(replace for the right html tags, they are stripped by the forum page).

Remember always to use SINGLE QUOTES for this tweak! You can ruin your fields structure if you insert html with double quotes there. We suggest to try this trick at a new test list until you get it working.

Keep the values with plain texts like red, blue, etc.

Of course the image won't show at your input combobox, only the text. But when selected, the image will be shown at the list. It will also show the preceding text, but there you can hide it using css. Each column has a specific class:

lm_column_0
lm_column_1
lm_column_2
..etc

so you only need to add a color:#fff; to this class for ex to hide the labels.

Hope this helps, regards

Edited by MSTeam - 25.02.2015 11:16

User imsj 2015-02-25 18:38:40

It works for me!
To hide text I choose to assign a class to the field and put this CSS:
.fieldClass
In this way the images are correctly alligned even if labels have different lenghts (Red, Blue, Green).
Thank you very much for support!
cmc

User imsj 2015-02-28 11:56:58

After this, each time I will edit and "save" the field list, all fields disappear! Any field I try to change, also if I "save" without any change... can you help me?
Thank you.
cmc

P.S.: I also upgrade Joomla from 3.3.6 to 3.4.0. Maybe the problem is in the new version of Joomla?

Moonsoft support 2015-02-28 17:28:24

Hello,

Yes, there are some javascript changes in new Joomla that breaks List Manager. Please download latest version and upgrade component.

Regards,

User imsj 2015-02-28 20:57:10

I just download and upgrade to 2.1.1 but the problem is the same. As soon as I "save" the list (also without any change) all fields disappear...
Do you have any other suggestion?
Thank you very much.
cmc

User imsj 2015-03-01 12:21:45

I restored 3.3.6 Joomla version, but the problem remain the same. I upgrade to 2.1.1 List Manager version, but the problem remain the same. Can you help me, please? The component is working but I cannot perform any change! Every time I "save" table, also without any change, the table disappear...
Thank you.
cmc

Moonsoft support 2015-03-02 08:32:34

Hello,

We tested List Manager 2.1.1 in Joomla 3.3.6 and 3.4 and we couldn't reproduce your issue. Please ensure that you've cleared joomla cache on each install/upgrade/downgrade. If you still have this issue, please place a ticket in helpdesk with url and credentials of your site and we'll fix the installation.

Regards,

User imsj 2015-03-02 17:37:10

I flushed cache on server (the site is hosted by SiteGround that manage the joomla site cache on it's cPanel...) and now it's working.
Thank you very much for your support.
cmc

User imsj 2015-03-08 23:01:52

Today the problem come up again. I flush the cache but the problem is still there. I do not change anythings in joomla configuration (3.4.0 with 2.1.1 listi manager). It works for a week and now, again, as soon as I make a change in the table structure, the tabele disappear. I can give you an access to admin panel if you want (give me instructions). The web site is still under development...
Thank you for your help.
cmc

Moonsoft support 2015-03-09 09:37:51

Hi,
we can check if there is any issue when sending structure data, we need to access your backend as it doesn't happen here. Please access your customer area and enter the helpdesk system. There you can place a new ticket where you can share an access privately. Please let us know the steps to reproduce, and the change you're trying to introduce to the table so we can debug there.

Thanks, regards

...
Support/development 10 hours

Get a bigger amount of hours for more complex tasks and get a 10% discount

Buy now!
...
CalcBuilder

Create dynamic calculators

Buy now!