Hard Coding Parameters - Component settings?

Phoca Gallery - image gallery extension
LynchBeard
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 13 Mar 2008, 17:22

Hi,Thank

Post by LynchBeard »

Hi,

Thanks for this really great mod!

I'm trying to change the appearance of the gallery to match my site. I've changed the default settings but whenever i create a new menu item the Parameters - Component settings resets to the old settings. I've even changed the settings directly on the database in the _components table but the settings are still the same. I must be missing something huh?!

So where can i change the settings so i don't need to alter the Parameters - Component settings each time?

Thanks!
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

The parameters setti

Post by Jan »

The parameters settings override the default settings... If you create new menu link, you must set the parameters new (if you do it and save them, they will be stored in the database)

In Joomla, it works this way... You have default settings and if you create a menu link, your menu link parameters component override the default settins. Mostly you have a select box, where the "default settings" item is. So you need not to change parameters component, because they take the same parameters as they are in default settings. But if there is a text form field, there is missed the default settings item in Joomla!, so everytime you do a menu link, you must change the parameters component (only text form fields) There is no way how to get the parameters from default settings because if parameters component take the parameters from default settings, then you cannot have the own parameters for menu link.

I hope, you understand what I mean

Jan
If you find Phoca extensions useful, please support the project
NikonUser
Phoca Newbie
Phoca Newbie
Posts: 9
Joined: 07 Mar 2008, 03:11
Location: Australia
Contact:

If you edit the file

Post by NikonUser »

If you edit the file:

site-->administrator-->componants-->com_phocagallery-->config.xml

you can change the default values so that every time you create a new menu item it will have the defaults that you like.

The only trouble is that if you change your mind and want to change something down the track you then have to change all of your existing menu links indivdually.

Hope that helps
Paul
LynchBeard
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 13 Mar 2008, 17:22

Thanks Paul, that wa

Post by LynchBeard »

Thanks Paul, that was exactly what i was looking for!

...and thanks again for the great mod Jan. I understand about the usefulness of the menu link params overriding the default but having to change the text fields each time was would be less than ideal for me because i was changing all the colour settings and i simply can't remember them. But anyway, it all works perfectly now.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

For me too, but I do

Post by Jan »

For me too, but I don't see any way how to do it, because it is a part of Joomla! framework...

There are some ways but all bring more disadvantages as advantages...
If you find Phoca extensions useful, please support the project
Post Reply