Welcome, Guest
Username: Password: Remember me

TOPIC: [CLOSED] default configuration path for upload file

[CLOSED] default configuration path for upload file 31 May 2012 14:18 #2454

  • Tomaselli
  • Tomaselli's Avatar
  • Offline
  • Elite Member
  • Posts: 293
  • Thank you received: 87
  • Karma: 46
When I have a "file" data type field on a table. I see the file link is wrong on the collection view.
the markers [COM_ADMIN], [COM_SITE], etc. etc. do not seems to be parsed before the view, so the route doesn't go anywhere, and I have the "missing image icon".
But I have to say the file is stored correctly so the markers works perfectly in the model/controller but not in the view.
I'm on windows system in localhost.

Also the boolean images (yes / no) in the collection view are missing.
This "bug" is not something new to me, it happened before in all the components tests I made, I apologize if I didn't say it before but I thought it was going to be fixed soon.
thanks in advance for your work.
Last Edit: 25 Jul 2012 20:39 by admin.
The administrator has disabled public write access.

Re: default configuration path for upload file 08 Jun 2012 04:59 #2514

  • liubov
  • liubov's Avatar
  • Offline
  • Elite Member
  • (=) 10 mn and it's ready!
  • Posts: 279
  • Thank you received: 36
  • Karma: 22
I tried to explain that to Joce, but I guess he did not catch the issue.
( I have no error, just a bab behaviour )

so, more info about that below :

I - you have a config.xml file auto generate with your component, by j-cook.
II - you install your component.

// here is the problem
III - if you do not open the Param Popup and do not save them at first, params won't be recorded in the table #__extensions. You can check, Params field is empty {}

in my case I set [IMAGES] as default directory in the config.xml, but, because I did not recorded the Params with the Param Popup, the code :
 return array(
			'DIR_PEDIGREES_PHOTO' => $config->get("upload_dir_pedigrees_photo", "[COM_SITE]" .DS. "files" .DS. "pedigrees_photo") .DS,

returns [COM_SITE] instead of [IMAGES].

And when the first item with a picture is saved, even if you save Params, it's dead !
So I have to remove photos_directories from [COM_SITE] to [IMAGES] and could solved this issue.

Hopping it is clearer ...
Marc.
Last Edit: 08 Jun 2012 05:01 by liubov.
The administrator has disabled public write access.
The following user(s) said Thank You: admin

Re: default configuration path for upload file 08 Jun 2012 05:20 #2515

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140
I understand better now.
Yeah, I see.

Will check this.
Coding is now a piece of cake
The administrator has disabled public write access.

Re: default configuration path for upload file 25 Jul 2012 19:57 #2892

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140
I checked this and I am affraid that it can become very heavy for the component.

There is an issue in Joomla if the params has not been saved.
So, in that case, the default value is hard coded in the classes/file.php ; getMarkers()

Once this bug is fixed, I will remove the hard coded values.

TODO :
If you want to change the defaults, change it also in that file for the moment.

Closed topic.
Coding is now a piece of cake
The administrator has disabled public write access.
Time to create page: 0.063 seconds

Get Started