I have inherited a SuiteCRM install which I am now responsible as administrator for maintaining - I am thus unfamiliar with it’s history involving configuration options being changed etc.
We are trying to run a different sort of campaign to our usual ones, and we want to customise the text related to the opt-out link shown at the bottom of the template.
As far as I understand the process, this should be done by creating a custom opt-out tracker URL. This should be done from the tracker URL subpanel shown on the specific campaign’s DetailView. However on the DetailView I only have two subpanels visible; ProspectLists and EmailMarketing, there is no subpanel for Tracker URLs (which should be displaying by default as I understand it)
I have had a look through the admin section to try and find out why the subpanel is hidden, but to no avail.
In Studio, if I go to the Campaign module, and then Subpanels there is no Tracker URLs subpanel listed there.
Now, if I delve into the code and make use of a bit of grep, I have managed to find the following file:
{root}/custom/modules/Campaigns/Ext/Layoutdefs/layoutdefs.ext.php
and near the top of that file is the following line:
...
unset($layout_defs["Campaigns"]["subpanel_setup"]['tracked_urls']);
...
Which seemed to me that it would disable the subpanel I am after, and surely enough, if I comment out that line and save the file, the subpanel now appears in the DetailView of the specific campaign, and I am then able to create an opt-out tracker url, and embed it into an email template. Testing the opt-out functionality then works perfectly, no issues from this point onwards in the process.
However, I also noticed at the top of the file, a comment indicating the contents are auto-generated, and sure enough, if I perform a ‘Quick Repair & Rebuild’, my edits (commenting out the unset line above) are removed, and the subpanel then dissapears.
My question is, how do I ‘properly’ reenable the subpanel for the Campaign module without resorting to a temporary code fix in an auto-generated file please?