I have a View called clients_associations. In this View I have added a page called Non-Profit Organizations. This is the "Name" of that specific page view within the overall clients_associations View.
When I output my View Reference field on my node as a Title (Link) I get both the output of the View name and the page View name. How can I only output the Page View name. I don't want both.
So this is what I'm getting on the View Ref output (Type here is the label):
Type: Clients_associations Non-Profit Organizations
I just want it to say:
Type: Non-Profit Organizations
Suggestions?
-backdrifting
Comments
Comment #1
danielb commentedIt would have something to do with this theme function
You can override theme functions, as you might know to suit yourself. Perhaps you could investigate the code here to figure out what's going on.
$view - The data View Reference has about the chosen view
$view_object - The data returned from the views module based on the data from $view
$view_object->get_title() - This should be the correct title on the view?
$view->title - This would be the undesired long title used in the selection forms, it is used on the node view as a fallback when $view_object->get_title() is null/false/empty/0
That line in particular, perhaps just before it, debug what $view_object->get_title() is returning.
lol the comment says nodereference, woops
Comment #2
danielb commentedIt's possible the more correct title you're after is actually in
$view_object->display[$view->position]Comment #3
danielb commentedHmm it seems there a few problems relating to this. Even with the listings. The title of the display is in $view->display->(display position)->display_options['title'], but if it's not there then look for the same where the display position is 'default'. Bit confusing.
So I might have to remember "view-name display-key", the display title, as well as the display options title.
Comment #4
danielb commentedI've made this change for the node config stuff in my development copy, but I still need to make it work on the node edit page, and for the output theme functions before I commit.
Comment #5
danielb commentedoh man i got drunk and rewrote teh whole module, except for the actual issue I was meant to fix
Comment #6
danielb commented