How to remove default div of views block?

How to remove default div of views block?

My html code: <div class=”workList col-lg-4″> <div class=”view-back”> <a href=”” target=”_blank”>&rarr;</a> </div> <img class=”img-responsive” src=”<?php print... read more
Add class that surrounds all tables (or any other node,field etc…) using preprocess template?

Add class that surrounds all tables (or any other node,field etc…) using preprocess template?

I have been able to find information on adding classes to tables and other items in my pages, however, I cannot find any information on wrapping the entire table for example in a div through the preprocess function. I added this for example: function... read more
How to remove default div of views block?

Views PDF CSS file not being applied on generated PDF

I’ve created a pdf display with views_pdf module in views, and under the PDF SETTINGS i’ve included a CSS File (eg. sites/all/themes/custom/mytheme/css/mytheme.css). When viewing the page display of the view, the css is being applied, but when viewing the... read more
How to remove default div of views block?

Printer, email and PDF – can I use this module to print Views?

I have installed Printer, email and PDF and I am happy with the way it renders nodes. I was wondering if there was a way for it to print views too. read more
How to remove default div of views block?

How to selectively disable CKEditor on specific pages?

On a site I am developing, I have installed and enabled CKEditor version 7.x-1.13. On two of the pages, I need to completely disable the editor from being active when accessing the admin to edit the page. I am not sure how I can do that. The only thing I have been... read more
How to remove default div of views block?

Confusing Widget of inline entity form

Inline Entity Form ships with two widgets as Inline entity form – Single value and Inline entity form – Multiple values when I use Inline entity form – Single value, I only get add entity form and when I use Inline entity form – Multiple values... read more
How to remove default div of views block?

Paginate results of entity reference widget type

I have entity reference field with checkboxes/radio as the widget type. The issue is the I have hundreds of nodes and this results in a having a big list. Is there a way to paginate the results or have a “load more” button/link which loads more results via... read more
How to remove default div of views block?

Upgrading to 7.26 – Internal Server Error

I recently upgraded from Drupal 7.25 to 7.26 in maintenance mode. The upgrading did not have any errors. Now when I go to the homepage I get an Internal Server Error. I added an echo statement to verify that bootstrap.inc was executing. I haven’t been able to... read more
How to remove default div of views block?

Illegal string offset block region

I’ve made a custom module for Drupal 6 that has a custom form, which works perfectly. I’ve tried to add the form in a block using the following code. function mymodule_block($op = ‘list’, $delta = 0, $edit = array()) { switch ($op) { case... read more
How to remove default div of views block?

How do I get the price of a line item for the transactions which are already completed?

There are some transactions which are made using drupal commerce module along with commerce ccavenue module. I have the order ids, transaction ids and list of line items purchased in each of the orders. But the problem is I if a product price is updated in past then I... read more
How to remove default div of views block?

Webservice endpoint with hook_services_resources()

I’ve stumbled upon some limitations of the services module. I wanted to create the following endpoints: public/events/ public/events/categories public/events/resources public/blogs/ I wanted to place all the above under a single endpoint with path... read more
How to remove default div of views block?

How to pull pictures and summary information from external web pages when posting links?

When posting a link (external web page) to my Drupal blog, is there a way to have Drupal automatically pull the picture and summary information from that link and include it in the post on my Drupal blog the way Facebook does it when a person posts a link from an... read more
Expose Date Filter instead of Start & End Dates

Expose Date Filter instead of Start & End Dates

I have a content type event with start and end dates marked. I have create a view with exposed filter, where in users can choose a date and see the event on those days. Right now, view is only allowing me to choose start and end dates. This way if an event is between... read more
How to remove default div of views block?

MigrateSQLMap with multiple same-name source keys?

I’m using migrate module 7.x-2.5 with a MySQL source database. My records are defined by the intersection of two tables, so I need two keys in my $source_key parameter to MigrateSQLMap(). I’ve done this before, no problem. But in this case, the columns... read more
How to remove default div of views block?

Display a block based on the term reference field of the current node

What I’m trying trying to do sounds fairly simple, but I can’t get my head around it. I’m having 2 taxonomy vocabularies: machinery and batteries (both created with NAT for all that matters), and 2 content types which are named the same. Both the... read more
How to remove default div of views block?

Subtotal calculates from original product price, disregards applied per product discounts

This seems like a known issue but I actually didn’t find a solution for this anywhere. In commerce, if I apply a discount/pricing rule to a certain product, add it to cart, and go to checkout, table would say eg Product – 120$ (discounted from original... read more
How to remove default div of views block?

How to use entity form in pop-up window?

I have created a view, and there is one column named “forward to delete”. I want to open an entity form in a pop-up after clicking on this link and get the node id of the clicked node so that I can use this node id for other purpose. I am using the entity... read more
How to disable Rich Text Editor in image field caption ?

How to disable Rich Text Editor in image field caption ?

I am using Image Field Caption module. It provide a image caption field but I don’t want any rich text editor appearing for the caption field. How to disable that for any specific field? read more
How to remove default div of views block?

Add another item by multivalued fields directly from node (or entity) view page

I have a file field which can have unlimited number of values. I am using File Entity module. As default, if users want to add more files, they must edit the node. I’m looking for a solution to give the user the possibility to add another file directly from the... read more
How to remove default div of views block?

Views contextual filters taxonomy name 2 fields using same vocabulary

I have a content where two fields using the same vocabulary. I want to show nodes related content filtered by the these fields. I try with relation Relationships content:field_1 (term from field_field_1) Taxonomy term: Content using field1 (Relationship term from... read more