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

Just wanted to congratulate you on the J-Cook website / web development tool. In a couple of visits I've had a play around with Cook and have to say I think it is fantastic.  I've played with a number of component builders in the past and yours is certainly looking like the best so far. I'd also like to help you spread the word - I'm really surprised more people aren't excited about this tool. Good luck with the project.
Dean

Get Started