unlcms / tims Goto Github PK
View Code? Open in Web Editor NEWDrupal module to create Twig templates in the browser
License: GNU General Public License v2.0
Drupal module to create Twig templates in the browser
License: GNU General Public License v2.0
example:
{% for person in view.result %}
{{ person.field_field_job_title }}
{% endfor %}
Current dump of a file field only provides the file URI with no relative/absolute path to a file. It will be great if the file_URL() method can be added so that we can generate URLs from a given URI
see
I'm successfully able to print {{title} but {{content}}, {{ content.body }} print out "Array" with notice:
Notice: Array to string conversion in __TwigTemplate_c72a677326fc8fe35a3f35b72d19294c->doDisplay() (line 32 of /Library/WebServer/Documents/workspace/drupalcore/sites/all/libraries/Twig/lib/Twig/Environment.php(321) : eval()'d code).
A typical node, say a basic page has a theme_hook_suggestions array that looks like:
node__page
node__26
There isn't an ability to create a "node" template like node.tpl.php
https://drupal.org/project/template_picker
Looks like it provides a template_picker_template_options hook so TIMS templates could show up in the template_picker select box on the node edit page.
Add Drupal configuration page for admin to restrict access to certain additional functions like file_get_contents and views_embed_view
Using php 5.3.8 installation errors out on
$theme_registry_array = &drupal_static('theme_get_registry')[1];
Parse error: syntax error, unexpected '['
Instead of naming with the template suggestion convention (underscores), name with the file convention (hyphens) and convert.
This will match up to theming documentation much better as most (all?) documentation is based around creating template files.
Problem is a double encoded ampersand.
Remove this template that bypasses using render() as a quick fix: http://unlcms-staging.unl.edu/fpa/admin/structure/tims/field__field_list_section_title/edit
See "FILM & NEW MEDIA" section of http://unlcms-staging.unl.edu/fpa/theatre-and-film/faculty-staff for the double encoded '&'
That field is now passing through http://unlcms.unl.edu/fpa/admin/structure/tims/field/edit which should spit it out with "raw"
Creating a 'block__content' template wipes out the content on the admin side (admin pages must not have the same sort of 'content' render away)
The ACE editor has support for TWIG.
Ideally one would be able to copy the contents of a twig file and paste into this module or vice-versa.
On this page: http://unlcms.unl.edu/fpa/johnny-carson-school-theatre-film-faculty-staff
The title "Film & New Media" is printed "Film & New Media"
Appears to do it with and without the use of raw in http://unlcms.unl.edu/fpa/admin/structure/tims/field_collection_item__field_list_section/edit
Hi!
I'm using your Twig mode codemirror/mode/twig.js
and it seems to work fine, but I would really appreciate to be able to fetch it with bower, as I do with my other dependencies.
Why don't you make a pull request to integrate it in CodeMirror?
Or, at least, it would be nice to have it in its own repository so it could be easily fetched with bower.
Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.