No Code Attached Yet
avatar astridx
astridx
8 Apr 2017

Steps to reproduce the issue

Create a field of the type image list and try to insert a default value.

Expected result

I can insert the file name of an image. I tried every combination of
images/sampledata/fruitshop/apple.jpg.

Actual result

It is not possible for me to insert any default value. I all the time get the message:
Save failed with the following error: The default value is invalid.

articles edit field joomla cms test administration 1

Votes

# of Users Experiencing Issue
1/1
Average Importance Score
4.00

avatar astridx astridx - open - 8 Apr 2017
avatar joomla-cms-bot joomla-cms-bot - change - 8 Apr 2017
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 8 Apr 2017
avatar astridx astridx - edited - 8 Apr 2017
avatar astridx astridx - change - 8 Apr 2017
The description was changed
avatar astridx astridx - edited - 8 Apr 2017
avatar astridx astridx - change - 8 Apr 2017
The description was changed
avatar astridx astridx - edited - 8 Apr 2017
avatar astridx astridx - change - 8 Apr 2017
The description was changed
avatar astridx astridx - edited - 8 Apr 2017
avatar astridx astridx - change - 8 Apr 2017
The description was changed
avatar astridx astridx - edited - 8 Apr 2017
avatar astridx astridx - edited - 8 Apr 2017
avatar astridx astridx - change - 8 Apr 2017
The description was changed
avatar astridx astridx - edited - 8 Apr 2017
avatar astridx astridx - change - 8 Apr 2017
Title
Joomla 3.7.0 RC1[com_fields]: What can I inser as the default value of the field imagelist
Joomla 3.7.0 RC1[com_fields]: What can I insert as the default value of the field imagelist or sql?
avatar joomla-cms-bot joomla-cms-bot - change - 8 Apr 2017
Title
[com_fields] Joomla 3.7.0 RC1: What can I inser as the default value of the field imagelist
Joomla 3.7.0 RC1[com_fields]: What can I insert as the default value of the field imagelist or sql?
avatar joomla-cms-bot joomla-cms-bot - edited - 8 Apr 2017
avatar joomla-cms-bot joomla-cms-bot - change - 8 Apr 2017
Title
Joomla 3.7.0 RC1[com_fields]: What can I insert as the default value of the field imagelist or sql?
[com_fields] Joomla 3.7.0 RC1: What can I inser as the default value of the field imagelist
avatar franz-wohlkoenig franz-wohlkoenig - change - 8 Apr 2017
Title
Joomla 3.7.0 RC1[com_fields]: What can I inser as the default value of the field imagelist
[com_fields] Joomla 3.7.0 RC1: What can I inser as the default value of the field imagelist
avatar joomla-cms-bot joomla-cms-bot - change - 8 Apr 2017
The description was changed
avatar joomla-cms-bot joomla-cms-bot - edited - 8 Apr 2017
avatar joomla-cms-bot joomla-cms-bot - change - 8 Apr 2017
The description was changed
avatar joomla-cms-bot joomla-cms-bot - edited - 8 Apr 2017
avatar franz-wohlkoenig franz-wohlkoenig - change - 8 Apr 2017
Category com_fields
avatar franz-wohlkoenig franz-wohlkoenig - change - 8 Apr 2017
Title
Joomla 3.7.0 RC1[com_fields]: What can I insert as the default value of the field imagelist or sql?
[com_fields] Joomla 3.7.0 RC1: What can I inser as the default value of the field imagelist
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 8 Apr 2017

Issue confirmed. Tried verious Settings without Success.

