You need to be logged in to post in the forum - Log In

An active JCE Pro Subscription is required to post in the forum - Buy a Subscription

Support is currently Offline

Official support hours
Monday to Friday
09:00 - 17:00 Europe/London (BST)

Please create a new Ticket and we will get back to you as soon as we can.

#102096 Modifying Installation Package

Posted in ‘Editor’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Latest post by Ryan on Friday, 06 December 2019 10:31 GMT

dmwalk
The new release 2.8.1 does not change the JCE theme to Retina. We manage many sites and use Watchful.li to update them. We would like to modify the installation package to make Retina the default. What would we modify in the package so that we could install the modified package on all our sites with the Retina theme.

A second question. We would also like to be able to modify the installation package with our own profile. Where could this be done?

Thanks.

Ryan
The new release 2.8.1 does not change the JCE theme to Retina.


This is intentional. It would not have been a good idea to force the Retina theme on thousands of users who were not familiar with it, therefore it was only set as the default on updates from JCE 2.8.0 to 2.8.1 and for new installs of JCE 2.8.x

We would like to modify the installation package to make Retina the default. What would we modify in the package so that we could install the modified package on all our sites with the Retina theme.


As you would really only have to do this once, you can modify the install.pkg.php file in the package to set Retina as the default theme.

For example, change the following lines - https://github.com/widgetfactory/jce/blob/master/administrator/components/com_jce/install.pkg.php#L281-L348 - with this - https://gist.github.com/ryandemmer/92209c15f6da6beaee6a8ab75e177a71

Please note: the install.pkg.php file you need to modify is in the root of the zip package, not in the adminstrator folder as in the the link above.



Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

Ryan
I have not tested the changes above, so I suggest you do so on 1 site before applying to all!

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.