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

timhilliard’s picture

Status: Active » Closed (works as designed)

Hi 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

dRaz’s picture

Fantastic, thank you very much :)

I created a new text format to allow the view embed and it worked a charm!