-
Notifications
You must be signed in to change notification settings - Fork 0
Configuring a Service
Once the Service is developed it needs to be configured and tested.
Navigate to the /conf folder and create a file called myservice.conf.xml.
The file do not have to be the name of the service since the configuration will specify what service is being used. It is thus possible to have different aliases of a specific service.
<?xml version="1.0" encoding="UTF-8"?><services>
<service name="print" primary="true">
<title>Home</title>
<description>MyService Configuration</description>
<layout id="main" node="article" />
<parameters>
<parameter name="view" value="blog" />
</parameters>
</service>
<service name="print">
<layout id="header" node="header" />
<parameters>
<parameter name="view" value="header" />
</parameters>
</service>
<service name="print">
<layout id="footer" node="footer" />
<parameters>
<parameter name="view" value="footer" />
</parameters>
</service>
</services>
To Test the service simply point your browser to http://your.domain/myservice
Fun thing to do. See if you can display different text for each layout node using the print service according to parameters passed to get. I.e. modify your service code
Installation and Configuration
Predefined Constants and Globals
Configuring a Service