Koozali.org: home of the SME Server
Obsolete Releases => SME Server 7.x => Topic started by: 14 on August 27, 2008, 06:21:20 PM
-
The default Server Manager home page says there is NO support for SME
I would like to simply add a paragraph / image with text to say the customer should
contact my company for support... is this possible
I don't want to have to do this every time there is an upgrade....
We normally stick a big label with support info on the Box but it would be nice
to add a box / text / graphics on the home page
-
The default Server Manager home page says there is NO support for SME
I would like to simply add a paragraph / image with text to say the customer should
contact my company for support... is this possible
I don't want to have to do this every time there is an upgrade....
We normally stick a big label with support info on the Box but it would be nice
to add a box / text / graphics on the home page
That is not possible without modifying the source. You will have to modify core packages for that (every time an update to this package is done AFAIK).
-
This might work. Try it on a test server and report your results.
Create a templates-custom directory. (Substitute your locale)
# mkdir -p /etc/e-smith/templates-custom/etc/e-smith/locale/en-us/etc/e-smith/web/functions
Copy and edit the single source file.
# cp /etc/e-smith/locale/en-us/etc/e-smith/web/functions/initial.cgi /etc/e-smith/templates-custom/etc/e-smith/locale/en-us/etc/e-smith/web/functions
# nano /etc/e-smith/templates-custom/etc/e-smith/locale/en-us/etc/e-smith/web/functions/initial.cgi
Update the post-upgrade event templates2expand list
# mkdir -p /etc/e-smith/events/post-upgrade/templates2expand/etc/e-smith/locale/en-us/etc/e-smith/web/functions
# touch /etc/e-smith/events/post-upgrade/templates2expand/etc/e-smith/locale/en-us/etc/e-smith/web/functions/initial.cgi
Test
# signal-event post-upgrade; signal-event reboot
Darrell
-
This might work. Try it on a test server and report your results.
Create a templates-custom directory. (Substitute your locale)
# mkdir -p /etc/e-smith/templates-custom/etc/e-smith/locale/en-us/etc/e-smith/web/functions
Copy and edit the single source file.
# cp /etc/e-smith/locale/en-us/etc/e-smith/web/functions/initial.cgi /etc/e-smith/templates-custom/etc/e-smith/locale/en-us/etc/e-smith/web/functions
# nano /etc/e-smith/templates-custom/etc/e-smith/locale/en-us/etc/e-smith/web/functions/initial.cgi
Update the post-upgrade event templates2expand list
# mkdir -p /etc/e-smith/events/post-upgrade/templates2expand/etc/e-smith/locale/en-us/etc/e-smith/web/functions
# touch /etc/e-smith/events/post-upgrade/templates2expand/etc/e-smith/locale/en-us/etc/e-smith/web/functions/initial.cgi
Test
# signal-event post-upgrade; signal-event reboot
Darrell
I doubt if that is what you really want as on updates you need to manually port all the updates or you will have to do this process all over again. Perhaps the best thing to get this implemented properly for the future is to add this as a New Feature Request in the bugtracker.
I also doubt that this will work, as I am not sure if the template engine is capable of parsing these files (properly), but that is something that will become clear if you try this, preferably on a test server.
-
I also doubt that this will work,
Worked just fine for me. Hence my post showing how truly easy this is to accomplish. :)
Darrell
-
Worked just fine for me. Hence my post showing how truly easy this is to accomplish. :)
But I guess it will still require the porting of locale strings when they change, or am I wrong there as well?
-
Take a look for yourself. This is just too simple. It requires templating/editing only one file.