Skip to main content
Pierre_C's user avatar
Pierre_C's user avatar
Pierre_C's user avatar
Pierre_C
  • Member for 9 years
  • Last seen more than 6 years ago
  • Sophia Antipolis, France
awarded
revised
Loading…
Loading…
Loading…
awarded
awarded
awarded
Loading…
comment
How to insert html tag "id" in an image field in a view
@sareed: I checked in views template, but not found.
comment
How to insert html tag "id" in an image field in a view
@No Sssweat: Class is an option if there is no other solution, but getElementByClassName is less supported by browsers than getElementById.
Loading…
comment
How to select a custom block and region according to a view
Ok, in fact when $variables['theme_hook_suggestions'][] = "block__XXX_YYY"; drupal looks for template file block--XXX-YYY.tpl.php. Strange because I did the same for html template using html--XXX--YYY as suggestion and html--XXX-YYY.tpl.php as template file name without any problem. I will ask a question about that.
comment
How to select a custom block and region according to a view
Thanks rooby, it is what I was looking for, now I don't understand why drupal is still calling the default block.tpl.php instead of my custom one set in the preprocess function. I'm still debugging to understand that...
Loading…
Loading…
revised
How to programmatically add a link to an image field in a view
Added some more info to explain that the function is called
Loading…
comment
How to programmatically add a link to an image field in a view
@MrUpsidown: yes I do, but I don't think I may call my theme function which build the new link from there. Perhaps I'm wrong.
comment
How to programmatically add a link to an image field in a view
@MrUpsidown: rewriting is not an option at least because I need to get/extract the contextual filter values that have been given as parameters to call this view. Then I insert other parameters like computed page number to build the new link for the image.
comment
How to programmatically add a link to an image field in a view
Yes but how? The function my_theme_preprocess_views_view_field_myviewname(&vars) is called for each fields and I didn't find the field name within "vars".