Actions

Talk

Public Survey Views: Difference between revisions

From LimeSurvey Manual

(Created page with "I would strongly encourage a structure as there exits in Drupal 7 (by default, without additional settings in configuration files): [I do not know Drupal 8 yet, this uses Twig...")
 
mNo edit summary
Line 11: Line 11:
* a user can define his own template, so he has to write all views himself
* a user can define his own template, so he has to write all views himself
* another user may define a new template based (called "my-template") on the default (in xml file: Base=default) and may also define three color variants (called "red", "green" and "blue"), each based on my-template by referring to that template in the xml file: Base=my-template
* another user may define a new template based (called "my-template") on the default (in xml file: Base=default) and may also define three color variants (called "red", "green" and "blue"), each based on my-template by referring to that template in the xml file: Base=my-template
http://themery.com/dgd7/theming/templates/override

Revision as of 15:42, 16 August 2016

I would strongly encourage a structure as there exits in Drupal 7 (by default, without additional settings in configuration files): [I do not know Drupal 8 yet, this uses Twig. I remember that Twig was also mentioned in the LimeSurvey community, but this seems very silent now]

  • base views are either in core (all of them at a clearly defined place) or in the base template under views (preferred by me, because then all theme files are together.
  • each template may either start from scratch (you then have to write all views) or rely on the core templates, with the possibility to override them
  • a template can also be a sub-template of a sub-template.

So for example:

  • in the default distribution there is the default template (in XLM file: Base=default)
  • in the default distribution there are also two sub-templates of the default template, this is indicated in the template xml file (Base=default)
  • a user can define his own template, so he has to write all views himself
  • another user may define a new template based (called "my-template") on the default (in xml file: Base=default) and may also define three color variants (called "red", "green" and "blue"), each based on my-template by referring to that template in the xml file: Base=my-template

http://themery.com/dgd7/theming/templates/override