Skip to main content

Drupal Themes

Our feature packed Drupal themes combine beautiful design with over 70 optional settings, our easy to use administration theme and all backed by our no fuss money back guarantee.

Drupal Design

Blow away the competition with our full service graphic design services. We focus on audience demands & brand identity to set the tone of your internet business strategies.

Drupal Designers and Themers Community

Join the first crowd sourced premium Drupal theme service. Become a rockstar designer or themer, share the profits and get exposure to a half million Drupal users.

Semantic Views Module for Drupal 6 - Video Tutorial

  • Comment #11 Comprehesive! is currently unpublished
  • Comment #13 export is currently unpublished
Post to Twitter

The Semantic Views module for Drupal 6 allows you to easily insert HTML markup for your Views rows and fields.

This is a new module by bangpound and I think this is really going to change how we think about theming Views because for the first time it puts clean semantic Views output in the hands of site builders and other end users, without having to get their hands dirty in the templates.

Semantic markup is intrinsic to good accessibility, SEO, if not the development of the web as whole. It can also make theming a lot easier—we no longer need to litter our stylehsheets with all those extra classes.

I can see this module becoming a big part of our theme development, both for client and commercial themes, where we can provide a Views export module.

Usage is quite strait forward.

  1. Simply select the Views Style as Semantic Views : Unformatted and set the Row style element, such as a div. Here you can also group elements and apply an HTML element and there are options for setting CSS classes.

  2. Select the Row Style as Semantic Views : Fields. Here you can set the HTML element for each field. For example you can set h2 for a title and p for other the other fields.

Heres a quick and dirty vid showing how to use the Semantic Views module. I make the assumption that you have already installed the required modules (Views and Semantic Views). In the video I create a basic node view with a few fields and set a row style wrapper div and HTML elements on each field.

http://drupal.org/project/semanticviews

Drupal Version: 

Drupal: 

Comments

#1 thanks jeff

Thanks Jeff for introducing Semantic Views.

Views theming is really pain. I always hated to look the source code in firebug. It undermines the ‘cascading’ theory of CSS.

Thanks, noussh.

#2 Brilliant!

I was thinking of doing a Views style plugin like this and now here it is. Rule 35!

#3 Thanks!

I’m very appreciative of your effort to understand and explain the module. It’s still in development and has flaws (HTML elements default to nothing for example), so please post any problems in the issue queue.

#4 Nice!

Looks very nice, thnaks very much! The less file editing and overriding, the better. It isn’t always easy to comprehend for Drupal newb like me.

#5 nice man!!!

nice man!!!

#6 thanks

Thanks for this nice article/explanation.

#7 Looks like this is going to

Looks like this is going to make theming alot more fun!
One questions arise though - What about performance?
Have you made any test comparing file based theming with semantic views themeing?

#8 ...

@s.Daniel, well thats a question for bangpound probably but I would think its no different. Semantic Views simply uses a different set of templates (its own) so its still template based.

#9 performance

@s.Daniel

The performance is more or less identical to Views 2’s default style and row style plugins. The only differences would be in the theme preprocess functions, which don’t do anything wildly different from what Views already does.

#10 Awesome dude…those classes

Awesome dude…those classes can be a real pain!

#11 Comprehesive! Unpublished

Thanks for this really useful introduction. Do you use this development methodology solely for prototyping, or also on production sites with version control requirements?

#12 ...

I’m using it for prototyping at the moment because its in development, but when it has a stable release I’ll use it for live sites also.

#13 export Unpublished

I think what Robert is hinting at is that it would be nice to be able to export the settings here to code. Will the elements/classes export when a View is exported?

#14 VCS is important

@moshe, ak, true, yes that would be a nice addition, the VCS aspect is a very good point, I think we’ll need to hear form bangpound on this one as I am not sure.

#15 settings

Semantics Views settings are exported in code as part of the view.

Post new comment

The content of this field is kept private and will not be shown publicly.
  • You can use Markdown syntax to format and style the text. Also see Markdown Extra for tables, footnotes, and more.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <h2> <h3> <h4> <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
  • Adds typographic refinements.

More information about formatting options