Views insert current page node id to image link url

Views insert current page node id to image link url

I want to create a block view of some content’s image field. I am trying to insert current page node id to paths of image links. Because linked page is a entity form and I try to prepopulate node id in one of the field of the entity form. How can write to... read more
Views insert current page node id to image link url

Open Atrium 2: comment forms not appearing on pages

Situation: Recently created a fresh Open Atrium 2 installation to replace an old AO1. No content from the old OA1 database has been migrated, we’re making a fresh start. Some content (a few pages) will be recreated by copy-pasting the content. No anonymous... read more
Views insert current page node id to image link url

Import xml data

I am new to drupal. To import xml data into drupal, i followed these steps given in this website which i mentioned it below. http://www.drupalprogrammer.co.uk/2012/12/use-feeds-module-to-import-xml-data-in.html After doing all these things, it shows “There are... read more
Views insert current page node id to image link url

How to modify the search index?

There’s a search index for the Apache Solr module. However, I don’t see any way to change this index. It seems that various fields and items are added to the index without rhyme or reason. If I wanted to index a field called “keywords” how... read more
Views insert current page node id to image link url

How to print ordered list number in Node Full view

I have a views page with nodes in ordered list. I need to show the row number in the node in Full View. I don’t know if it is possible. Example: Michael Jordan Magic Johnson Kobe Bryant etc. I want that when I see the node, for example Kobe Bryant, it says... read more
Views insert current page node id to image link url

Add CSS classes to theme function

I’m implementing hook_theme() in a custom module. function monitor_chart_theme() { return array( ‘chart_monitor’ => array( ‘template’ => ‘monitor_chart’, ‘variables’ => array( ‘container’ =>... read more
Views insert current page node id to image link url

How to get the actual value of a field in Views?

I’m using the Views module and Drupal 7 and want to add a class to all rows of my table that have a certain value for a certain field. The field is a bit field and is included in my query. I have added a PHP field (a separate Views module that is installed) with... read more
Views insert current page node id to image link url

How do I add tabledrag with ‘weight’ to admin form

I have built a fairly basic module but i’m struggling with the UX of the admin form. Essentially I need a list of items that have several values; a textfield, checkbox, select list and a button to delete them. I’ve built all of the functionality (including... read more
Views insert current page node id to image link url

How to dynamically pass a user field value to jQuery?

I have a notification bar with a counter, it actually prints the user’s “notifications” field value (if it’s greater than 0): <div id=container> <a href=”#” class=”activity_link”>Activity</a> <?php... read more
Views insert current page node id to image link url

Default language wrong on front page

I’ve got two langagues enabled on a Drupal 7 test site, English (set to default in admin/config/regional/language) and Finnish. Under ‘Detection and Selection’ URL and Default are checked, and URL is set to look for a path prefix. I’ve... read more
Views insert current page node id to image link url

Custom join with an external database

I am trying to join two tables on the same database, db2. I am trying to join tablename to tablename2 using the condition tablename.ItemID = tablename2.ItemID. While the values from tablename are selectable from a view, those from tablename2 aren’t. Do I need to... read more
Views insert current page node id to image link url

only allow to upload profile pictures of a certain size

I want to limit the user to only upload profile pictures of 160×160 size. What is the simplest way to validate that the resolution of uploaded avatar picture is actually 160×160, and provide an error message if it’s not? read more
Views insert current page node id to image link url

Print module PDF attachment

I have a custom module that provides a path that sends an email (mimemail) with a pdf attachment generated from the print_pdf module that comes with the print module. Here is what my HOOK_mail function looks like. function custom_send_email_mail($key, &$message,... read more
Views insert current page node id to image link url

HTML in webform labels

I need to insert HTML markup (spans, classes, h2 tags). However, webform appears to be filtering out all markup from labels. Has anybody succeeded in inserting html markup in labels, and how did you do that? read more
Views insert current page node id to image link url

Use form_alter to change description under reset password field for user_pass form

I’d like to change the text below the reset password field. I took a look at this answer, and it talks about changing the button, but I need a bit of help to change the text. Here is the debug output and it looks like I need to access #description [name] =>... read more
Views insert current page node id to image link url

Link items from Feeds module to original blog

I am using the Feeds module to publish the contents from a WordPress blog to my site’s home page. I’d like to have the items on the home page link directly back to the original blog rather than the nodes that the Feeds module creates. Is this possible? If... read more
Views insert current page node id to image link url

Adding confirm email field to entityform

I am using email field module and entityform for a simple contact form on a Drupal 7 install. I need to add an extra field where the user re-enters their email address (no copy and paste) to prevent typos. This seems like a simple enough requirement so I’m... read more
Views insert current page node id to image link url

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 snippets tool, I can’t see all the fields I want to appear in... read more
Can a subgroup of a public group be private and hidden?

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. There will be public subgroups too. Additionally, there must be... read more
Views insert current page node id to image link url

updating webform submission display by using form

So, this is what I’m trying to do. I’ve got a webform submission filled in and saved to the database. When viewing the submission (node/nid/submission/sid). I want to show a form, which ask the user for a key. When the key is filled in I want to change the... read more