<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — How to replace an existing 'tab' /module]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=7565</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=7565&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in How to replace an existing 'tab' /module.]]></description>
		<lastBuildDate>Sun, 17 Jun 2018 16:37:19 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: How to replace an existing 'tab' /module]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=31926#p31926</link>
			<description><![CDATA[<p>@kvvaradha you&#039;re right I&#039;m over thinking it.</p><p>Thanks for all your help</p>]]></description>
			<author><![CDATA[null@example.com (poncho1234)]]></author>
			<pubDate>Sun, 17 Jun 2018 16:37:19 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=31926#p31926</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to replace an existing 'tab' /module]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=31925#p31925</link>
			<description><![CDATA[<p>Yes, sorry I misunderstood your point replacing the whole module not the module name only</p>]]></description>
			<author><![CDATA[null@example.com (notrinos)]]></author>
			<pubDate>Sun, 17 Jun 2018 16:13:47 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=31925#p31925</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to replace an existing 'tab' /module]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=31924#p31924</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (kvvaradha)]]></author>
			<pubDate>Sun, 17 Jun 2018 16:08:15 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=31924#p31924</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to replace an existing 'tab' /module]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=31923#p31923</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (kvvaradha)]]></author>
			<pubDate>Sun, 17 Jun 2018 16:05:40 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=31923#p31923</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to replace an existing 'tab' /module]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=31922#p31922</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (poncho1234)]]></author>
			<pubDate>Sun, 17 Jun 2018 14:27:34 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=31922#p31922</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to replace an existing 'tab' /module]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=31921#p31921</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (notrinos)]]></author>
			<pubDate>Sun, 17 Jun 2018 06:57:38 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=31921#p31921</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to replace an existing 'tab' /module]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=31920#p31920</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (kvvaradha)]]></author>
			<pubDate>Sun, 17 Jun 2018 06:25:47 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=31920#p31920</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to replace an existing 'tab' /module]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=31919#p31919</link>
			<description><![CDATA[<p>I&#039;ve tried adding the security area again, but still appears as an additional menu item</p>]]></description>
			<author><![CDATA[null@example.com (poncho1234)]]></author>
			<pubDate>Sat, 16 Jun 2018 18:37:54 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=31919#p31919</guid>
		</item>
		<item>
			<title><![CDATA[How to replace an existing 'tab' /module]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=31905#p31905</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (poncho1234)]]></author>
			<pubDate>Fri, 15 Jun 2018 15:16:19 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=31905#p31905</guid>
		</item>
	</channel>
</rss>
