Jump to content
TNG Community

New tab does not work optimal


ton van lil

Recommended Posts

ton van lil

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

ton van lil

Thanks Goggs. I did include tng_begin.php in my php. It must be something else.

Greetings Ton

 

Link to comment
Share on other sites

Leif Sweden

I see that you also added Parential Lines between Ancestors and Descendants, is that working fine?

Unfortunately I have no idea about your Biografy problem.

Leif

Link to comment
Share on other sites

ton van lil

Leif,

The tabs can be placed where ever you want. They all work fine. Only the tab I made myself disappears when I start my historie_auto.php.

Greetings

Ton

 

Link to comment
Share on other sites

ton van lil

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...