View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
13536 | Feature requests | Plugins | public | 2018-03-26 17:23 | 2018-08-07 17:01 |
Reporter | DenisChenu | Assigned To | DenisChenu | ||
Priority | none | Severity | feature | ||
Status | closed | Resolution | fixed | ||
Summary | 13536: Unable to use twig file from Plugin | ||||
Description | Previously : we can create view in plugin | ||||
Additional Information | Exemple here : https://gitlab.com/SondagesPro/registerQuick/blob/master/views/registerForm.php Needed to allow to show or not email + email required or not OK : i can create own extended template, but how this template can be used by the plugin ( ? forced) and if user choose another template ? When 3.0 come : i think i can register new twig file , if user template don't have it : get the default Maybe : allow plugin to extend template ? | ||||
Tags | No tags attached. | ||||
Bug heat | 6 | ||||
Story point estimate | |||||
Users affected % | |||||
related to | 13538 | closed | DenisChenu | Bug reports | Unable to update registerForm with beforeRegisterForm |
Exemple here: |
|
sure could be easy to do |
|
If i remind i spoke for "core twig" file ? But what happen when another user create a mother/grand-mother plugin ? Maybe move vanilla to "If mother/grand-mother AND grand-grand-mother" don't have this twig file : get it in vanilla ? |
|
have a look to the question template rendering process: it doesn't depend on survey themes, nor on inheritance system |
|
but maybe you want an inheritance system for plugin? |
|
Yes : there are a way for Question, but plugin can not use Question ? Maybe allow another alias in renderTemplateFromFile ? Question do : get it in current template and mother template, if don't have => get from Question::Template get core views, die if no view But all other part do : get it in current template and mother template, die if no file I like to have a solution for any file (even if not by plugin) For example : we add in core a new System : didn't know , say "Last Correction before Validate" using twig view in vanilla. If User template are no a child of Vanilla : what happen ? Have a a renderPluginView is great, but didn't fix "When core add file to vanilla : what happen to other" ? |
|
"I like to have a solution for any file (even if not by plugin)" sure |
|
\o/ |
|
Release 3.14.2+180807 |
|
Date Modified | Username | Field | Change |
---|---|---|---|
2018-03-26 17:23 | DenisChenu | New Issue | |
2018-03-26 17:26 | DenisChenu | Note Added: 47217 | |
2018-03-26 17:48 |
|
Note Added: 47219 | |
2018-03-26 17:52 | DenisChenu | Note Added: 47220 | |
2018-03-26 17:55 |
|
Note Added: 47221 | |
2018-03-26 18:08 |
|
Note Added: 47222 | |
2018-03-26 18:34 | DenisChenu | Note Added: 47223 | |
2018-03-26 19:57 | DenisChenu | Relationship added | related to 13538 |
2018-03-27 11:01 |
|
Note Added: 47226 | |
2018-06-18 12:30 | DenisChenu | Assigned To | => DenisChenu |
2018-06-18 12:30 | DenisChenu | Status | new => resolved |
2018-06-18 12:30 | DenisChenu | Resolution | open => fixed |
2018-06-18 12:30 | DenisChenu | Note Added: 48206 | |
2018-06-18 12:35 |
|
Note Added: 48207 | |
2018-08-07 17:01 |
|
Status | resolved => closed |
2018-08-07 17:01 |
|
Note Added: 48735 |