How to change custom fields caption...

q97

Joined: 2006-12-07
Posts: 11
Posted: Mon, 2006-12-11 01:03

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. :)

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Mon, 2006-12-11 04:38
Quote:
It seems that the CustomFields.tpl is global and can't be changed per theme

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

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Mon, 2006-12-11 04:39
 
q97

Joined: 2006-12-07
Posts: 11
Posted: Mon, 2006-12-11 06:19

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?

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Mon, 2006-12-11 14:33

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

 
q97

Joined: 2006-12-07
Posts: 11
Posted: Mon, 2006-12-11 22:47

Thanks Dave,

I will have another look. At the moment having "issues" getting mysql + php 5.1.6 to work on our production server.

 
q97

Joined: 2006-12-07
Posts: 11
Posted: Tue, 2006-12-12 04:37

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

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Tue, 2006-12-12 04:45

There is not a module for transferring data from one install to another. Except for G1 -> G2.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Tue, 2006-12-12 04:47

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

 
q97

Joined: 2006-12-07
Posts: 11
Posted: Tue, 2006-12-12 04:57

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...:)

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Tue, 2006-12-12 05:04
Quote:
So are these fields stored in the database?

Yes as all data is... except for the items and cache

 
q97

Joined: 2006-12-07
Posts: 11
Posted: Wed, 2006-12-13 06:33
Quote:
Yes as all data is...

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 :)

 
lseibert

Joined: 2009-01-12
Posts: 6
Posted: Mon, 2009-01-19 14:34

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!!

 
braqets

Joined: 2007-06-06
Posts: 15
Posted: Fri, 2009-06-19 04:19
Quote:
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!!

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