Commit 4b337b28 authored by Jerome Chauveau's avatar Jerome Chauveau
Browse files

Merge branch 'ag/layout' into 'dev'

ajout d'une condition pour le layout

See merge request pdn-certic/MaX!50
parents faa8b072 e66de713
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -317,11 +317,12 @@ declare function max.util:getProjectLayoutTemplate($projectId) {
    return
        if(file:exists($customTemplate))
        then $customTemplate
        else if (doc($max.config:CONFIGURATION_FILE)//edition[@xml:id=$projectId]/template)
        then file:parent(file:parent(static-base-uri())) || "editions/" || doc($max.config:CONFIGURATION_FILE)//edition[@xml:id=$projectId]/template/@file 
        else "../ui/templates/"||max.config:getXMLFormat($projectId) ||".html"
};



(:
Returns project's default XSLT to apply on text
:)