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.
26,479
questions
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
466
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
877
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 ...
3
votes
1
answer
435
views
Limit menu items available as possible parents on node creation
As I create a node I want to assign i to a menu item parent. I know that I can limit it to what menu(s) are available on:
/admin/structure/types/manage/my_type
But it would narrow it down to "only ...
3
votes
1
answer
1k
views
Permission rebuild fail
My Drupal 7 site is upgraded from Drupal 6. When I install the Domain Access (not installed with Drupal 6) module, I need to rebuild permissions.
I tried rebuilding them from the administrative pages,...
0
votes
1
answer
596
views
Multiple pagers in one page
I have a view with two separate displays that is used in one single page. Both the displays are using a pager. To get things working I set a unique id for each pager under pager options. This works ...
0
votes
1
answer
864
views
Filter based on the current node field value
I have a Webform where it's used to get product comments. This webform is exposed in a node page and has a field that is populated automatically with a value from the current node, lets say "...
0
votes
2
answers
402
views
Can't hide fields in user registration form at new menu path
I have a menu path which rendered User Registration Form. The problem is I did hide fields like "Email", "password" and "status" by setting #access to FALSE. It is not working.
When I have done the ...
1
vote
2
answers
628
views
Permission to edit a node by multiple users
Suppose there is one node (Like node/4) which the Admin can edit. My requirement is to give permission to multiple users to edit the same node i.e. node/4. Please help how to accomplish this task.
1
vote
2
answers
2k
views
How to remove webform error message?
How to remove webform error message? I need to be able to remove the error message form.
For instance, if I have an email field and for some reason did not pass the validation is not to show a ...
0
votes
1
answer
414
views
Endpoint services with url alias name
Is it possible the to view xml/json format data with url alias name instead of endpoint_path/node/1 or endpoint_path/node/2
1
vote
1
answer
436
views
Index custom content in apache solr
I have several custom modules that load and display data from custom tables. I have successfully managed to use the drupal search on these contents, using the drupal search hooks like, ...