Main navigation

TWIG

Can I write in TWIG?...Well, currently "NO". I can obviously modify the existing templates in order to create the desired effect and I have a basic understanding of how it works. But, I am the kind of person who doesn't say I know how to do something unless I know how to do it.

TWIG is pretty interesting. Originally I thought it was just a simple string find and replace markup shortcut of some kind. Apparently it actually takes the markup and converts it to an actual PHP class. I of course need to spend more time on the specifics to verify that.

I wanted to be able to easily create a Content Type on the fly that would export photos using Lightbox.

Initially I just used a Module as a block. But that really seeming both impractical and overkill. So Instead I modified the templates in TWIG and the theme file. Now, I just need to create the Photo Library Content Type in 'Contents' and add the images I want to display.