View Issue Details

This issue affects 1 person(s).
 12
IDProjectCategoryView StatusLast Update
07334Bug reportsSurvey editingpublic2018-02-16 15:53
Reporterottigerb Assigned ToLouisGac 
PrioritynormalSeveritypartial_block 
Status closedResolutionfixed 
Summary07334: redesign - template engine: {TAGS}
Description

Hi, your Head of Support (Marcel M.) told me, that you are planning to redesign the template engine. In this scenario I would recommend the following:

Current: In the current templates we are using a lot of {TAGS} like {NAVIGATOR}, {SAVE}, {SURVEYDESCRIPTION} and so on. Those {TAGS} contains some HTML/CSS Code too. From a template perspective – the template is unable to customize this specific code without touching system files.

Problem: I have tried to make a bootstrap theme optimized for mobiles. This template does look incomplete with the lack described above.
Recommendation: It would be nice, to let the theme control the look & feel of those {TAGS}.

Hope you will find a nice solution! Keep on going! Hope to have a nice bootstrapped mobile template soon.

If I can help you – give sing!
Greetings from Switzerland

TagsNo tags attached.
Bug heat12
Complete LimeSurvey version number (& build)130219
I will donate to the project if issue is resolvedNo
Browser
Database type & version-
Server OS (if known)-
Webserver software & version (if known)-
PHP Version-
Git branch / Pull Request URL

Users monitoring this issue

c_schmitz

Activities

Mazi

Mazi

2013-02-26 11:43

updater   ~24287

Sam, this ticket was created to discuss how to best deal with these placeholders when overworking the template engine. So please share your thoughts.

sammousa

sammousa

2013-02-26 12:13

reporter   ~24288

Hi ottiger,

The template engine we will be using is Twig. (It has already been implemented in the 2.2 branch).

Since Twig supports logical expressions, we are moving all rendering decisions to the template itself.

This will allow you to change almost any output created by limesurvey to suit your needs.

In the future, question objects will also use twig templates to render themselves and you will be able to overwrite these twig templates with your custom ones allowying you to change the appearance of individual questions at the most detailed level possible!

DenisChenu

DenisChenu

2013-02-26 14:33

developer   ~24289

LimeSurvey is not bootsrap ready.

Not for the css, it's not the problme (for this: just copy/paste/adapt some css from bootstrap : apply it to LS included class).

But for js: bootsrap use .on, included in jquery 1.7. Update to 1.8 fix this problem. For 1.9 : need some fix in admin part actually.

For template issue, what is needed, for example submit button:

survey-template/submit.pstl
else
global-template/submit.pstpl
else
last-plugin-with-submit-hook/submit.pstpl
else
template/default/submit.pstpl
else
application/default/submit.pstpl (or anything else)

sammousa

sammousa

2013-03-18 10:29

reporter   ~24759

We are currently on jquery 1.9

DenisChenu

DenisChenu

2013-03-18 10:54

developer   ~24762

Great, thank you sammousa :)

It's a discusion topic (for 2.1or2.2 i think) then:
With twig template, did you think plugin can change all public HTML part ? Did you think user template can change all public HTML part ?

Think we have to have a "global default twig" for all part, and replaced by plugin or user template .

Did you think it can be done and it's a good idea ?

ottigerb

ottigerb

2013-05-28 11:04

reporter   ~25401

jquery 1.9 - sounds great! Will try to tweak the template again - to make it as bootstrapped as possible!

Any progress on this: redesign - template engine?

LouisGac

LouisGac

2017-01-18 15:18

developer   ~42753

a lot of progress indeed:
https://github.com/LimeSurvey/LimeSurvey/tree/twig-layout

LouisGac

LouisGac

2017-04-25 11:51

developer   ~43443

Twigged

Issue History

Date Modified Username Field Change
2013-02-26 10:53 ottigerb New Issue
2013-02-26 11:43 Mazi Assigned To => sammousa
2013-02-26 11:43 Mazi Status new => assigned
2013-02-26 11:43 Mazi Note Added: 24287
2013-02-26 11:44 Mazi Issue Monitored: c_schmitz
2013-02-26 11:44 Mazi Issue Monitored: DenisChenu
2013-02-26 12:13 sammousa Note Added: 24288
2013-02-26 14:33 DenisChenu Note Added: 24289
2013-03-05 11:18 c_schmitz Project Bug reports => @10@
2013-03-18 10:29 sammousa Note Added: 24759
2013-03-18 10:54 DenisChenu Note Added: 24762
2013-05-28 11:04 ottigerb Note Added: 25401
2017-01-18 14:53 c_schmitz Assigned To sammousa => LouisGac
2017-01-18 14:53 c_schmitz Product Version 2.00+ =>
2017-01-18 15:18 LouisGac Note Added: 42753
2017-01-18 15:26 DenisChenu Issue End Monitor: DenisChenu
2017-04-25 11:51 LouisGac Status assigned => resolved
2017-04-25 11:51 LouisGac Resolution open => fixed
2017-04-25 11:51 LouisGac Note Added: 43443
2018-02-16 15:53 c_schmitz Status resolved => closed
2019-11-01 17:25 c_schmitz Category Survey design => Survey editing