Quick links: Content - sections - sub sections
EN FR
Quick Search Advanced search
 
Page

  [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">
        </url>
    </entrypoint>
</urls>

  [Opened] Config of the urls.xml file

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

Hi

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 :-)

 
Page
  1. Config of the urls.xml file