<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — How to replace an existing 'tab' /module]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=7565&amp;type=atom" />
	<updated>2018-06-17T16:37:19Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=7565</id>
		<entry>
			<title type="html"><![CDATA[Re: How to replace an existing 'tab' /module]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=31926#p31926" />
			<content type="html"><![CDATA[<p>@kvvaradha you&#039;re right I&#039;m over thinking it.</p><p>Thanks for all your help</p>]]></content>
			<author>
				<name><![CDATA[poncho1234]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19944</uri>
			</author>
			<updated>2018-06-17T16:37:19Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=31926#p31926</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: How to replace an existing 'tab' /module]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=31925#p31925" />
			<content type="html"><![CDATA[<p>Yes, sorry I misunderstood your point replacing the whole module not the module name only</p>]]></content>
			<author>
				<name><![CDATA[notrinos]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=36772</uri>
			</author>
			<updated>2018-06-17T16:13:47Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=31925#p31925</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: How to replace an existing 'tab' /module]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=31924#p31924" />
			<content type="html"><![CDATA[<p>@poncho, You dont need to get confused much with this.&nbsp; Because the extension hook will replace the existing functionality.&nbsp; The Perfect example is Access security roles. When you define a custom one but it uses the existing system access role numbers, it will override the access permission with new one. </p><p>Last, Yes the Wiki talks about the security roles and access permissions.</p>]]></content>
			<author>
				<name><![CDATA[kvvaradha]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19348</uri>
			</author>
			<updated>2018-06-17T16:08:15Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=31924#p31924</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: How to replace an existing 'tab' /module]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=31923#p31923" />
			<content type="html"><![CDATA[<p>@notrinos,&nbsp; I tested it with the above code before I post here.&nbsp; Otherwise I will further add a sentence to &quot;test it on your own&quot;. It should work.&nbsp; Because while I was programming some other module I did it by mistake and it replaced inventory module that time.</p>]]></content>
			<author>
				<name><![CDATA[kvvaradha]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19348</uri>
			</author>
			<updated>2018-06-17T16:05:40Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=31923#p31923</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: How to replace an existing 'tab' /module]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=31922#p31922" />
			<content type="html"><![CDATA[<p>@kvvaradha, that works perfectly, thank you. Although I&#039;m not 100% sure how it does though!<br />Edit after a little thought - <br />So it is declared using the new ext &#039;class Kvcodes_app extends application&#039;<br />then construct the new extension but label it AP -&#039;parent::__construct(&quot;AP&quot;...<br />Then as @notrinos states although the module AP exists calling it again redirects to the new ext?<br />Is that right?</p><p>Now I know I was close last week...I think I tried redeclaring .... &#039;class AP_app extends applica...&#039; which (I now realise) obviously will not work.</p><p>But part of me still thinks apmuthu had something else in mind when he wrote:-<br /></p><div class="quotebox"><cite>Wiki wrote:</cite><blockquote><p>Extensions can provide another implementation of core FA area (which are always &lt;100). This way installed extension can e.g. override Purchases tab with another one implemented completely differently.</p></blockquote></div><p>Which to me means that the security code has to be re-defined...doesn&#039;t it?</p>]]></content>
			<author>
				<name><![CDATA[poncho1234]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19944</uri>
			</author>
			<updated>2018-06-17T14:27:34Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=31922#p31922</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: How to replace an existing 'tab' /module]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=31921#p31921" />
			<content type="html"><![CDATA[<p>@kvvaradha<br />Did you test your method ?<br />as I know function <strong>init()</strong> of class <strong>front_accounting</strong> calls all build-in modules before custom modules so the module name of AP (Purchases) will show before the Kvcodes module can change anything.</p>]]></content>
			<author>
				<name><![CDATA[notrinos]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=36772</uri>
			</author>
			<updated>2018-06-17T06:57:38Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=31921#p31921</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: How to replace an existing 'tab' /module]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=31920#p31920" />
			<content type="html"><![CDATA[<p>@poncho, I think you are complicating yourself for a simple thing.&nbsp; You wanted to replace the Tabs for example Purchase with your custom module of Purchase, right,&nbsp; &nbsp;</p><p>Anyhow you have a hook.php file which will inherit the application and create new constructor to create tab for your custom modules. Just use the exiting Slug,it will replace the existing with your module. </p><p>Here is my example code for you to understand it .</p><div class="codebox"><pre><code> 
class Kvcodes_app extends application{
    var $apps;
    function __construct()  {
      parent::__construct(&quot;AP&quot;, _($this-&gt;help_context = &quot;&amp;Kvcodes&quot;));
    }
}</code></pre></div><p>This will simply replace your purchase module with Kvcodes and here you have to add the further functions. to replace the links under the menu,</p>]]></content>
			<author>
				<name><![CDATA[kvvaradha]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19348</uri>
			</author>
			<updated>2018-06-17T06:25:47Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=31920#p31920</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: How to replace an existing 'tab' /module]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=31919#p31919" />
			<content type="html"><![CDATA[<p>I&#039;ve tried adding the security area again, but still appears as an additional menu item</p>]]></content>
			<author>
				<name><![CDATA[poncho1234]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19944</uri>
			</author>
			<updated>2018-06-16T18:37:54Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=31919#p31919</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[How to replace an existing 'tab' /module]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=31905#p31905" />
			<content type="html"><![CDATA[<p>Reading <a href="https://frontaccounting.com/fawiki/index.php?n=Help.AccessSetup">https://frontaccounting.com/fawiki/inde … ccessSetup</a> near the bottom states:-</p><div class="quotebox"><cite>Wiki wrote:</cite><blockquote><p>Extensions can provide another implementation of core FA area (which are always &lt;100). This way installed extension can e.g. override Purchases tab with another one implemented completely differently.</p></blockquote></div><p>How is this done exactly?</p><p>For example if I wanted to replace the &#039;Fixed assets&#039; tab with &#039;My New Extension&#039; tab</p><p>Or</p><p>Replace the menu item in Dimensions -&gt; &#039;Dimension Tags&#039; with &#039;My New Menu Item&#039;</p><p>I&#039;ve tried using the same security codes as the existing menu item, but it keeps appearing as a new menu item.</p>]]></content>
			<author>
				<name><![CDATA[poncho1234]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19944</uri>
			</author>
			<updated>2018-06-15T15:16:19Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=31905#p31905</id>
		</entry>
</feed>