avatar joomla-cms-bot joomla-cms-bot - change - 8 Apr 2017
The description was changed
avatar joomla-cms-bot joomla-cms-bot - edited - 8 Apr 2017
avatar joomla-cms-bot joomla-cms-bot - change - 8 Apr 2017
Title
[com_fields] Joomla 3.7.0 RC1: What can I insert as the default value of the field imagelist
[com_fields] Joomla 3.7.0 RC1: What can I inser as the default value of the field imagelist
avatar joomla-cms-bot joomla-cms-bot - edited - 8 Apr 2017
avatar franz-wohlkoenig franz-wohlkoenig - change - 8 Apr 2017
Status New Confirmed
avatar franz-wohlkoenig franz-wohlkoenig - change - 8 Apr 2017
Title
[com_fields] Joomla 3.7.0 RC1: What can I inser as the default value of the field imagelist
[com_fields] Joomla 3.7.0 RC1: What can I insert as the default value of the field imagelist
avatar joomla-cms-bot joomla-cms-bot - change - 8 Apr 2017
The description was changed
avatar joomla-cms-bot joomla-cms-bot - edited - 8 Apr 2017
avatar joomla-cms-bot joomla-cms-bot - change - 8 Apr 2017
The description was changed
avatar joomla-cms-bot joomla-cms-bot - edited - 8 Apr 2017
avatar joomla-cms-bot joomla-cms-bot - change - 8 Apr 2017
Title
[com_fields] Joomla 3.7.0 RC1: What can I inser as the default value of the field imagelist
[com_fields] Joomla 3.7.0 RC1: What can I insert as the default value of the field imagelist
avatar franz-wohlkoenig franz-wohlkoenig - change - 8 Apr 2017
Title
[com_fields] Joomla 3.7.0 RC1: What can I inser as the default value of the field imagelist
[com_fields] Joomla 3.7.0 RC1: What can I insert as the default value of the field imagelist
avatar laoneo
laoneo - comment - 8 Apr 2017

Guess a path to an image or folder.

avatar astridx
astridx - comment - 8 Apr 2017

@laoneo Yes, but what syntax do we need to insert? No one of my tries works.

avatar brianteeman
brianteeman - comment - 8 Apr 2017

@laoneo I tried that :( doesnt work

avatar laoneo
laoneo - comment - 8 Apr 2017

It should be one which maxhes an option value of the list. If it doesn't work, then it looks like a bug.

avatar brianteeman
brianteeman - comment - 8 Apr 2017

I tried
images
/images/
/images

etc - all fail

avatar joomdonation
joomdonation - comment - 8 Apr 2017

By reading the code. It should be the file name of the image you want to be selected by default. For example banner.jpg, osmbanner1.png.... in case you set Directory parameter to banners folder

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 8 Apr 2017

tried setting Path in PlugIn and only name in Field – no Luck.

avatar joomdonation
joomdonation - comment - 8 Apr 2017
  1. Here is setting of field (note the value of Directory and Default Value)

articles- edit field - joomla - administration

  1. Here is the add article form (note the file name you entered in Default value is selected)

articles- new - joomla - administration

So it works well to me (maybe the Joomla installation I am having a bit outdated). Could you please try the same settings?

avatar astridx
astridx - comment - 8 Apr 2017

@joomdonation Which Joomla Version do you use? The same settings are not working for me with Joomla! 3.7.0-rc1

avatar joomdonation
joomdonation - comment - 8 Apr 2017

I am using Joomla! 3.7.0-rc1 dev, so it is outdated. I can try to update to stagging to check if needed

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 8 Apr 2017

bildschirmfoto 2017-04-08 um 14 31 14

System information

3.7.0-rc1 (nightly Build)
macOS Sierra, 10.12.4
Firefox 52 (64-bit)

MAMP 4.1.1

  • PHP 7.0.15
  • MySQLi 5.6.35
avatar joomdonation
joomdonation - comment - 8 Apr 2017

A bug with validate default value of the field, then. I was able to edit code to bypass the check and confirm that default value is the file name of the image you want to be selected by default is correct, only field name, not contains path.

Maybe we can open a separate issue with this validation error?

avatar AlexRed
AlexRed - comment - 19 May 2017

I can confirm the problem on Joomla! 3.7.2-Dev (nightly Build)


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/15173.

avatar jakeinnh
jakeinnh - comment - 14 Aug 2017

This issue still exists - can not save imagelist field with default value - name of image in selected folder. Any suggested work-arounds?

Joomla 3.7.4
Windows 7.0 Ultimate SP1
IE 11.0.9600.18762 / Update Versions 11.0.45

PHP 7.0.22
MySQL 5.6.31

Add a Comment

Login with GitHub to post a comment