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.112 seconds

Amazing Tool !
And only tool I know that allows complete Scaffolding in terms of component creation. It really saves loads of time (actually much more than that). Simple architecture enables quick and painless changes at any time. Code is clean and consintent. It's just... what's the word... neat! :) Great work! You should definetely try this one!

pi_wo (JED)
         

Get Started