I need to change the following line:
<h3> {g->text text="some text here"} </h3>
What I need to do is to be able to have a heading that can be changed for each photo/or gallery. For example, if we have a photo of a winter crop, we want "Winter Crop Details" plus a whole bunch of data under that. Obviously we would need a "Summer Crop Details" as well. It seems that the CustomFields.tpl is global and can't be changed per theme - which would be really handy, as we could change the setting in theme then apply the relevant theme to the album.
Probably even better though, would be to have the ability to have a customfields header that can be edited and when you add the customfields to a photo, you can select which heading you want. Seems quite strange to have it hardcode, rather than dynamically generated.
I am pretty sure this isn't one I am going to solve myself.
Posts: 27300
The custom fileds can be changed on a per album basis.
So you cna have defaults for albums and different for photos as well as different on each album.
Dave
____________________________________________________
Blog with G2 || Gallery Frames / Mods || G1 Test Gallery
Posts: 27300
http://codex.gallery2.org/index.php/Gallery2:Modules:customfield
Posts: 11
Thanks for the response, but I am not sure if that does what I was thinking.
I have got the custom fields that I want, but when you go to a page that has custom fields, it displays "Custom Fields" as its default heading, then has all the custom fields under that.
It is that heading I want to change. I can change the text in the CustomFields.tpl, but it is a permanent change. This might help understand what I need:
[img]http://www.rangemedia.com.au/xhtmltest/galleryss.jpg[/img]
The red arrow points at the bit I would like to be able to change dynamically. Or have I missed something?
Posts: 27300
Do you have some custom fields set when you enabled the custom fields module?
edit album > custom fields tab > Override global custom field settings for this album
Add as many custom fields as you wish. Those are the titles of the fields. Then you will be able to add the details of each field.
Dave
____________________________________________________
Blog with G2 || Gallery Frames / Mods || G1 Test Gallery
Posts: 11
Thanks Dave,
I will have another look. At the moment having "issues" getting mysql + php 5.1.6 to work on our production server.
Posts: 11
OK, one more question...and no it wont be the last :P
That picture above comes from our development site. I have now installed gallery onto our production server. Is there a way to export the custom fields I have created, and import them into the new database? Not had much luck in finding where that is hiding...
Posts: 27300
There is not a module for transferring data from one install to another. Except for G1 -> G2.
Posts: 27300
you can vote for it or add commments:
http://sourceforge.net/tracker/index.php?func=detail&aid=1289208&group_id=7130&atid=357130
Dave
____________________________________________________
Blog with G2 || Gallery Frames / Mods || G1 Test Gallery
Posts: 11
So are these fields stored in the database? It isn't actually a big deal, as there are only 20 or so fields to add, but, y'know...perpetually lazy and all...
Posts: 27300
Yes as all data is... except for the items and cache
Posts: 11
Yeah. I figured that...but I did also mention I couldn't figure out where exactly they are hiding...short of trying to see what is in every database table...
Never mind. Thanks to another helpful member, I have this sorted
Posts: 6
Lesa Seibert
YOu mentioned you figured out how to change the wording "Custom Fields" that shows up in the gallery when you add custom field. How do you do that? Our client wants this title changed and I can't find it anywhere in the code. HELP!!
Posts: 15
lseibert, go to modules/customfield/templates/blocks/CustomFields.tpl and comment, erase or do this <h3> {g->text text="Extra Info"} <!-- {g->text text="Custom Fields"} --> </h3>
Now I get "Extra Info" instead of "Custom Fields". After doing that clean your template's cache to see the changes right at the moment.
Braqets