| 54 | | If you have the stable version of symfony, and you want to try our test module, you need to do: |
|---|
| 55 | | {{{ |
|---|
| 56 | | ln -s plugins/sfOpenOfficePlugin/modules/sfOpenOffice apps/aplication/modules/sfOpenOffice |
|---|
| 57 | | }}} |
|---|
| 58 | | Check this ticket to see why. |
|---|
| 59 | | |
|---|
| 60 | | In your global app.yml, you should add the following parameters: |
|---|
| 61 | | {{{ |
|---|
| 62 | | all: |
|---|
| 63 | | sfOpenOfficePlugin: |
|---|
| 64 | | ooffice_cmd: /Applications/OpenOffice.app/Contents/MacOS/program/soffice |
|---|
| 65 | | temp_dir: '/tmp' |
|---|
| 66 | | unzip_cmd: 'unzip -d' |
|---|
| 67 | | }}} |
|---|
| 68 | | |
|---|
| 69 | | To create your first dynamic template, you should use our task: |
|---|
| 70 | | {{{ |
|---|
| 71 | | symfony ooffice-create-document frontend sfOpenOffice test.odt |
|---|
| 72 | | }}} |
|---|
| 73 | | |
|---|
| 74 | | === Linux === |
|---|
| 75 | | |
|---|
| 76 | | In order to setup correctly !OpenOffice.org, you need to activate the license. We suggest that you run OpenOffice in X with the user apache. |
|---|
| 77 | | |
|---|
| 78 | | Change to the apache user (here apache): |
|---|
| 79 | | |
|---|
| 80 | | {{{ |
|---|
| 81 | | sudo su apache |
|---|
| 82 | | }}} |
|---|
| 83 | | |
|---|
| 84 | | If you don't have possibility to run X, use a vncserver or Xvnc. |
|---|
| 85 | | {{{ |
|---|
| 86 | | vncserver :9 -nohttpd -rfbport 5901 |
|---|
| 87 | | }}} |
|---|
| 88 | | |
|---|
| 89 | | Connect to remote host with a vnc client |
|---|
| 90 | | {{{ |
|---|
| 91 | | vnc host.com:5901 |
|---|
| 92 | | }}} |
|---|
| 93 | | |
|---|
| 94 | | Then, just run !OpenOffice.org in display 9 |
|---|
| 95 | | {{{ |
|---|
| 96 | | $PATH_TO_OOFICE_BIN_DIR/soffice -display :9 |
|---|
| 97 | | }}} |
|---|
| 98 | | |
|---|
| 99 | | A license agreement dialog should appear. Proceed with the installation. |
|---|
| 100 | | |
|---|
| 101 | | === Windows === |
|---|