Difference between revisions of "SAC:Setup OCS Custom Additions"

From OSGeo
Jump to navigation Jump to search
m (stub page)
 
m (startup commands)
Line 6: Line 6:
  
 
-------
 
-------
 +
 +
== Starting Template ==
 +
To keep it as simple as possible I will take the existing '''Accommodations''' functions, make a copy and modify them from there.  (At time of writing this was only available in CVS for upcoming OCS 2.2 release)  My new functions will be for presenting a link to '''Transportation''' items in the sidebar menu.
 +
 +
cd OCSROOT/classes/manager/form
 +
cp AccommodationSettingsForm.inc.php TransportationSettingsForm.inc.php
 +
 +
Replace all references to Accommodations and accommodations with Transportation:
 +
 +
sed -i .bak 's/Accommodation/Transportation/g' TransportationSettingsForm.inc.php
 +
sed -i .bak 's/accommodation/transportation/g' TransportationSettingsForm.inc.php
 +
 +
  
 
[[Category:Infrastructure]]
 
[[Category:Infrastructure]]
 
[[Category:OCS]]
 
[[Category:OCS]]

Revision as of 13:54, 8 February 2008

For capturing some notes about trying to create a custom new set of forms for use in OCS Open Conference System. These tests are done on me local PC but will be merged into OSGeo code if/when ready.

These improvements attempt to address some of the system needs discussed in FOSS4G2008 Committee Issues

This is also a journal chronicling the adaptations.


Starting Template

To keep it as simple as possible I will take the existing Accommodations functions, make a copy and modify them from there. (At time of writing this was only available in CVS for upcoming OCS 2.2 release) My new functions will be for presenting a link to Transportation items in the sidebar menu.

cd OCSROOT/classes/manager/form
cp AccommodationSettingsForm.inc.php TransportationSettingsForm.inc.php

Replace all references to Accommodations and accommodations with Transportation:

sed -i .bak 's/Accommodation/Transportation/g' TransportationSettingsForm.inc.php
sed -i .bak 's/accommodation/transportation/g' TransportationSettingsForm.inc.php