Anyone know the D7 version of this D4 snippet?

<?php if (in_array('blog_author',$user->roles)): ?>
<div class="fields"><a href="/blog/<? print $user->uid; ?>">Read <?php print $user->name ?>'s Blog</div>
<?php endif; ?>

Currently I'm in the user profile and using

<a href="/blogs/<?php $user; ?>" title="Read <?php $user; ?>&#039;s latest blog entries.">View recent blog entries</a></h3>

New book: Drupal 7 Fields/CCK Beginner's Guide

About the book

The Field module is a new core module in Drupal 7, and is the next generation of the legendary Drupal 6 CCK (Content Construction Kit) module. The CCK was a developer's best friend, used on any Drupal project of any size. Now, the Field module builds on the strength of the CCK module, bringing new features to Drupal 7.

The Field module allows custom data fields to be attached to Drupal entities (content nodes, users, taxonomy vocabularies, and so on) and takes care of storing, loading, editing, and rendering field data.

In Drupal 7, you can create content types and you can add fields to any content type. You can rearrange the order in which fields are displayed and you can specify the label position and format of the field. Unlike in earlier versions, you do not need to download a separate module to add fields to a content type.

Wouldn't you like to know more about how to use this important and interesting feature?

Drupal 7 Fields/CCK Beginner's Guide helps you to get started quickly and to get beyond the basics to take full advantage of the fields system. It covers the key features of Drupal 7 fields that will help you get your Drupal 7 website up and running with a step-by-step approach to building a Drupal 7 website with the new fields system.

How can I get the current page number from Views Pager for use in conditionals?

This is I'm assuming a stupid question, but I'm not using the correct search terms or something so I'm having trouble finding an answer.

I would like to create a conditional within a views template page I've created where certain content will display based on the current page the pager is on.

The pager adds its own arguments to the URL like so: www.website.com/frontpage?page=1 which would be the 2nd page of content.

Want to capsule/cover the file field's URL

hi bros,

Short question ,

I have added a file field from content types ( I will accept video files : mp4 dat mpgeg)
I want to capsule it with window media player plugin

like this :

<-------------------------------------------code----------------------
url=filefield's url*

---------------------------------------------code---------------------->

VBO with base non-drupal table (same database)...how to use??

I'm really stuck and am getting a little desperate.

My config = Drupal 7, VBO 7.x-3.x-dev, Views 7.x-3.0-rc1

Created my own db table for transactional data. Table is called check_transaction_table. In the view definition it's called 'ctable'

Created a module.views.inc and defined my table to Views, it shows up as a valid type and I can create views of the data no problem.

Finder fatal error when autocompleting

Hello. I've been attempting to use views/finder to create an auto-correcting search box for specific taxonomy terms. When I begin typing a term name into the finder, after it begins to search it crashes and displays the following error:

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x