Altering nodes title value

Altering nodes title value

I am trying to alter the title of my nodes to prevent URLS appearing in any title. This is the code I am using. function mytemplate_preprocess_node(&$variables) { $node = $variables[‘node ‘]; $variables[‘title’] =... read more
Altering nodes title value

Price formatter for range of variation products

Is there a way to write a price formatter to display the lowest and highest price of a collection of product variations? My reason for thinking it might not work is the scope of the product variation vs. it’s “parent” product display. If not, is... read more
Altering nodes title value

Is there any way of removing (or unflagging) all of a user’s flags?

I have a situation where a privileged user (role that is purchased) can flag content and receive email notifications to comments posted. When the role is expired, I need for them to stop receiving these emails. Is there any way (possibly using rules) to unflag all of... read more
Altering nodes title value

Contextual filters in taxonomy term ID (with depth)

I need to make a view that will show me the nodes of a content type inside a node of another content type filtered by a taxonomy term. I have three content types. The first one is Projects, in which I’ve added some projects (title, body and images-shadowbox).... read more
Altering nodes title value

Variable in html.tpl.php

This seemingly simple task proved more difficult than I imagined.. I’m trying to get a variable from themename_preprocess_html to my html.tpl.php. The code I have in my template.php file: <?php function themename_preprocess_html(&$variables) {... read more
Altering nodes title value

Custom VBO action to print selected nodes

I would like to use views bulk operations to select and then print a large amount of nodes at once. I only want the print dialog box to open one time for the whole batch. Any ideas on how to approach this process? read more
Altering nodes title value

"[node:flag-vote-count]" displays the token name, not the number

I have a problem in the Flag module with the [node:flag-vote-count] token. I googled for a solution, but I couldn’t find one. On my content page, the Flag module displays the token name (i.e. [node:flag-vote-count]) on the node creation preview page, instead of... read more
Altering nodes title value

Trigger ajax callback from input field webform

I have a form build with the webform module. When text is entered in the input box in this case webform component 2 I want it to execute a ajax function and put data in a div. However this is not working at the moment. When i connect the ajax to... read more
Altering nodes title value

External URL Redirect Breaking Image Links

I was recently hired to manage an existing Drupal 7 site (built with an Omega subtheme) and am doing my best to ramp up quickly. Unfortunately, I do have some fires to put out immediately and could really use some help. The website has redirects coming in from another... read more
Altering nodes title value

How to avoid url conflict when defining menu items, and make sure path without wildcards will be used in favor of path with %?

In hook_menu, I have $path = “events” $items[$path] = array( ‘title’ => t(‘Events’), ‘page callback’ => ‘my_events_page’, ‘access arguments’ => array(‘view my events’),... read more
Custom DOM placement using AJAX

Custom DOM placement using AJAX

I’m using unlimited image upload option in my content type. Upload image and remove the uploaded image options are working fine with the unlimited option. Usually, the uploaded images will be displaying one by one (Last in Last – Image1, Image2,... read more
Altering nodes title value

How can I create the views pager on top and bottom of the view?

I need two view pagers / pagination to sandwich the view content or view results. Is it possible to duplicate view pagers/pagination ? What i’ve done is just printed out the pagers in the template twice; however, that requires me to hardcode the pager. I need a... read more
Altering nodes title value

Display a grid view without border columns

I’m trying to display a specific number of products in a e-commerce drupal site in the front page. I would like to use a display as in my theme’s demo : http://demo.morethanthemes.com/tophit/ I tried one module for horizontal slideshow but it turned out to... read more
Altering nodes title value

How to implement a Rules Action to loop through quantity of a products bought?

With the Drupal Commerce module, I created a new product type I use for selling points to my customers. The product has a custom field named “points” (field type integer) where I specify the amount of point to sell. On checkout I grant the points to the user with this... read more
Altering nodes title value

Multiple blogs per user, each with a blog profile page

I’m trying to to create a site where users upon admin approval, can have multiple blogs, typically differentiated by language. Each blog should have a profile/landing page specific to that blog. I can simply create a taxonomy term where a given term is a given... read more
Altering nodes title value

Computed value on multipage Webform

I have multipage webform. I want to compute the value of the component (Hidden -type) which is on the second page based on the data submitted on the first page. I’m using hook_form_alter and added my client_submit handler: function... read more
Altering nodes title value

Using a View in a tooltip for an image map hover link

I have a imagemap with various tags, it works well in my Drupal instance, I can click on the various areas to get to my pages. Now I want to hover one area and display a tooltip with information inside (example: if I hover France, I will have a tooltip showing little... read more
Altering nodes title value

Not able to save the selected custom populated option list

I have a cck select list where the options are populated by my custom code. There is no issue for populating the list but after that the selected options are not able to save. Is there any way to fix this. Here is my code snippets: function... read more
Altering nodes title value

Automatically add users to the same group as their group admin

I am using the Organic group module. I created 2 groups on my site. To each group I assigned 1 user as group admin. Group admins have the permission to create users. My question is how to automatically assign the users which got created by a group admin to the group... read more
Altering nodes title value

How to add Drupal Coupon discount for selected category or item only?

Project: Commerce Coupon Version: 7.x-1.0-beta7 Hi, We are using drupal percentage coupon module for our websites and its very good.We have a request from customer where they need to exclude coupon discount for selected item/category.Reason they have a category which... read more