Koozali.org: home of the SME Server

Add Support information to Server Manager home page

Offline 14

  • 10
  • +0/-0
Add Support information to Server Manager home page
« 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

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Add Support information to Server Manager home page
« Reply #1 on: August 27, 2008, 09:09:28 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
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).
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline dmay

  • *
  • 450
  • +0/-0
    • http://myezserver.com
Re: Add Support information to Server Manager home page
« Reply #2 on: August 28, 2008, 04:53:01 PM »
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

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Add Support information to Server Manager home page
« Reply #3 on: August 28, 2008, 05:47:58 PM »
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.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline dmay

  • *
  • 450
  • +0/-0
    • http://myezserver.com
Re: Add Support information to Server Manager home page
« Reply #4 on: August 28, 2008, 11:07:37 PM »
I also doubt that this will work,
Worked just fine for me. Hence my post showing how truly easy this is to accomplish. :)

Darrell

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Add Support information to Server Manager home page
« Reply #5 on: August 28, 2008, 11:17:47 PM »
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?
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline dmay

  • *
  • 450
  • +0/-0
    • http://myezserver.com
Re: Add Support information to Server Manager home page
« Reply #6 on: August 29, 2008, 03:49:08 AM »
Take a look for yourself. This is just too simple. It requires templating/editing only one file.