By owntheweb on
Hello,
My theme will have a bar of scrolling logos per the client's request. The logos are part of nodes. I can pull them in using a view, but the javascript that makes this thing scroll will not work well with a view (unless I completely rip the thing apart).
So, I'm doing a good ol' fashioned database query using db_query() and printing out the results in the simple compatible format, in the page.tpl.php file.
Is there a problem with this way of thinking?
Thank you,
Comments
My assumption is that what
My assumption is that what I'm doing is OK. I just want to see if there are any opposite opinions on this. Any thoughts?
Worlds to explore. Worlds to create.
Blog: http://www.christopherstevens.cc/blog
Twitter: http://www.twitter.com/owntheweb
Use a Block
I would have thought that it would be better to put the code in a block, rather than edit the tpl file.
HTH
Terry
Recent Drupal sites:-
www.allegiantair.com www.defaqto.com www.quarkexpeditions.com www.sportrelief.com www.chevronhackles.com
www.philipturnercrafts.co.uk www.intelflexplus.com www.aprilroseturner.com www.businessclubagent.ihg.com www.businessclub.ihg
Good point. That sounds like
Good point. That sounds like a good idea.
Thanks for the feedback. :)
Worlds to explore. Worlds to create.
Blog: http://www.christopherstevens.cc/blog
Twitter: http://www.twitter.com/owntheweb