-
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>Default Home 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>
Fun thing to do. See if you can display different text using the print service according to paramaters passed to get.
Installation and Configuration
Predefined Constants and Globals
Configuring a Service