


how do I build a dynamic URL in views?
I am using drupal 7, have a content type and two taxonomy categories, size and shape. Im trying to build a dynamic url such as mysite.com/node/nid/tid/tid, which would get rewrote as e.g mysite.com/page-1/large/square. I want the content of the url to just show the... read more
How can I dynamically disable a single required field from validation in a form?
This is an extension of this question: Need help with AJAX callback function for text field validation in form_alter I have a form with a Username autocomplete field (txn_user). The editors want to be able to enter a UID (txn_userid) as an alternative way of... read more
attach an programmatically generated pdf file to a node
Im using PDF Using MPDF module to generate 4 files when a node is saved using its API function pdf_using_mpdf_api: function MYMODULE_node_insert($node){ // PDF generation : // Generate standard version $view = node_view($node, ‘PDF’); $html =... read more
Solr index fields not showing a field
I have a field within a field collection that I need indexed. It’s not showing up in the /admin/config/search/search_api/index/solr_node_index/fields page. I tried using this to try to add it myself, but I don’t really know how to reference it. I know that... read more
how to hide the tags and category in the front page
My site is http://nbmdemo.16mb.com/ How do I hide tags:featured Also in http://nbmdemo.16mb.com/?q=node/1 Same thing with: Category: Demo Articles read more
Problem attaching files to nodes with Services
I’m trying to attach files (images) to nodes via Services 3 from an external app using JavaScript. From what I understand (and doing) is: 1) Create a node posting JSON to my endpoint domain.com/api/node.json { “type”:”foo”,... read more
How do I enable Backlinks View and What Links Here?
We used the backlinks view in D6, as well as the What Links Here tab for each node. We’re now using Commerce Kickstart 2. I don’t see that View and it appears that the search_node_links table is empty. Is this disabled because Commerce Kickstart uses the... read more
Can’t insert data to database on form submit
I am trying to insert some datas into database table on form submit like this: function form_example_submit($form, &$form_state) { if ($form_state[‘values’][‘select’]==’1′) $gender = ‘male’; else $gender =... read more
Problems with migration
I’m using the modules Migrate and Drupal to Drupal Migration modules to migrate some Drupal 7 content to another Drupal 7 site. It works very well for users and their pictures; the nodes are migrated too with all the fields but the image field. What data should... read more
How to change order_number on hook_commerce_payment_order_paid_in_full or hook_commerce_checkout_complete
I’m trying to change the order_number after the order has been created. Specifically, I need to do this in the hook_commerce_checkout_complete or hook_commerce_payment_order_paid_in_full functions. I’m sending orders out for 3rd party fulfillment and want... read more
How to hide field if blank
I have a view created which has a column ‘Price’. I also I have another column ‘Special Price’ in the same view, but ‘exclude from display’ is selected. In views, click the price field > rewrite results > Rewrite the output of... read more
Use Tokens and/or Replacement Patterns in Shortcodes
Looking for a way to add a token/replacement pattern into shortcode. For example, creating a button where different text and link is required depending on other factors – something like the following: ” text=”[label replacement pattern]”] The... read more
Enabling aggregate and compress CSS files resuls in vanishing theme
I used this module for more compression on css and js files but it does not work for me! so I disable and remove it entirely. After that when I enable aggregation of css and js files, my site’s theme will disappear! even my administration theme! what should I do... read more
Can not login with HybridAuth
I installed Drupal HybridAuth module on my site for social authentication. I configured this module and it is displaying fine on site block. But when I try to login with any Social Media account details, it is processing correctly, but I cannot login in my site. How... read more
How to update one select element via Ajax when using node_add
I have just created a new content type called pieza_musical. What I just want to do is update one select element via Ajax depending on another select choice, a dependant select. I’m altering the form_node_add using hook_form_alter to inject the #ajax element and... read more
hybridauth redirection to an emailed link after success login
Im using hybridauth to let users login from different social media websites … I send emails manually to some users with an link to edit specific nodes (for example http://example.com/node/444/edit?parma1=val1¶m2=val2). At that moment the user is... read more
How to modify the commerce price formatter label to match shipping service?
Please see attachment. Using Commerce Kickstart 2. I have a working solution, but I am hoping someone can tell me how to improve it, as it ‘feels’ poor. The footer for the default shopping cart view is a footer called commerce_order_total which shows a... read more
How do I reroute a logged-in user after page access denied at user/login?
My Drupal 6 site has the login form at /user/login. If I’m logged in already and I click it, I’m sent to the Access Denied page (though the login URL stays the same). I’d like to send such users somewhere else. Anywhere else. /user would be fine. Is... read more