MirrorINI

UNIX name Owner Status
mirror_ini Arne Bakkebø stable
Version Compatible with
1.0 4 (should also work on earlier versions)
For sites with more than one translation, most of the siteaccess ini
files must be copied between the different siteaccesses. MirrorINI
does this for you. Edit one siteaccess ini file, run MirrorINI
and the changes in the ini file will be copied to the other
siteaccesses.

o Installing MirrorINI extension

Extract extension to the extension/mirror_ini/ directory.

Edit settings/override/site.ini.append.php and register the similar siteaccesses like this:
[MirrorINI]
MirroredSiteAccessList[]
MirroredSiteAccessList[]=first_siteaccess
MirroredSiteAccessList[]=second_siteaccess
...

Edit all the ini files in siteaccess settings that have unique parts.
Wrap the unique parts with the following markers:
# <<< Mirror INI start
<unique settings for this siteaccess>
# <<< Mirror INI end

MirrorINI will ignore any parts of the ini files that are wrapped with these markers.

o Using the MirrorINI extension

php extension/mirror_ini/bin/mirror_ini.php --siteaccess=<siteaccess> [--file=<ini filename>] [--nobackup] [--help]

--siteaccess (-s) : Master siteaccess, the settings in this siteaccess are forced on the others
--file (-f) : Specify a single ini file to mirror between the siteaccesses (optional)
--nobackup : Does not create a backup file when editing ini files. All changes are irreversible! (optional)

If --nobackup parameter is not specified, the old content will be
copied to a new file called <ini-file>.old. Next time MirrorINI
need to update the same ini file, this backup file will be overwritten
with a new backup.

No news yet.

This project has no reviews yet. Be the first one to review it!

No forum messages yet.