Needs work
Project:
Advanced Blog
Version:
6.x-1.0-beta3
Component:
Code
Priority:
Major
Category:
Task
Assigned:
Reporter:
Created:
7 Apr 2010 at 12:39 UTC
Updated:
14 Jul 2011 at 07:35 UTC
Jump to comment: Most recent file
Hi,
I've started Views integration for this module. For now, whenever a user is involved (using a relationship, or because it's a view regarding users), you can display the blog Title and Description, and sort by Blog Title.
I plan to improve this, but I wanted to contribute early to have a community (and maintainer) feedback about this.
I've attached the advanced_blog.views.inc (you obviously have to rename it ;)), and you need to add
/**
* Implementation of hook_views_api().
*/
function advanced_blog_views_api() {
return array(
'api' => 2,
);
}
into advanced_blog.module.
It's working for me on basic views, I haven't fully tested it on more complicated views, feel free to comment with remarks, working tests, ...
I'm really looking forward a stable release of the module.
Best Regards,
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | advanced_blog.views_.inc_.txt | 1.42 KB | simon georges |
Comments
Comment #1
simon georges commentedOups, missing attached file...
Comment #2
svendecabooterThanks for the help.
I'll check this out and see if I can get it into the next release of the module.
Comment #3
michellezeedru commentedSubscribing .. so this would allow me to use fields like Blog Title and Blog Description in a view? Thanks!
Comment #4
Barfly commentedhi,
i follow those steps, but it doesn't work for me =(
- i create a folder "includes" in the advanced_blog folder => "all\modules\advanced_blog\includes"
- i put your .inc files in the "includes" folder => "all\modules\advanced_blog\includes\advanced_blog.views.inc"
- i add the following code :
/**
* Implementation of hook_views_api().
*/
function advanced_blog_views_api() {
return array(
'api' => 2,
'path' => drupal_get_path('module', 'advanced_blog') .'/includes'
);
}
into advanced_blog.module
But when i go to views module i don't see filter like " blog Title and Description"
My views version = "6.x-2.11"
Comment #5
Fidelix commentedSubscribing!
Comment #6
jenna.tollersonI dropped the advanced_blog.views.inc into sites/all/modules/advanced_blog (not in an includes folder), added the code to advanced_blog.module, and cleared my Drupal cache. This is working for me so far to display the title. Yay!
Comment #7
ridefree commentedany word on whether this is in a new release coming out sometime soon?
thnx
Comment #8
gatti commentedI can't get this to work either I followed the directions exactly with creating the advanced_blog.views.inc file in the advanced blog folder and with adding the information to the end of the main module file.
I have run /update.php as well.
I'm using the latest release.
Comment #9
Katrina B commentedA couple of features I'd like to see the Views integration include:
1. The ability to link to the user's blog by adding Advanced Blog Title as a field in a View (the way that a node title can be set to link to the node).
2. The ability to access the Advanced Blog fields in Node views, not just User views.
Comment #10
kappaluppa commentedI did the same as in #6 and no go.
using views 6.x-2.12
advanced blog 6.x-1.0-beta3
Are there any changes in the views.inc file for beta3?
Thanks...
K