Dr.CustUmz
02-20-2016, 06:46 PM
I am trying to make all of my products templates fall under one group. I do this by using these lines of codes in all of my products:
<plugin active="1" executionorder="5">
<title>Dirt RIF CustUmz Template Group</title>
<hookname>template_groups</hookname>
<phpcode><![CDATA[$only['drc_'] = $vbphrase['dirt_rif_custumz'];]]></phpcode>
</plugin>
<phrasetype name="Control Panel Global" fieldname="cpglobal">
<phrase name="dirt_rif_custumz" date="0" username="DrCustUmz" version="1.2"><![CDATA[Dirt RIF CustUmz]]></phrase>
</phrasetype>
but when i uninstall one product it breaks the template group by what i believe its doing is removing the phrase.
is there another way of accomplishing this other than they method i am trying to use?
<plugin active="1" executionorder="5">
<title>Dirt RIF CustUmz Template Group</title>
<hookname>template_groups</hookname>
<phpcode><![CDATA[$only['drc_'] = $vbphrase['dirt_rif_custumz'];]]></phpcode>
</plugin>
<phrasetype name="Control Panel Global" fieldname="cpglobal">
<phrase name="dirt_rif_custumz" date="0" username="DrCustUmz" version="1.2"><![CDATA[Dirt RIF CustUmz]]></phrase>
</phrasetype>
but when i uninstall one product it breaks the template group by what i believe its doing is removing the phrase.
is there another way of accomplishing this other than they method i am trying to use?