Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

New Default Path for IMAGES 24 Feb 2014 14:53 #12238

  • liubov
  • liubov's Avatar Topic Author
  • Offline
  • Elite Member
  • Elite Member
  • (=) 10 mn and it's ready!
  • Posts: 279
  • Thank you received: 36
Hi Cookers,

Project : J! Breeding V3 for Joomla! 3.2

I ve forked the helper in order to save my picts in 3 differents folder. the purpose :is to store pictures of each table/form in his own folder..
So I've changed this :

administrator/components/com_jbreeding/helpers/helper.php
// 'DIR_PEDIGREES_PHOTO'      => $config->get("upload_dir_pedigrees_photo", "[COM_SITE]" .DS. "files" .DS. "pedigrees_photo"),
// 'DIR_PORTEES_PHOTO_CHIOTS' => $config->get("upload_dir_portees_photo_chiots", "[COM_SITE]" .DS. "files" .DS. "portees_photo_chiots"),
// 'DIR_ACTUALITES_PHOTO'     => $config->get("upload_dir_actualites_photo", "[COM_SITE]" .DS. "files" .DS. "actualites_photo"),

'DIR_PEDIGREES_PHOTO'        => $config->get("upload_dir_pedigrees_photo", "[IMAGES]" .DS. "pedigrees_photo"),
'DIR_PORTEES_PHOTO_CHIOTS'   => $config->get("upload_dir_portees_photo_chiots", "[IMAGES]" .DS. "portees_photos"),
'DIR_ACTUALITES_PHOTO'       => $config->get("upload_dir_actualites_photo", "[IMAGES]" .DS. "actualites_photo"),

...

But from a fresh install, it doesn't not create the folder in the 'images' path, and doesn't save pict too.
Is there any other file or class to modify ? Thanks for help.

Please Log in or Create an account to join the conversation.

Last edit: by liubov.

New Default Path for IMAGES 25 Feb 2014 18:41 #12251

  • liubov
  • liubov's Avatar Topic Author
  • Offline
  • Elite Member
  • Elite Member
  • (=) 10 mn and it's ready!
  • Posts: 279
  • Thank you received: 36
[ Self_solved ]

I didn't know that we could write the desired path as Params.
So I set :
[IMAGES]/pedigrees_photo, ... and it works fine !

Please Log in or Create an account to join the conversation.

New Default Path for IMAGES 26 Feb 2014 21:58 #12255

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
There is no problem, you can do it both ways.

It was not appling your changes because you are changing the default values.
So once you have edited the config, the last current config is overrining the default value.

only that.
Coding is now a piece of cake

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.075 seconds

  I found "cook" two days ago. Played around with it for a day and then within a day got rid of two legacy applications in IBM Lotus Domino Notes and replaced them with "cook". It was really easy. A piece of cake. Actually it was even easier than cooking. Cooking involves more work than developing with "cook". What can I say about "cook"? Great application great price for what it delivers great forum with a lot of information and fast responses active and friendly community fast forward moving development cycle So what should I say "Monsieur Le Cook"? Keep the good work going it will lead to success. Having become a paying member in the words of Edith Piaf may I say ..... non rien de rien ... je ne regrette rien. Vive La France.
FK (JED)
         

Get Started