Closed (works as designed)
Project:
Front Page
Version:
7.x-2.0-rc1
Component:
Feature Request
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
16 Oct 2011 at 18:17 UTC
Updated:
16 Oct 2011 at 22:46 UTC
Hi,
I used this module in D6 and was successful in embedding views into my front page using the check box "Allow PHP Snippets" along with "full html" display.
I notice that this checkbox is no longer available.....will this be added back or is there a workaround to display a view onto my front page?
My current code which is not working is:
$viewName = 'Published_Content';
print views_embed_view($default);
Thanks in advance.
Shaun
Comments
Comment #1
timhilliard commentedHi dRaz,
PHP snippets in the front page module have been changed slightly. Due to the fact that filters are now applied if you want to use a PHP snippet you should make sure the filter type you are using allows it. By using filters instead of allowing PHP directly we are able to tighten up security.
Does this answer your question?
Thanks,
Tim
Comment #2
dRaz commentedFantastic, thank you very much :)
I created a new text format to allow the view embed and it worked a charm!