<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.phpgedview.net/en/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Daj</id>
	<title>PGVWiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.phpgedview.net/en/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Daj"/>
	<link rel="alternate" type="text/html" href="https://wiki.phpgedview.net/en/index.php/Special:Contributions/Daj"/>
	<updated>2026-05-10T05:47:11Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.34.2</generator>
	<entry>
		<id>https://wiki.phpgedview.net/en/index.php?title=Create_a_Tab&amp;diff=12321</id>
		<title>Create a Tab</title>
		<link rel="alternate" type="text/html" href="https://wiki.phpgedview.net/en/index.php?title=Create_a_Tab&amp;diff=12321"/>
		<updated>2011-01-21T19:22:25Z</updated>

		<summary type="html">&lt;p&gt;Daj: Updated to refelect 4.2.4 changes&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{stub}}&lt;br /&gt;
&lt;br /&gt;
==Create a New Tab on Individuals Page==&lt;br /&gt;
(based on version 4.2.4 code base)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
['''Note:''' ''This article does not yet attempt to make the process easy for the beginner, but here are the basic steps involved.  Advanced developers are invited to expand on this article!'']&lt;br /&gt;
&lt;br /&gt;
'''How to add tabs to the individuals page.'''&lt;br /&gt;
&lt;br /&gt;
* Locate '''individual_ctrl.php''' in the '''/includes/controllers''' directory of your PGV test site and create a backup of the original.&lt;br /&gt;
* Edit '''individual_ctrl.php''' in your PHP editor of choice. &lt;br /&gt;
* Add your new tab to the ''tabarray'' array around line 83 of '''individual_ctrl.php'''.&lt;br /&gt;
 var $tabarray = array(&amp;quot;facts&amp;quot;......&lt;br /&gt;
* Save your changes to '''individual_ctrl.php'''.&lt;br /&gt;
* Locate  '''individual.php''' in the root of your PGV test site.&lt;br /&gt;
* Because the tabs are handled through AJAX, you will need to alter the JavaScript in '''individual.php'''. &lt;br /&gt;
:*Add your tab to the ''tabid'' array around lines 242 AND 245. &lt;br /&gt;
:* Add another false to the ''loadedtabs'' array on lines below each of the above. &lt;br /&gt;
:* Add a &amp;quot;door&amp;quot; for your tab near line 407.&lt;br /&gt;
 &amp;amp;lt;dd id=&amp;quot;door7&amp;quot;&amp;amp;gt;..... &lt;br /&gt;
:* Add the HTML for your tab by copying the base template from one of the other tabs, for example the media tab&lt;br /&gt;
* Upload '''individual_ctrl.php''' to the '''/includes/controllers''' directory of your PGV test site.&lt;br /&gt;
* Test out the new tab.&lt;br /&gt;
&lt;br /&gt;
==External links==&lt;br /&gt;
&lt;br /&gt;
*[http://sourceforge.net/forum/forum.php?thread_id=1695266&amp;amp;forum_id=185166/ SourceForge.net &amp;gt; PhpGedView &amp;gt; Forum &amp;gt; Help &amp;gt; &amp;quot;Add tab to indivial page?&amp;quot;]&lt;br /&gt;
&lt;br /&gt;
[[Category:How To]]&lt;br /&gt;
[[Category:phpGedView]]&lt;br /&gt;
[[Category:Developer_resources]]&lt;/div&gt;</summary>
		<author><name>Daj</name></author>
		
	</entry>
</feed>