| Help: Mod Manager |
|
Overview The TNG 12 version of the Mod Manager is based on the Mod Manager originally developed by Brian McFadyen, updated by Sean Schwoere to work with the Joomla TNG Component, and updated in TNG 10.0.3 and 10.1 to provide a more integrated way to install, remove and manage modifications to the TNG software package that have been coded to work with this manager. The new Mod Manager provides a single line summary of the mod status which can be expanded to view the complete Description and errors when applicable. The Affected Files List can be displayed by hovering over the + plus sign in the Files column. You can also use the Expand All inner menu to expand all entries to show the status like the old Mod Manager used to do. The Expand All option is helpful when filtering the list by Partially Installed or Cannot Install so you can see what the errors are. The Mod Manager is connected into the TNG Administrative page for easy access. The Mod Manager adds the following folders to TNG:
The Mod List tab now combines the previous Mod List and Batch Updates that was added by Rick Bisbee in TNG 10.0.3 to provide the capability to execute the same action against multiple mods. The Description and extended status can be displayed by clicking the right arrow in the Status column or anywhere on the line. Hovering over the line will high light the line to make it easier to select the status to expand. Hovering over the + plus sign in the Files column will display the Affected Files list, that is the files modified, created, and copied by this mod. TNG v12 adds the following changes if the Show Other Developer Tools option is enabled:
The View Log tab was added by Ken Roy in TNG 10.0.3 to display the Mod Manager Log which is now split from the Admin Log. The Mod Manager log is the reformated log from the Mod Manager created by Rick Bisbee and Robin Richmond in TNG 10.03 for easier readability of the actions. The messages were also greatly simplified. The Options tab is a modification of the one added by Ken Roy in TNG 10.0.3 to allow changing some of the execution behavior of the Mod Manager. The Analyze TNG Files tab is an optional tab that can be enabled in the Options screen that allows you to select a TNG file and view which mods change that specific TNG file. The View Parser Table tab is an optional tab that can be enabled in the Options screen by enabling the Show Other Development Tools that allows you to view how the mod is parsed by the Mod Manager. The Recommended Changes tab is an optional tab that can be enabled in the Options screen that allows you to update your cust_text.php files if you did not do so as part of the TNG upgrade readme. Additional information can be found in the Mod Manager article and in the TNG Mod Manager category of articles on the TNG Wiki. You can view the Mod Manager article in TNG Wiki to see what enhancements were made in TNG v12. |
|
Operation The Mod Manager examines the mods folder and reads each cfg file that it finds. The cfg files are directive files that describe the mod, the files and locations to be modified, and the code that is used in the modification. The Mod Manager checks the following:
|
|
Status The Mod Manager returns the following status:
For examples of the Mod Manager Status screens and how to interpret the various statuses, see Mod Manager - Interpreting Status |
|
Mod Syntax The Mod Manager syntax basically includes: Header section that includes
Target sections that specify the file that is the target of the change and includes the following directives. A note can now be added to the target.
New File directives that create the file when the mod is installed Copy File directives that copy the specified file to the TNG root (%copyfile) or to a subfolder (%copyfile2) For detailed information on the Mod Manager Syntax, see Mod Manager Syntax |
|
Config Files Installing ModsThe TNG Wiki provides information on Installing Config Files to install the TNG mods. Interpreting StatusThe TNG Wiki provides information on Interpreting Status. Config File SyntaxThe TNG Wiki provides information on the Mod Manager Syntax. Creating Config FilesThe TNG Wiki provides information for the mod developers on the Creating Config Files. |
|
Batch Operations The Batch Operations function introduced in TNG 10.0.3 as a Batch Updates tab is now combined in the Mod List and allows specific actions on multiple mods using the Select Filter. You must choose from the status filter list pull down and click Go to display the available controls for the specific status selected. Delete is only available for the Partially Installed status if you enable the Option, which we recommend that you leave as No, except for when you need to delete multiple mods in the Partially Installed status, such as a prior version of the same mod. Likewise there is a Delete Installed mods option that will allow deleting installed mods without first uninstalling them. This option was added to allow deleting previous versions of the same mod, if you forgot to delete them before installing the new version. Here again it is recommend that you leave the option as No and just enable it when needed. The Delete button is only shown on the Select list if both allow delete options are enabled. Caution:You should only use Batch Operations if you have a good backup of your website and can quickly restore it if the batch operations renders your site inoperable, which can easily happen if you do not delete previous versions of the mods. Note that it is recommended that you batch Uninstall all your Installed mods and then batch Clean Up all Partially Installed mods before doing a TNG upgrade. The Select Filter options are:
|
|
Options The Options allows you to specify some of the Mod Manager behavior for the Mod Manager Log Options
Display Settings Options
Other Options
|
|
Analyze TNG Files Created by Rick Bisbee this tool located under the Analyze TNG Files tab was previously provided as a mod. This tool lets developers examine mods to see precisely how they interact with each other. Two mods changing the same block of code almost always results in Mod Manager errors. You must enable the Show Analyzer TNG Files tab by setting the Options to Yes if want the Analyze TNG Files tab to be displayed. The analyzer works by examining every mod in the mods folder and cataloging which target files and which blocks of code each one modifies. It then lists the affected file names in the left hand column. Selecting one of those target files displays a list on the right showing all the mods that change it. Each mod shown on the right has a link to open a section of the page displaying the actual modifications made by the Mod Manager Config file. A user can compare changes to the target file to see where potential conflicts might be. This is helpful not only to find conflicts between two mods but also to know which mods need to be cleaned up and re-installed after replacing the given target file. The TNG Wiki provides additional information for the mod developers on Using the Mod Analyzer. |
|
View Parser Table This tool is designed mainly for developers. The Parser Table shows how the Mod Manager parsed the mod config file (.cfg) for processing its components into a table, which is then passed to other mod manager scripts for further processing. If there is a problem with a mod, the first place to check is the parse table to see if all the mod's directives and arguments are being captured properly. You can use this tab to select a mod from a list whose table you want to view, or alternatively you can click on the mod name in the Mod List to view the parse table for that mod, if you enabled the Show Other Developer Tools option. Displaying this tab is optional. To use it select 'Display Settings/Show Other Developer tools' on the options tab. If the tab option is turned off, the link on the listing page will also be disabled. |
|
Recommended Changes The Recommended Changes tab is an optional tab that can be enabled in the Options screen that allows you to update your cust_text.php files if you did not do so as part of the TNG upgrade readme. It is intended to be used if a mod cannot be installed because it is looking for the new comment string at the top of the cust_text.php files starting with TNG v12. The option will be turned off when you click the Update button to change your existing cust_text.php files. The code checks whether the files have previously been updated. |