Jump to content
TNG Community
Appelmus

Template 15; Removing Links?

Recommended Posts

Appelmus

Hello!

How can I remove the links Home and First Name and Last Name and Search from the top line?
Best greetings

screenshot_108.png

Share this post


Link to post
Share on other sites
Michel KIRSCH
1 hour ago, Appelmus said:

How can I remove the links...

Template15/topmenu.php :

<?php
    global $text, $currentuser, $cms, $allow_admin, $subroot, $tmp, $homepage;

    $dadlabel = getTemplateMessage('t15_dadside');
    $momlabel = getTemplateMessage('t15_momside');
    $pagetitle = getTemplateMessage('t15_maintitle');
?>
<body id="bodytop" class="<?php echo pathinfo(basename($_SERVER['SCRIPT_NAME']), PATHINFO_FILENAME); ?> home-page content-sidebar tng-nav tng-home">
<div class="scroll-to-top"><a href="#"><img src="<?php echo $cms['tngpath']; ?>img/backtotop.png" alt="" /></a></div>
<div class="site-container">
    <nav class="nav-primary">
        <div class="wrap">
            <div class="responsive-menu-icon"></div>
            <ul class="menu nav-menu menu-primary responsive-menu">
                <li class="first menu-item current-menu-item"><a href="<?php echo $cms['tngpath'] . $homepage; ?>"><?php echo $text['homepage'];?></a></li>
<?php
    if($dadlabel) {
?>
                <li class="menu-item"><a href="<?php echo $cms['tngpath']; ?>pedigree.php?personID=<?php echo $tmp['t15_dadperson']; ?>&amp;tree=<?php echo $tmp['t15_dadtree']; ?>"><?php echo $dadlabel; ?></a></li>
<?php        
    }
    if($momlabel) {
?>
                <li class="menu-item"><a href="<?php echo $cms['tngpath']; ?>pedigree.php?personID=<?php echo $tmp['t15_momperson']; ?>&amp;tree=<?php echo $tmp['t15_momtree']; ?>"><?php echo $momlabel; ?></a></li>
<?php        
    }
    if($tmp['t15_featurelinks'])
        echo showLinks($tmp['t15_featurelinks'],false,"menu-item");
?>
  

             <li class="search-menu-item">
                    <form id="topsearchform" name="topsearchform" method="get" action="<?php echo $cms['tngpath'];?>search.php">
                    <?php echo getFORM( "search", "get", "", ""); ?>
                        <input type="hidden" value="AND" name="mybool" />
                        <?php echo $text['firstname']; ?>:&nbsp;<input size="12" name="myfirstname" type="text" id="myfirstname" /> &nbsp;
                        <?php echo $text['lastname']; ?>:&nbsp;<input size="12" name="mylastname" type="text" id="mylastname" /> &nbsp;
                        <input type="submit" value="<?php echo $text['search']; ?>"/>
                    </form>
                </li>

            </ul>
        </div>
    </nav>

 

The concerned lines are in bold here above in the templates/template15/topmenu.php file.

Put them between <!-- and !--> (Comment signs for html)

Michel

Share this post


Link to post
Share on other sites
Michel KIRSCH

More precision??

<?php
    global $text, $currentuser, $cms, $allow_admin, $subroot, $tmp, $homepage;

....................
            <ul class="menu nav-menu menu-primary responsive-menu">
<!--                <li class="first menu-item current-menu-item"><a href="<?php echo $cms['tngpath'] . $homepage; ?>"><?php echo $text['homepage'];?></a></li> !-->

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


<!--                <li class="search-menu-item">
                    <form id="topsearchform" name="topsearchform" method="get" action="<?php echo $cms['tngpath'];?>search.php">
                    <?php echo getFORM( "search", "get", "", ""); ?>
                        <input type="hidden" value="AND" name="mybool" />
                        <?php echo $text['firstname']; ?>:&nbsp;<input size="12" name="myfirstname" type="text" id="myfirstname" /> &nbsp;
                        <?php echo $text['lastname']; ?>:&nbsp;<input size="12" name="mylastname" type="text" id="mylastname" /> &nbsp;
                        <input type="submit" value="<?php echo $text['search']; ?>"/>
                    </form>
                </li>
!-->            </ul>
        </div>
    </nav>

 

Share this post


Link to post
Share on other sites
Appelmus

Thank you very much, Michel!

I have found the template 15/topmenu.php. I will try the changes on a test page tomorrow.

In the top link bar should be historical background information or something like that. I don't know exactly yet. I can jump with the links to another web page, how I can get to pages in the histories, I don't know. But maybe later.

Best greetings

🍏

Share this post


Link to post
Share on other sites
Appelmus
Am 11.2.2021 um 20:18 schrieb Michel KIRSCH:

More precision??

 

Hello Michel! It works. Thank you very much!

screenshot_110.png

Share this post


Link to post
Share on other sites
Michel KIRSCH

De nada !

Michel

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×