Closed (won't fix)
Project:
Views (for Drupal 7)
Version:
5.x-1.6
Component:
node data
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
11 Sep 2008 at 13:28 UTC
Updated:
12 Dec 2011 at 07:18 UTC
Hello,
I have done a modification that is allowed me to use html tags in node title (from here: http://drupal.org/node/28537). This is working fine, but on page with views (for example block with latest nodes or in recent user content) title is displayed with the tags - it just ignore it. (line [b]mynodetitle[/b] instead of mynodetitle. In standard node view, this is working by replacing print $title with print bb2html($title); in node.tpl. But I can't get it work with views module, because I am unable to find print $title code for view-field view-data-node-title. Any ideas how I can fix this ?
Thank you for your help.
Comments
Comment #1
sunSorry, unfortunately this support request is way too specific. Please have a look at the issue queue - Views maintainers are buried already. You might want to try to get further support at http://drupal.org/support. Additionally, the answer to your question might be covered in the handbooks at http://drupal.org/handbook/modules/views already.
If you were able to solve this issue on your own in the meantime, you might want to add the involved steps to this closed issue, so other users searching for a similar solution might find it.
Comment #2
alexmcca commentedHi chazz,
I am trying to do the same thing. Did you find any more information on this?
I am using Views for a Latest News list and bb2html works in the main title of the article, but the news menu "view-data-node-title" the tags are not processed.
Thanks.
Comment #3
alexmcca commentedSorry - I immediately found where to do this.
In views.module you apply bb2html to $items in the block of code below:
I have not tested this any further, but it works for my limited needs.
Alex.
Comment #4
jonathan1055 commentedFor anyone who is running Views 2 in D6 and finds this thread in a search (like I did) - the function above does not exist. However, the easy place to insert a call to bb2html is in a theme file specifc to views titles. The benefit of this is that you are not hacking any views code, just modifying your own theme(s).
I have created views-view-field--title.tpl.php in my theme and it just contains
Views2 theme information will show all the potential theme files for each item in your view and you can pick the one which is most appropriate to your needs.
Jonathan