Timeline for How to include twig in the editor? e.g. Shortcodes for dynamic content
Current License: CC BY-SA 4.0
3 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Dec 21, 2018 at 9:39 | comment | added | Laurence Cope | Wordpress has shortcodes which are great for this purpose and easy to setup. It would allow us to program in PHP code without having to develop a plugin which has now become complex in Craft 3. Plugin would also be over top just to list some entry titles and links for example in the middle of content. So a simplistic way to add dynamic content, and for the customer to manage the content, is the best. So thanks a lot, if this works it should ensure the simplicity of it. I will like to try to include a template in that code though to break out the coding into an includes file. | |
Dec 21, 2018 at 9:38 | comment | added | Laurence Cope | that sounds good will give it a try thanks. Reason for not using Matrix -> When we build websites one of our goals is to make administering it as easy as possible. Once you add a matrix field to manage what should be one block of content, the admin interface starts to get too complex for simple web administrators. You get an entire textblock dedicated to a small sentence. It really starts to become too complex/cluttered for what really should be a simple task of inserting dynamic content in the middle of some paragraphs. | |
Dec 20, 2018 at 12:31 | history | answered | James Smith | CC BY-SA 4.0 |