Questions tagged [7]

Version tags should be used for questions that apply to a version only, not to merely say what version a site is using.

Filter by
Sorted by
Tagged with
0 votes
1 answer
410 views

View button that links to current node

I'm trying to create this button in my views with a custom text, that needs to link to the current node. I know you can use links and that works, but.. i need something like a variable that makes the ...
0 votes
1 answer
389 views

Change text format used for text field when displayed in a view?

I have a content type with a text field that may contain a token from the Media module (that WYSYWIG inserts). This token is typically transformed into HTML by enabling a specific filter for the text ...
0 votes
2 answers
416 views

Titles not showing for tabs pages

Below is the array in my hook_menu The only issue that I have with it is that the titles are not displaying for tabs pages (the last three array collections). They are showing the title for the ...
0 votes
1 answer
542 views

feeds importer tamper double importing image

Using feeds import with tamper to split up images at a | our database has thousands of products and only some of them have an image and then some have a second image (a room view of the product) and ...
0 votes
1 answer
1k views

view exposed filter ajax error coming for non administrator user

I have event calendar module which is perfectly working fine. For some other users (non-admin users) I have to give permission to access events posted by them (They have permission to view the ...
2 votes
2 answers
625 views

Render fields url in tpl.php

I have a content type (music) with fields(image,track,title). I used a soundmanager player to display my track with its tpl.php(bar.tpl.php). I have tried to display url of the image field inside the ...
4 votes
1 answer
719 views

Import a node with its path alias

I'm using ne-impot and ne-export with drush for importing and exporting nodes. When exporting, as part of the uuid module, the URL alias is included with the export. However, when importing a node, ...
1 vote
1 answer
859 views

Associate an image with each checkbox

I'd like to have a graphics-oriented Webform, wherein the user will select from check boxes that have a specific image associated with each. For instance, I might have a row of checkboxes with a color ...
0 votes
1 answer
485 views

How can I display the Google rich snippets when a view is on "Show: fields" and the panel enabled?

I am building a site using Drupal 7 and the schema.org module and the microdata module. The site is live on production server (and works good). When checking a url from my site site on the google rich ...
0 votes
1 answer
559 views

Can a subgroup of a public group be private and hidden?

I'm building my first Drupal Organic Groups site, and running into problems. Problem: My goal is to have top-level Groups that are visible to the public, but only members can participate in them. ...
1 vote
1 answer
653 views

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/...
1 vote
2 answers
652 views

How to display the output of my module without clearing cache and refresh page?

I created a very simple module which generates a tag cloud based on user input; you can see the code here. // wow.module function wow_menu() { $items = array(); $items['wall/of/words'] = ...
-2 votes
1 answer
512 views

How to use field_info_instance?

I am currently working with an Entity Reference field in Drupal 7, and I need to alter the results using field_info_instance. The field type is Entity Reference. Below are the steps I've taken: $...
0 votes
1 answer
502 views

if empty statements in views fields or field templates

Normally, my situation is easily solved using views rewrite feature. However, in this case I am unable to use views rewrite because I have data attribute tags in the field wrappers that are stripped ...
0 votes
1 answer
541 views

How to set the link in a view slideshow?

Currently, I'm creating a xyz resort website. In my home page, I implemented a slideshow by using views. I want the slideshow to be clickable: When I click on to the resort image in slideshow it ...
1 vote
2 answers
760 views

Set value for new field automatically based on another field

I want to add a new date field to an existing content type, and set the new field automatically for existing nodes to be equal to another date field from that content type. For example, if the new ...
0 votes
2 answers
2k views

Hide a view if there are no results

(Spin-off of Remove/Hide the block if the View is empty?. I find the other question a bit confusing, and want to reduce it to the essential question.) When rendering a view programmatically, and ...
0 votes
1 answer
457 views

math operators for text fields in views filters

I have a field of type text that contains a number like 10. I want to create a search form with views exposed filters. Since the field is a text, I can't use greater than and less than operators on ...
1 vote
1 answer
1k views

How can I get the translated path to the current node?

How to get path to current node but of another language? Available languages: English (URL prefix: en) Polish (default, no URL prefix) Enabled detection methods: URL (by prefix) Session (parameter:...
1 vote
1 answer
417 views

exporting/importing nodes without losing disqus comments / social media stats

I've been working on a website and the live version there is still content being created while i develop the local site. Whats the best way for me to import the new nodes that have been created on ...
1 vote
1 answer
777 views

Cannot install modules

I am very new to Drupal so please excuse me if this is an easily answered question. Basically I wish to install CKEditor, however when I upload the module thorugh the online installer I am greeted ...
1 vote
1 answer
598 views

Esign field in Webform

I am attempting to add a signature field with validation to a webform. The validation fields show up, the signature field seems to be there (cursor changes to +) but no field for signature is there. ...
1 vote
1 answer
467 views

HTML tags removed during Views Rewriting

Hello I created a sitemap with the modules "Views and data export". The sitemap of my page works fine, but I would add images to my page. The sitemap should look at first capture, I do a test with ...
1 vote
1 answer
492 views

How to automatically delete all product displays when a product is deleted?

To automatically delete the product displays when a product is deleted, is a feature of the module Auto Product Display, but I don't need that module. Preferably using the Rules module, I would like ...
2 votes
1 answer
671 views

Hiding Menu Links Based on URL

Is there a way to hide menu links on the main menu based on the URL? For instance, if my URL is 'example.com/undergraduate', the main menu links would be different than if I were to go to 'example....
1 vote
1 answer
1k views

Conditional display of paragraphs items

We use Paragraphs quite extensively in our site. We have about 10 bundles available. What we' like to do is alter how the paragraphs are displayed on various pages; Ie, we'd like to remove bundle a ...
2 votes
1 answer
508 views

Arrange formatted fields in Views row using a template

I want to render the rows of my “Recent content” Views page using a template in order to subdivide the rows into multiple divs, freely move around the rendered fields within these divs, and apply ...
0 votes
3 answers
779 views

receiving incorrect url from amazon s3 module

I am using drupal 7. I have installed amazon s3 module and its dependencies. I have created a bucket for saving my files on amazon server. Everything went good.. But when i try to get the path for the ...
0 votes
1 answer
472 views

Relationship with webform submission

I have a view displaying a list of nodes. Each node has a webform submission related, and the sid is stored in one field "field_sid". I'd like to be able to access the submission data in the ...
0 votes
1 answer
548 views

Views query alter for specific node/content type

My idea are instead of update the views name to the custom code one by one. I like to apply to same content type, but I don't know the syntax. function myModule_views_query_alter(&$view, &$...
0 votes
1 answer
2k views

Why bootstrap sub-theme with sass starterkit is not working?

I am trying Bootstrap 7.x-3.6 theme. But sub-theme for some reason is not working. I did follow the same procedure as described on the Documentation page for Drupal 7. I am describing here, what I ...
1 vote
1 answer
436 views

Count total number votes a user has gained

I am using rate module where users can plus or minus the articles created by an author. Now, in the profile page of the author, I want to display the total number of votes he/she has got from all his ...
0 votes
2 answers
865 views

How to add currency field?

With respect to the question, can anyone suggest a remedy for the same. How can I create a field for currency(with selecting currency and text field to enter the amount) considering the fact that ...
2 votes
1 answer
878 views

How to set up path for library and include files

In Drupal 7, I am writing PHP from inside the Front Page module, say: $page = include_once "templates/page.php"; I put the "templates/page.php" under /sites/all/modules/front and Drupal complains ...
2 votes
1 answer
553 views

Migrate : Update not working

Im using the migrate module to import data from a json feed. Mostly work fine however, i require that each time the feed is imported , updated records in the source are updated in the destination if ...
1 vote
1 answer
535 views

How to place the language switch in the main menu bar?

The language switch appears on the bottom of the page. How can I move it to the main menu?
1 vote
1 answer
735 views

Programmatically update field collection data in custom entity

I am in desperate need of help. I have a custom entity called Question which has a bundle called data. Within the data bundle, I have a collection field called options with two subfields called ...
0 votes
1 answer
521 views

Add fieldset with add more button using ajax

I have one fieldset like, Education Qualification: 1. School, 2. College, 3. Course, 4. Year (these are the fields which will be in this fieldset) Now I want to do "Add more" button under this ...
0 votes
1 answer
642 views

How to alter the welcome message after successfull registration

A message is shown upon successful registration, with the following contents: A welcome message with further instructions has been sent to your e-mail address I would like to change the content of ...
0 votes
2 answers
863 views

Is it possible to find which user created an account?

I currently have a Drupal 7 site set up to allow users with the Doctor role to create users with the Patient role, via admin/people/create. Does Drupal store data about which user created a specific ...
0 votes
1 answer
1k views

Include Lead Forensics code in all pages

I'm trying to include the tracking code Lead Forensics gave me. The code is: <script type="text/javascript" src="http://www.path-trail.com/js/11111.js"></script> <noscript><img ...
3 votes
1 answer
453 views

Select an Image style depending on external/dynamic factors (theme region or other field content)

I have a Bean (bundle that generates blocks) which I display in one of 2 different theme regions. Either in the header, or the footer. This Bean contains an Imagefield, which is rendered through an ...
1 vote
1 answer
798 views

Implementing preprocess function for custom template

In Drupal 7, I'm creating thank you page for a custom form and have following in my mymodule.module: function mymodule_menu() { $items = array(); $items['mymodule/thank_you/%'] = array( '...
1 vote
1 answer
412 views

Programmatically format integer field display

I am trying to programmatically format how an integer field displays. So far I have only been able to produce "1.00", and I am trying to get it like so: x.xx.x. The content type is "Project" and the ...
0 votes
3 answers
595 views

Organic-Groups multisite architecture

I have a task to build a series of websites all related to the same core business. Initially, I was going to build each one as a separate website. Later however, I was told the sites have to be able ...
0 votes
1 answer
464 views

How do I insert a user picture's thumbnail on the "Submitted by" field?

I want to insert user picture's thumbnail on "Submitted by" field, which is displayed in teaser such as the following. Submitted by [some_user] [someuser picture's thumbnail] on xx/xx/xx How do I ...
0 votes
1 answer
438 views

How do I get an OG Group Menu block to appear in View?

Running Drupal 7 with OG 7.x-2.3 and OG Menu 7.x-3.0-rc4. I have added a view to a Group Menu that lists all content in the group. All I want is for the group menu block to display when the view is ...
2 votes
2 answers
1k views

How to override a module theme function in a custom module but still allow themes to override the template file?

I'm writing a fairly simple module which allows the removal of colons from field output on a per field basis and I need to override the core field module's theme_field function in my module. I can ...
0 votes
3 answers
2k views

Implement hook_menu_block_tree_alter() to change CSS classes

I have installed the Menu block module. I am very happy with the result, but I'd like to change some classes in the structure. This is what I get right now. <div class="content"> <...
0 votes
1 answer
425 views

template.php hook to add variable to view

I'm trying to include the total count of a given node type into a view tpl.php file. I would like to set this variable in the template.php file, so that it is available in the tpl.php file (that way I ...

1
2 3 4 5
530