Closed (fixed)
Project:
Views Showcase
Version:
6.x-1.0-beta2
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
3 Dec 2009 at 10:25 UTC
Updated:
31 Dec 2009 at 14:10 UTC
I have a somewhat noobish question. Here's the thing: I want a showcase on my frontpage, which is a custom tpl-file. So I tried to print the view with this:
<?php
$view = views_get_view('showcase');
print $view->execute_display('default', $args);
?>It works as expected, the view is printed, but it looks like this (testpage). Apparently, I have to load the neccesary js-files through drupal_add_js. But how to do this? Simply taking the lines from views-showcase-view.tpl.php and putting them in template.php doesn't work. Or am I on the wrong track altogether?
As you must have guessed, I'm not a coder. I'd be grateful if someone could point me in the right direction.
Comments
Comment #1
Aart commentedFixed the javascript issue. In case anyone needs it in the future, I used this in template.php:
Then in page-xxx.tpl.php simply:
<?php print $showcase; ?>Comment #2
raiyne commentedMight be a dumb question; but does this eliminate the images all showing/stacking before loading?
Comment #3
Aart commentedSorry, it doesn't. I'd also like to fix that, though.
Comment #4
raiyne commentedI'll slip you a twenty if you do :) Man I want this module to work (compliantly) so bad!