Quick links: Content - sections - sub sections
Quick Search Advanced search

  [Opened] Config of the urls.xml file

Posted by pheromix on 04/06/2016 10:37

There are 6 modules in my project. So I want to know if this config is correct for the urls.xml file :

<?xml version="1.0" encoding="utf-8"?>
<urls xmlns="http://jelix.org/ns/urls/1.0">
    <entrypoint type="classic" name="index" default="true">
        <url pathinfo="/" module="srcs" action="default:index">

  [Opened] Config of the urls.xml file

Reply #1 Posted by laurentj on 06/09/2016 14:14


Yes, for the home page, it is ok.

If you don't want to specify all url for each methods of for each controller of your each module, you can just specify for each module:

<url module="foo"/>

But it will not produce "beautiful" url of course.

I'm currently working on the url engine in Jelix 1.7 : there won't anymore different url engine as plugin, and the remain one will be a merge between "basic_significant" and "significant". And it will be much simpler to configure the url mapping :-)

  1. Config of the urls.xml file