Hello everybody, first of all sorry if this post should be in another place, but i have a doubt about this module. I have to show others fields of each image field, i add new fields with "ImageField Extended", but when i click the thumb image this only show the original fields of the ( title and description ) but for my use case is very important to show the other fields. How can i do this funcionallity?, i can´t realized how to do this.

Thanks for all, This module is excellent.

Best Regards,

Nicolás.

Comments

manuel garcia’s picture

Status: Active » Fixed

Hola Nicolás,

Thanks for the kind words about the module.

What you are asking could be done in the theme layer. The template file galleryformatter.tpl.php has access to the node object, which includes of course all of the fields.

You'll need to know some PHP though, but you could manualy print any field inside the gallery, with something like:
print $element['#node']->field_anotherfield[0]['safe'];
After copying the tpl file inside your theme's directory of course.

If you want to know how your node object is setup so you can print the result of your field, use dpm($element['#node']); if you have devel module installed.

nicostabile’s picture

Hi Manuel!, do you speak spanish right? Because my english it´s not perfect as you have realized, but i write in english because my very basic question perhaps helps someone else.
Thanks for the answer, i can print my new fields, now i want to learn how to show them better, because when i write a lot of characters, the field is shown incomplete.
Do you know if when i click on the slide image i can open a new little window with my fields? ( i know that it is out of the module so, i can underestand if you think that it is out of topic.)

Now in spanish:

Manuel muchas gracias realmente me ayudó mucho la respuesta, he podido imprimir los campos extras modificando el galleryformatter.tpl.php, ahora tengo que aprender ( soy novato con drupal y php ) como hacer que esos campos se vean mejor ya que cuando dichos campos exceden una cantidad de caracteres estos se cortan y no bajan de linea. He pensado una mejor solucion que seria que al hacer click sobre una de las imagenes slides abra a una ventana pequeña donde si se muestren los campos que describen la foto. La pregunta es si se podria hacer esto aprovechando el resto del modulo, y pido disculpas si me excedo en las preguntas, o si estoy abusando de vuestra consideración.

Desde ya muchas gracias, Best Regards,

Nicolás.

manuel garcia’s picture

Your problem with the field content could probably be fixed with CSS.

You could also do what you ask in the second question, the module gives you all the right information in the tpl file, but well, you need to know PHP, CSS, etc... and all this falls outside the scope of this module. I suggest you either learn CSS&PHP, or you hire someone to do the custom development you need.

Te contesto solo en ingles para ahorrar tiempo, espero que lo entiendas =)

quixxel’s picture

Assigned: Unassigned » quixxel
Status: Fixed » Active

Hi,
many thanks for your wonderful module.

I like it very much too, but I'm not shure if I understand you correct:
Does gallery formatter work with the module »imagefield extended« or not?

If I choose in the imagefield presets »image with additional fields« instead of »imagefield«
the presets of gallery_formatter are disappeared and no additional fields are shown.

Best regards, Johannes Hartmann

manuel garcia’s picture

Assigned: quixxel » Unassigned
Status: Active » Fixed

Quixxel, don't assign the issue to yourself unless you intend on fixing it.

This issue was never about whether or not the module works with imagefield extended.

Please open up a new issue for that, though right now this module does not support imagefield extended.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.