View Issue Details

IDProjectCategoryView StatusLast Update
12425Development Templatespublic2017-05-24 16:41
Reportertpartner Assigned ToLouisGac  
Status assignedResolutionopen 
Product Version3.x 
Target Version3.xFixed in Version 
Summary12425: Need to define path to template directory in <filename> tags of config.xml

When extending a template, in the "replace" attributes of the <filename> tags, we need to insert the relative path from the /templates directory to the upload/templates/templateName/ directory - see attached screenshot and lines 32, 35 and 44 of the attached config.xml.txt.

Is there a way to have that path automatically detected if the config file is in a custom template (in upload/templates/)?

TagsNo tags attached.




2017-05-24 16:41


capture-2.png (24,504 bytes)
capture-2.png (24,504 bytes)
config.xml.txt (2,172 bytes)
<?xml version="1.0" encoding="UTF-8"?>
    Default configuration for the template.
    In future versions of LimeSurvey, it will be used to fill a template table,
    and to give user control on template configuration (like variables to use to render the questions, banners, background, etc.)

    <!-- Those metadata will be displayed in the template configuration page. They are not used for now. -->
        <name>Default Extended 1</name>
        <author>Louis-S├ębastien Gac Artigas</author>
        <copyright>Copyright (C) 2005 - 2016 LimeSurvey Gmbh, Inc. All rights reserved.</copyright>
        <license>GNU General Public License version 2 or later</license>
        <description>A custom extension of the Default LimeSurvey Template.</description>
        <last_update>2017-05-24 00:00:04</last_update>

        Here the list of the css/js files to load.
        Any file here will be loaded via the asset manager (when in config.php debug = 0)
            <filename replace="../upload/templates/default_extended_1/css/template.css">css/template.css</filename>
            <filename replace="../upload/templates/default_extended_1/scripts/template.js">scripts/template.js</filename>

    <!-- Here datas about how LimeSurvey should load the template -->
        <!-- If empty, bootstrap css/js files will not be loaded. In the future, we may have more engines, like foundation -->
            <css replace="../upload/templates/default_extended_1/css/bootstrap.css">css/bootstrap.css</css>

        <!-- Path of the twig files -->
config.xml.txt (2,172 bytes)

Issue History

Date Modified Username Field Change
2017-05-24 16:41 tpartner New Issue
2017-05-24 16:41 tpartner Status new => assigned
2017-05-24 16:41 tpartner Assigned To => LouisGac
2017-05-24 16:41 tpartner File Added: capture-2.png
2017-05-24 16:41 tpartner File Added: config.xml.txt