Posted by ithacaindy on August 14, 2010 at 4:21pm
I'm considering doing away with the blog entry type and making everything an article due to the frustration over displaying titles. I have included four different methods of displaying a blog entry's title Author(s) Node: Title, Authors(s)(counter) Node: Title, Node: Title and Node:Title, again). Still, the blog page only displays this:
author's picture
date
author's name
teaserNo title. What's wrong??
Comments
Shooting Blanks
It looks like the node:title for blog entries are displayed as blanks. Although I included three different ways in Views to display the blog's entry's title, a check of the page's source reveals this:
<div class="views-field-title-1">
<span class="field-content">
<h3></h3> </span>
</div>
<div class="views-field-title">
<span class="field-content">
<h2></h2> </span>
</div>
Do you notice the blank h3 and h2 tags? There should be text there.
Also, a check of the node-blog.tpl.php file shows the title isn't printed. What do I add to that file to get the title to print?
I agree
For whatever reason, I also have difficult with the blog landing page.
I continue to have trouble
I continue to have trouble with missing titles on blog entries appearing on the front page. The blog author's name appears, along with the date and the teaser, but no title. Clicking on the "Blog" menu item lists the blog entries along with their titles, but still no blog entry titles on the front page.
What's bizarre, is previewing the blog homepage block view displays the blog entry titles - only when displayed on the front page does the blog homepage block view omit the title.
I am experiencing the same
I am experiencing the same thing. Also, I am seeing these weak headlines turning up now in some of my featured story blocks.
I do not like this. Would be nice if we could override headline styles with the FKCeditor.
I cured the homepage blog
I cured the homepage blog headline problem by removing them from the frontpage context, then adding them back. Weird, I know, but it worked. Now I need to rediscover how to collate the blog entries, so that I can have all police-related blog entries listed together, rather than each incident listed in a separate blog entry.
Me too... except for the cure
No blog headlines on front or listing pages. Appears on detail page.
Deleted and rebuilt the front page block in views and inserted my new block in front page context. Same result as the original.
Everything looks fine in the views previews, but getting empty fields in the html.
Open Publish Support — Blog Title/Views/Features/tpl
Need OpenPublish support on this issue. I know there MUST be a lot going on over at OpenPublish. Still, this is central. Have not done a print_r in devel to understand what variable is not being passed, but it seems there is a disconnect between the view and the page — which may be a features issue... Thoughts?
Open Publish: Blog Theming and Blogs Page View Variables
I have not tracked this down — but have printed the view variables, the view theme information and have investigated theme functions. I've even reviewed the blogs Feature to see if the relationships and dependencies are fine. NOT sure they are.
Maybe somebody else can have a spin at this and see what they come up with.
Below is the default template for this view
(other than the name, it's a direct copy from Views "Theme Information" to views-view-field--blogs--field-teaser-value.tpl.php):
<?php// $Id: views-view-field.tpl.php,v 1.1 2008/05/16 22:22:32 merlinofchaos Exp $
/**
* This template is used to print a single field in a view. It is not
* actually used in default Views, as this is registered as a theme
* function which has better performance. For single overrides, the
* template is perfectly okay.
*
* Variables available:
* - $view: The view object
* - $field: The field handler object that can process the input
* - $row: The raw SQL result that can be used
* - $output: The processed output that will normally be used.
*
* When fetching output from the $row, this construct should be used:
* $data = $row->{$field->field_alias}
*
* The above will guarantee that you'll always get the correct data,
* regardless of any changes in the aliasing that might happen if
* the view is modified.
*/
?>
<?php print $output; ?>
$output is not pulling title although "title" is in the view (see below)
Below are the available views variables for this page using
<?phpdrupal_set_message('<pre>' . print_r($view, TRUE) . '</pre>');
?>
see [node_title] => The Place of the Artist in "Regional Arts"
#
view Object
(
[db_table] => views_view
[base_table] => node
[args] => Array
(
)
[use_ajax] =>
[result] => Array
(
[0] => stdClass Object
(
[nid] => 27
[node_title] => The Place of the Artist in "Regional Arts"
[node_language] => en
[node_created] => 1283172164
[node_data_field_teaser_field_teaser_value] =>
Regional arts... Seems confining. Yet we cannot think about our relationship to the world without engaging a region — our brain, our studio, our daily conversations inside the local arts community where we draw (and sometimes reject) inspiration.
[node_data_field_teaser_field_teaser_format] => 2
[node_type] => blog
[node_vid] => 27
[node_node_data_field_op_author_profile_values_profile_full_name_value] =>
[node_node_data_field_op_author_profile_values_profile_full_name_uid] =>
[node_node_data_field_op_author_node_data_field_author_photo_field_author_photo_fid] => 8
[node_node_data_field_op_author_node_data_field_author_photo_field_author_photo_list] => 1
[node_node_data_field_op_author_node_data_field_author_photo_field_author_photo_data] => a:2:{s:3:"alt";s:0:"";s:5:"title";s:0:"";}
[node_node_data_field_op_author_nid] => 16
[node_node_data_field_op_author_language] => en
[node_node_data_field_op_author_type] => author
[node_node_data_field_op_author_vid] => 16
[node_sticky] => 0
[node_created_day] => 20100830
)
)
I still think this is a "Features" issue, but do not have any more time to track it this week.... :(
subscribe. same issue
subscribe. same issue
Reverted back to OP 2.1
Reverted back to OP 2.1
sTattler.com
I'm on 2.1 — No Titles
Never have had...
Trying to track down where $output in
<div property="dc:abstract"><?php print $output; ?></div>in the .tpl file is generated — I think it should be in a preprocess function passed to views-view-field--blogs--field-teaser-value.tpl.php; but it isn't in the .inc files with the theme or in the module folder.May be on wrong track... but [title] is in the view though it's being stripped somewhere from the node and the teaser (there is no [title] but there is an rdfa title and a title_1 and title_2
I have, fortunately, no
I have, fortunately, no problem with OP 2.1. I hope that the developers are working to fix for this issue forever. The sooner the better.
sTattler.com
Anybody figure out a solution
Anybody figure out a solution to this?
Blog Titles — Time to Weigh in OP
Venture into this, OP. Please. Needs attention.
Thanks
I tried to fix this, and some
I tried to fix this, and some how, I wound up getting headlines. Unfortunately, I also changed it so my headlines are duplicated in block title fonts!
How
MIdek — part of posting here is to convey what you learned... do you have any specific info on how you got "titles??"
The fonts issue can be fixed by applying a css style in the view or in a preprocess function.
I think you misunderstand
I think you misunderstand me.
The solution I have is a lot less than ideal.
In views, I removed the
In views, I removed the title, saved, and then added the title, and saved.
I have no idea why it looks like it does.
$rdfa_title not getting set correctly for blog posts
I dug into this one in my site, and the problem is in this file:
/sites/all/themes/openpublish_theme/views/blogs/views-view-field--blogs--title.tpl.php
On line 23, the following is not outputting anything:
<h2><?php print $rdfa_title; ?></h2>In articles, $rdfa_title is set appropriately at this point, and so is outputting a linked title string (in this file:
/sites/all/themes/openpublish_theme/views/articles/views-view-field--articles--title.tpl.php
), but the same thing is not working for the blogs.
I got it to output the blog title with:
<h2><?php print $row->{$field->field_alias}; ?></h2>But it is not a URL like the $rdfa_title variable contains.
Anyone know where the OpenPublish code is setting the $rdfa_* variables?
found problem and fixed - how do I submit patch?
Hello,
I found the problem that was causing blog title to not appear (at least in my install).
In this file: /sites/all/modules/openpublish_features/op_blog/includes/theme.inc
lines 36 and 37 looked like the following:
// Article node title$vars['rdfa_title'] = _openpublish_get_rdfa_title($vars['row']->original_value, $vars['row']->nid);
In the corresponding article file (/sites/all/modules/openpublish_features/op_article/includes/theme.inc), however, the corresponding lines looked like this:
// Article node title$vars['rdfa_title'] = _openpublish_get_rdfa_title($vars['row']->node_title, $vars['row']->nid);
I went into the blog theme.inc and changed it so it referenced "node_title" instead of "original_value", and the blog titles now show up again. Looks like someone left in the wrong variable name.
How would I go about turning this into a patch and submitting it so we can get this fixed? I am new to this.
Thanks,
Jonathan Morgan
Great
You circled the same territory but locked into theme.inc in features.
I've modified mine and confirm it works.
Note:
It appears the op_blog feature is not really set up to work with the blogs page view. It seems more of a quick port from "articles."
I've added an author field to the blogs view and in op_blog/includes/theme.inc
node_node_data_field_op_author_titledoesn't work either.I think I/we must be missing basic information about how to modify the Blog Feature and re-export the module that includes "theme.inc" once the Blogs view has been modified.
The Features interdependencies take some getting used to.
does seem that the blog and article includes are related
It looks to me like you are right, that the blog and article code are pretty tightly related. I think someone who is a developer is aware of the issue and has at least added the fix for the title to the trunk (http://drupal.org/node/895786#comment-3415810). Maybe we could get in touch with this person to see about this other field?
I think we aren't supposed to have to re-export, it is just supposed to work. In Views, do you have the author title set to use the Author(s) node relation? That might be part of it, too (though I'm definitely just guessing here).
I do wish the group forum and the ticket queue were tied together better. The fix I sweated out last night was already in the ticketing system, but I didn't find it until I tried to submit a ticket. Ah well, one lives and learns. =)
Jonathan
You also probably learned a
You also probably learned a lot, so it probably wasn't a complete waste of time. :)
Solution
<?php
print $title;
?>
:)