view and edit links for nodes in a custom theme

Events happening in the community are now at Drupal community events on www.drupal.org.
aprice42's picture

Hello,

I am still busy working on my first theme... now trying to figure out how to get my theme to display the "view" and "edit" links when looking at a node. I have searched through some other themes for clues and also searched for threads on the drupal.org site, but just can't seem to find what I am looking for. Can someone help point me in the right direction?

Thanks,
Andy )

Comments

Make sure you have the

mikey_p's picture

Make sure you have the following snippet somewhere in your page.tpl.php template:

<?php
print $tabs;
?>

This will print any tabs automatically. Take a look at a theme bundled with Drupal, such as Garland, for more examples.

Thanks for the quick

aprice42's picture

Thanks for the quick reply... I was hoping that it was something quick and easy like that...

Andy )

another common first-time mistake

rjleigh's picture

if you're creating your own theme, it's also important to have

<?php print $closure; ?>

at the bottom of the page (right before the closing body tag), or some of the site javascript might fail.

For a great list of all the built-in page variables take a look at the templates in the Zen theme.

Thanks for the heads up... I

aprice42's picture

Thanks for the heads up... I did have that one :) Andy

How do I show borderless tables using fckeditor?

mocolvin's picture

I am using fckEditor as my text editing tool, but cannot seem to get tables to display without a border. I have edited the source html to get rid of borders and the text displays without it in the fckEditor window, but when it display on the page, the borders are all there. I have edited the Full HTML settings to make sure that Table commands are there.

I'm flummoxed. Am I missing something, or is this simply a shortcoming of fckEditor?

Michael Colvin
On Earth Peace
http://onearthpeace.org
mcolvin@onearthpeace.org
530-844-3838 (the Area Code is correct!)

Michael Colvin
StreamSeeds
http://www.streamseeds.net (site currently under construction)
mcolvin@streamseeds.net
530-844-3838

Check your CSS.

grendzy's picture

Can you check where the borders are coming from, using Firebug? It's sounds like the borders might be in a CSS stylesheet.

To show the table without border

elandirayan_cud's picture

Once u created the table using the editor u see the html code using the code or HTML button present in that.

In that the table line will be there. like

......
............

in that first line <table......... border="0">

simply add border="0" in table tag.
Issue will be resolve

Elandirayan.J
Drupal Programmer.
Chennai.

Portland (Oregon)

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: