coppermine-gallery.com/forum

Support => Older/other versions => cpg1.3.x Support => Topic started by: OmegaGOD on November 20, 2004, 11:06:27 AM

Title: Display Extra fields
Post by: OmegaGOD on November 20, 2004, 11:06:27 AM
Quick Question,
     In the config, I've created a second field called New_Field. Currently, it displays the information contained in New_Field under "Picture Information" in the Intermediate view. I would like to be able to display the contents of New_Field directly under the image right below the {Title}. Can I get some assistence in extracting the contents of New_Field from the database and displaying it? I've determined where the code needs to go, I just can't seem to figure out what the code is. Any help would be appreciated..

--OmegaGOD
Title: Re: Display Extra fields
Post by: Joachim Müller on November 21, 2004, 07:12:14 AM
You can use the var $CURRENT_PIC_DATA['user1']

Joachim
Title: Re: Display Extra fields
Post by: OmegaGOD on November 24, 2004, 10:35:29 AM
Thanks GauGau! :-)
Title: Re: Display Extra fields
Post by: OmegaGOD on December 04, 2004, 10:22:16 AM
Thank Gau Gau for the variable. Quick question. I tried to place that variable in the theme.php file under $template_display_picture. I then realized that all the text contained within that block was being assigned to $template_display_picture. Is there a way I can dereference the contents of $CURRENT_PIC_DATA['user1'] into block of text under $template_display_picture.

Basically I've created a second field in the config called "Add to Cart" and I've populated the fields with URL links... I'd like these links to appear directly below the intermediate images. In short. I'd like contents of an extra field defined in the config section to be placed directly under the intermediate image.

Any help would be appreciated.

Thanks
--OmegaGOD
Title: Re: Display Extra fields
Post by: OmegaGOD on December 04, 2004, 11:00:41 PM
YES! I figured it out :-) Thanks again.

--OmegaGOD