Hello,
After successful installation, creation of an Embed display and embedding it into the footer of the Page display of the same view, everything works fine, but the embedded view doesn't show its title, which I have specifically overridden and typed in the Embed style options.
I'm using the following snippet for embedding:
<?php print views_embed_view('Articles', 'embed_1'); ?> in which Articles is the name of the view.
I'm using an overridden value for the Embed display title, which should be "Older articles".
Is this a bug or I'm doing something wrong?
Comments
Comment #1
grndlvl commentedComment #2
gg4 commentedAny explanation on the wont fix? I am trying to grab the title off an embed display...
Comment #3
JulienD commentedI think it won't be fix because as it be explained on line 1140 in the views.module the views_embed_view function does not display the title of the view.
Here is the discussion about the title and views_enbed_view http://drupal.org/node/299454
Comment #4
grndlvl commentedAhh good find. Exactly!
Comment #5
JulienD commentedHere is an example how I did.
Firstly I load the view, select the display, set the arguments and I execute the view.
Secondly I check if there is a result (if none, $result is an empty array) and I return the title and the rendered view.
I paste you my code :
I didn't find a better/faster way to do.