How do you remove the taxonomy term from page content? As you can see on the site:

http://www.mvmaranatha.com/home

That it displays the term that I am using as part of my taxonomy_access configuration. How do I remove that? The searching I have done on the site here said to remove some lines for $term from my node.tpl.php, but I don't have any such file in my theme.

Comments

lurkltd’s picture

what templating engine are you using?

dman’s picture

The advice is right.
Pretty much all phptemple themes will have a node.tpl.php
What theme ARE you using?

If your theme instead has a .theme file, edit that to remove the line that may look something like:

$terms = taxonomy_link("taxonomy terms", $node);

(that example found in chameleon.theme. YMMV)

.dan.
How to troubleshoot Drupal | http://www.coders.co.nz/

TheGorf’s picture

ummmm ok all I did was create a file called page.tpl.php and placed my website theme into it. Then added an accompanying style.css. Here is the complete code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php print $language ?>" lang="<?php print $language ?>">
    <head>
        <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
        <title><?php print $head_title ?></title>
 
        <?php print $head ?>
        <?php //print $styles ?>
        <style type="text/css" media="all">@import "/themes/mvmaranatha/style.css";</style>
        <?php print $scripts ?>
    </head>
    
    <body>
        <!-- Begin Header DIV -->
 
        <div id="header">
            <div id="header_announce">
                <span class="underline">Join us Sundays</span>:<br />
                <span class="bold">09:45AM</span><br />
                Sunday-school and classes<br />
                <span class="bold">10:45AM</span><br />
 
                Morning worship and service<br />
                <span class="bold">06:00PM</span><br />
                Evening Service<br />
            </div>
 
            <div id="nav">
                <a href="/home">Home</a> :
                <a href="/Schedule">Schedule</a> :
                <a href="/Ministry Groups">Ministry Groups</a> :
                <a href="/AboutUs">About Us</a> :
                <a href="/Contact">Contact Us</a>        
            </div>
 
        </div>
        <!-- End Header DIV -->
        
        <!-- Begin Content DIV -->
        <div id="content">
            
            <?php if ($breadcrumb): print $breadcrumb; endif; ?>
            
            <?php if ($mission): print '<div id="mission">'. $mission .'</div>'; endif; ?>
            
            <?php if ($tabs): print '<div id="tabs-wrapper" class="clear-block">'; endif; ?>
            <?php if ($title): print '<h2'. ($tabs ? ' class="with-tabs"' : '') .'>'. $title .'</h2>'; endif; ?>
            <?php if ($tabs): print $tabs .'</div>'; endif; ?>
            
            <?php if (isset($tabs2)): print $tabs2; endif; ?>
            
            <?php if ($help): print $help; endif; ?>
            <?php if ($messages): print $messages; endif; ?>
            <?php print $content ?>
            <span class="clear"></span>
            <?php //print $feed_icons ?>
        
        </div>
 
        <!-- End Content DIV -->
        
        <!-- Begin break for floated items if needed -->
        <div id="spacer"></div>
        <!-- End break for floats -->
        
        <!-- Begin Footer DIV -->
        <div id="footer"> 
            <?php print $closure ?>
        </div>
        <!-- End Footer DIV -->
 
    </body>
</html>

So do I need to add a node.tpl.php file? What do I put in it?

lurkltd’s picture

yes. you should probabaly read up on themeing and templates.

vm’s picture

start here: PHPTemplate

which is part of the Theme developer's guide

rather then hardcoding your nav menu:

            <div id="nav">
                <a href="/home">Home</a> :
                <a href="/Schedule">Schedule</a> :
                <a href="/Ministry Groups">Ministry Groups</a> :
                <a href="/AboutUs">About Us</a> :
                <a href="/Contact">Contact Us</a>        
            </div>

you should create your menu in administer -> menus which would allow you more control.
_____________________________________________________________________
My posts & comments are usually dripping with sarcasm.
If you ask nicely I'll give you a towel : )