Jump to content
TNG Community

New tab does not work optimal


ton van lil

Recommended Posts

I made a new tab on my website. Beside Individual I made a tab Biography. Clicking this tab show a biography of the person that is selected. I changed genlib.php by putting two lines in. $historie_auto_url = getURL( "history_auto", 1 ); and $choices .= doMenuItem( $nexttab++, $historie_auto_url . "personID=$entityID&tree=$tree" , "ind", $text['Biografie'], $currpage, "Biography" );. This makes the tab. I have also written History_auto.php that finds the history (biography) of the person. This all works well. But. The layout (read other tabs) disappear. See pictures below.

image.png

 

image.png

Where am I going wrong.

Greetings

Ton van Lil

Link to comment
Share on other sites

You probably need the include for tng_begin.php in your History_auto.php file...

 

GOGGS

Link to comment
Share on other sites

Getting the tab was easy.  I changed genlib.php by putting two lines in. $historie_auto_url = getURL( "history_auto", 1 ); and $choices .= doMenuItem( $nexttab++, $historie_auto_url . "personID=$entityID&tree=$tree" , "ind", $text['Biografie'], $currpage, "Biography" );.

The tab works well. Opens my the php History_auto.php. It keeps the style but I cannot make it to keep the tabs.

Greetings

Ton

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...