Closed (outdated)
Project:
Embed Views Display
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
15 Jul 2012 at 00:48 UTC
Updated:
12 Feb 2022 at 13:59 UTC
Jump to comment: Most recent
Comments
Comment #1
joachim commented> Not sure yet what others would be expecting really
The more I think about it the more I'm unsure about that too!
On the surface of it, having something that gives you:
- h2 - title - /h2
- view content
would seem handy.
But then, this is going to be consumed in so many different ways that I don't know how useful it would be. For one thing we don't know what heading level is needed.
Having said that, having to get the title yourself is not that simple:
... the one line call to views_embed_view() has ballooned to 6!
So something that returns an array of title, content would be saving on that, even if you then have to format the title text yourself.
Comment #2
jstollerI was just trying to figure out why this wasn't working. Could this module simply supply a $title variable to views-view.tpl.php? Then users can do whatever they want with it in the theming layer.
Comment #2.0
jstollerAdding reference to original issue.
Comment #3
grndlvl commented