Timeline for How do I assign a template to the user edit form?
Current License: CC BY-SA 3.0
9 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
May 21, 2017 at 10:26 | vote | accept | Tyler Durden | ||
May 21, 2017 at 10:25 | answer | added | 4uk4 | timeline score: 3 | |
May 21, 2017 at 10:16 | comment | added | Tyler Durden | Cool, write it in the answers so I can accept it. Could you also add how to make the twig template available to my theme please? | |
May 21, 2017 at 10:14 | comment | added | 4uk4 | you are asking for a better solution, this is the solution, you need only theme suggestions if you want to select templates depending on extra information, which you don't have at the moment | |
May 21, 2017 at 10:09 | history | edited | Tyler Durden | CC BY-SA 3.0 |
added 181 characters in body
|
May 21, 2017 at 10:08 | comment | added | Tyler Durden | Suggestions was my first option while googling. Then I added $form['#theme'] = ['bs_user_form']; but some how it was conflicting with suggestions. I removed suggestions and got it working. Thanks | |
May 21, 2017 at 9:51 | comment | added | 4uk4 |
why you need theme suggestions? you don't add any new information. you could simply use bs_user_form.html.twig . if you alter theme suggestions, keep bs_user_form and append the extra information at the end of the name with a double underscore.
|
|
May 20, 2017 at 20:24 | history | edited | avpaderno♦ | CC BY-SA 3.0 |
removed tags from the title
|
May 20, 2017 at 20:00 | history | asked | Tyler Durden | CC BY-SA 3.0 |