This is strange. Views are ok and include the title field.
Is this a theme or a features issue ?
| Comment | File | Size | Author |
|---|---|---|---|
| screen003.jpg | 24.69 KB | FanisTsiros | |
| screen002.jpg | 63.2 KB | FanisTsiros | |
| screen001.jpg | 71.87 KB | FanisTsiros |
This is strange. Views are ok and include the title field.
Is this a theme or a features issue ?
| Comment | File | Size | Author |
|---|---|---|---|
| screen003.jpg | 24.69 KB | FanisTsiros | |
| screen002.jpg | 63.2 KB | FanisTsiros | |
| screen001.jpg | 71.87 KB | FanisTsiros |
Comments
Comment #1
Arts and Ideas commentedThat after a week there is NO comment from the maintainers indicates one of three things:
> OP is too busy,
> OP relying on the community to fix this issue,
> This issue is not high enough on their growing list of things to do.
Please address this issue. It's more substantive than a missing $title. If it is a Theme issue the preprocess functions and tpl files must be corrected. If it's a features issue the dependencies must be rechecked.
We are hoping for attention.
Comment #2
stattler commentedI believe its a theme issue. But the developers must fix it soon. Users are crying for it for over a week.
Comment #3
FanisTsiros commentedWell, I think I found the culprit! It is indeed a theme issue.
file ...../sites/all/themes/openpublish_theme/views/blogs/views-view-field--blogs--title.tpl.php contains just a line of code:
<h2><?php print $rdfa_title; ?></h2>it seems the $rdfa_title variable is empty or not registered... I am not sure what this variable is ($rdfa_title), so i changed this line without deleting the $rdfa_title variable:
<h2><?php print $rdfa_title; print $output; ?></h2>as you can see, i just added the print $output.
this works for me and titles are shown for both views.
Not marking this solved, since the developers should take care.
thanks !
Comment #4
tirdadc commentedSorry for not picking this up sooner. It's been resolved and committed to dev, it was a bug in the blog feature's preprocessing to get the RDFa-enhanced version of the title (which you should use instead of using the regular $output).
Grab the next dev build of OpenPublish Features (ie one that's built after the commit, so it's not there yet as I'm typing this) and replace your existing version to fix this.
If you want to do it manually, replace this on line 37 of sites/all/modules/openpublish_features/op_blog/includes/theme.inc:
$vars['rdfa_title'] = _openpublish_get_rdfa_title($vars['row']->original_value, $vars['row']->nid);with
$vars['rdfa_title'] = _openpublish_get_rdfa_title($vars['row']->node_title, $vars['row']->nid);Comment #5
FanisTsiros commentedBugs help us to find out how stuff works !
Well, i had allready found this bug comparing the two theme.inc files:
sites/all/modules/openpublish_features/op_blog/includes/theme.inc
sites/all/modules/openpublish_features/op_article/includes/theme.inc
i made the change with no luck. I suppose i had to clear the cache, right ? I'll try later today, and report.
Thanks !
Comment #6
FanisTsiros commentedOk, it's working fine now !
Per #5, actually there wasn't a clear cache problem. Trying to find the bug i had disabled the op blog feature...
thanks !
Comment #7
ndwilliams3 commentedsame problem. #4 does indeed fix the problem.
Comment #8
greenskunkThanks for tracking this down. Saved me some steps.