Commit e66de713 authored by Anne Goloubkoff-Duponchel's avatar Anne Goloubkoff-Duponchel Committed by Jerome Chauveau
Browse files

ajout d'une condition pour le layout

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