Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.
I recently developed a gallery which a client wants to integrate with his drupal install. My question is if it's possible to pull the drupal header and footer to a page outside of drupal.
My gallery uses smarty, which means I can run php code inside the templates. I've reviewed the writing a module tutorial and various handbook pages about templating/theming drupal.
I copied the folder of one of the themes onto my desktop (windows). I replaced the logo image with a different logo image & the link images with different link images.. I didn't go any coding to change the theme, just used the primary link box & added more then 1 imaged link inside it (works like a charm)..
however I have NO idea how to add my new themes (I want members to be able to pick whichever theme they like & use it).. I copied the folder (with new name) into the themes folder & was hoping it would just show up.. HA, saddly it seems harder then that lol
I've just jumped into patching together code for Drupal and finally figured out how to get the current node id - it's arg(1). It took me ages to figure that out (I searched high and low for it but finally found it). So this allowed me to grab some voting information that I want to display about a node.
I placed the following code in my node.tpl.php file and it works when I am in a node (/node/24 for example) but when I am on the main page (/node) it just outputs zero for each node.
Is it possible to separate the Comment link from Read More link in a Node?
Actually i want to move the Comment link at the top beside of "Submit by" info and keeping the Read More link at the bottom...
any ideas how to modify the node.tpl.php file?
Banners show up nicely in the sidebars for me, but they disappear the moment I try to place them in the header. Has anyone here successfully overcome this problem?
but the page they goto (with our theme at least) doesn't have an anchor with id="comment", so the browser starts scrolled to the top and the user can't immediately see the add comment form