Check to see if a record exists then insert or update record problem

works fine as an insert by itself but I only want one record per user id. Tried this but I cant workout why its not working.

How to add a book top level to a View...?

We currently have a view that automatically creates a menu block based on a single content type. Pretty slick...we figure the fewer options for less techy users, the better.

However, we're running into a roadblock with books. We've created a seperate content type for book pages. We'd like to be able to include the top level book page in this View...but haven't been able to come up with a way to include only the top level and exclude child pages.

Any ideas?

How to apply image styles to a node field in Drupal 7?

How does one apply image styles to a field in Drupal 7? After upgrading to Drupal 7, I created a custom image style and added a field to my Page content for Images. I never had the option to choose this new style, but the field automatically modified images according to my style. But today, it stopped doing that, and I can't figure out how to get it back. What am I missing here?

Drupal 7, Taxonomy and Pathauto: How to build URL's based on taxonomy terms?

I can't wrap my head around this. I'm trying to create a pattern in pathauto to adhere to the taxonomy of the node.

In Drupal 6x, I could specify a pattern like so:

[term-raw]/[title-raw]

...which worked like a charm.

But with both Taxonomy and Pathauto having changed in Drupal 7x, I can't seem to replicate this functionality.

Under admin/config/search/path/patterns, I would like to edit the pattern for "Basic Page Paths". Right now, I've got it set to:

[node:title]

But what I would really like to do is have a pattern such as:

Showing taxonomy field in node using panels.

I'm using panels to customize node layout, and I'd like to show an image on top of the page. The node type I'm using has a CCK field 'field_show' that correlates to the taxonomy terms I have created for the vocabulary 'show'. The terms themselves have a field 'field_banner', which is an image that correlates to that show. I would like to show 'field_banner' for a specific show on all nodes that have that show selected in 'field_show'. I've been playing around with views to see if it could do what I want, but I am yet to find a solution. Any hints?

d7 how to alter template.php

(Mostly for my own reference.)

1) Go to the base theme's template.php file eg. themes/bartik/template.php
(http://api.drupal.org/api/drupal/themes--bartik--template.php/7)

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x