How to import multi-value fields into profile2 using the Migrate module

How to import multi-value fields into profile2 using the Migrate module

I have users each with a profile using the profile2 module. I am using a cookbook based on the Migrate framework to create the users and import profile data. Sample CSV data would be:... read more
How to import multi-value fields into profile2 using the Migrate module

how to render a node field of a referenced node on the node form

I’m using Display Suite to show a referenced node inside another node in the default display. But when I edit this node that has the entity reference field on it, it shows me the reference field and I’d like that to show the rendered content of a field of... read more
How to import multi-value fields into profile2 using the Migrate module

Better exposed fiters with Views: how to show quantity of nodes tagged with certain term?

I use better exposed filters with views. I chose to show field “term reference” as hierarchical checkboxes on my exposed filter. It works great. But now I need to add quantity of nodes having certain term near each checkbox inside filter. What is the best... read more
How to import multi-value fields into profile2 using the Migrate module

Cache not clearing on expiry

Using the steps explained here: http://www.lullabot.com/blog/article/beginners-guide-caching-data-drupal-7 I’m storing an array with specified expiry time. But what is happening is that even after expiry of time, the cache_get is returning the stale cache. Even... read more
How to import multi-value fields into profile2 using the Migrate module

Using Media, views, and colorbox to create a image gallery

Currently I am running in D7 with the following modules: Media 7.x-2.0 Views 7.x-3.7 Colorbox 7.x-2.4 I am trying to create an image gallery using these modules with the following steps. Please note problems I am running into will be in bold. Go to... read more
how to render create page form & list of contents in page.tpl.php

how to render create page form & list of contents in page.tpl.php

I am theming an admin page & I require to load/render admin forms in page.tpl.php file. The final output should be somehow like the attached screenshot. Scroll below to see screenshot & code written in page.tpl.php. <h1... read more
How to import multi-value fields into profile2 using the Migrate module

"Allow multiple values" vs "Allow multiple filter values to work together"

In Views, when adding an Argument for a vocabulary term id, I’m presented with the following 2 options: Allow multiple values If selected, users can enter multiple values in the form of 1+2+3 (for OR) or 1,2,3 (for AND). Allow multiple filter values to work... read more
How to import multi-value fields into profile2 using the Migrate module

Theme template.php functions after bootstrap

I’m trying to print a drupal menu outside drupal. In order to achieve this I ran the bootstrap as follows: drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL); And I render my menu as follows: public static function getDrupalMenu($menuName) { $menu_output =... read more
How to import multi-value fields into profile2 using the Migrate module

When adding Content: has taxonomy term id contextual filter to view and check specify validation criteria box, why don’t I see validation options?

My request is closest to these two questions: Filter by multiple taxonomies in URL Views contextual filters taxonomy name I have a view which is a page and displays node titles in a table format after the user selects a state, school year, school division, and school... read more
How to import multi-value fields into profile2 using the Migrate module

Managed to delete Event_Calendar_Status and cannot reinstate

When trying to get rid of notification emails every time I create a calendar event, I have managed to delete the ?built-in? event calendar status term. I have tried to reinstate it but machine will not allow the same name as original. It’s causing an undefined... read more
How to import multi-value fields into profile2 using the Migrate module

Multi-site, multiple database and 1 shared database

I want to develop drupal multi-site with this structure: One shared codebase drupal 7 multi-site, each web site has own database. One master web site that has some tables shared. Each multi site instances read some tables from master’s database, not own... read more
How to import multi-value fields into profile2 using the Migrate module

How do I use arguments with the Path Breadcrumb module?

I am using the Path Breadcrumbs module to create breadcrumbs. I don’t fully understand how to use arguments and selection rules, and thus I’m not sure how to create the following breadcrumb: On the gallery node page (/gallery/%node), I want to use home... read more
How to import multi-value fields into profile2 using the Migrate module

Form is not being rendered in template file

I have tried drupal_render,drupal_get_form etc for rendering the form,but the form is not being rendered. Is there any error in code or else what else should i add to the code so that it works. function questionnaire_template_form($form, &$form_state, $question) {... read more
How to import multi-value fields into profile2 using the Migrate module

Save data to custom field columns using entity_metadata_wrapper

I have a simple custom module that creates a new field type. The field has multiple columns in the database; the idea is that a user (or code) will enter a single value, and then that value is converted into several different formats and saved to the database columns.... read more
How to import multi-value fields into profile2 using the Migrate module

localhost subsites configuration

I know how to install a single instance of Drupal very well but I want to create a number of sub-sites under my Drupal installation. My file structure is as follows: drupal7_main -sites –drupal7_sub1 settings.php –drupal7_sub2 settings.php I’m... read more
How to import multi-value fields into profile2 using the Migrate module

CORS localhost ajax request

I have an HTML page (http://localhost:8888/test/test.html) in which I’m trying to pull data from a Drupal 7 website. I’m using this AJAX code with HTML-Request. I have tried JSON and the website prevents me from pulling, even I have added the following... read more
How to import multi-value fields into profile2 using the Migrate module

Click on a day to create an event

I’m wondering whether it is possible to simply click on a Drupal calendar tile (month view) and be automatically taken to the page for creating an event. The only thing I’ve found that comes close to this is the event calendar module, specifically the... read more
How to import multi-value fields into profile2 using the Migrate module

Override Profile2 with account fields and values

I have created a new Profile Type with Profile2 module. Now I want to override it, importing three existing fields from my original Account (First Name, Last Name, Email) with their own values (that have already been set in the registration process). I think I must... read more
How to import multi-value fields into profile2 using the Migrate module

How to print the Views title in page.tpl.php?

I could print the view with this code in page.tpl.php. print $view->display[‘view_display_name’]->display_options[‘title’]; How can I print the Views title ? read more
How to import multi-value fields into profile2 using the Migrate module

Not showing clickable links in search results

I’m fairly new to Drupal but have gotten a hang of installing modules and setting up there configuration pages. The company site i’m working on is running on Drupal 7.1.4 and is using Node Search to look through books that they have created for... read more