Get the uri/path value of an image in the field template

Get the uri/path value of an image in the field template

I have created a custom field template for an image – field–field_images.tpl.php with the following code: <?php $url = file_create_url($field_images[‘uri’]); $url = parse_url($url); $imglink = $url[‘path’]; ?> <div... read more
Get the uri/path value of an image in the field template

Display images of a specific content type in a lightbox when vocabulary is clicked

Background I am using Drupal 7 and I have a taxonomy “Kitchen Type” and content type “Kitchen Picture” having default field_image for images. There are three Kitchen Types Traditional, Contemporary and Transitional. I have more than 10 Kitchen... read more
Get the uri/path value of an image in the field template

TinyMCE not appearing on custom form

I am creating a custom form and have run into a problem. I’m using the WYSIWYG module and for some reason the text areas on this custom form don’t show as rich text editors (tinymce shows on other parts of he site)... read more
Get the uri/path value of an image in the field template

Add field to an entity_view for dispaly in a tapir table in ubercart

In the simplest terms I am trying to add a ‘vendor’ column to the order view table in Ubercart which will display the author of each line item product. Below is the table of interest. I have hacked the direct code contained in uc_order.order_pane.inc but... read more
Get the uri/path value of an image in the field template

How to print a raw field value containing special characters in a node template?

I have a text field which get filled with an URL, I am now trying to get the raw value of this field like “http://example.com”, but every method I tried like entity_metadata_wrapper field_get_items and field_view_value field_extract_value just returns the... read more
Get the uri/path value of an image in the field template

Upgrading a site

I am attempting to upgrade one of my sites from Drupal 6 to Drupal 7. I have downloaded and made Drush executable. I’ve also install the Drush site-upgrade command. The problem I’m having is understanding the steps or the process of aliases. I really need... read more
Get the uri/path value of an image in the field template

Adding checkbox in admin table display

I’m trying to add a checkbox column in the admin table part of my module. The idea is to add checkboxes at the beginning of each row, like in the normal admin content management form. My table is build in a form function with the following code : function... read more
Get the uri/path value of an image in the field template

how to automatically create other entities when creating an entity

I have 4 entity types. All types have a relation to each other. For now let’s call them A, B, C and D. How can I allow a user (let’s say userA) to create an entity of type A so that entities for B, C and D are also created at the same moment. UserA has the... read more
Get the uri/path value of an image in the field template

How to add profile fields on Ubercart 3 checkout page?

I used to use the uc_profile module to add user profile fields to the D6/Ubercart 2 checkout page, but I cannot find a suitable solution for that same functionality in D7/UC3. Can anyone guide me toward an alternative solution? I need to add things like... read more
Get the uri/path value of an image in the field template

Add classes to programmatically added fields

I have programmatically created a few content types and fields for said content types in a module I’m building, but I need to add classes to said fields. So if I have a text field called “background_color”, I would like to add a class to it called... read more
Get the uri/path value of an image in the field template

How to hide specific term/field value on the node?

Is there a way to hide a specific taxonomy terms (specific field values) on the node? (not hiding field/vocabulary altogether, just some values). For instance, there is vocabulary “Location” with a stucture like: Europe England London France Paris On the... read more