just a quick question on the new "static" elements feature of modx 2.2. what format should i make the files i'm going to use to store my templates and other resources?
If I remember from a post I saw earlier discussing the matter, someone suggested the use of .tpl file extension for the source file. The reason I ask is obviously for the possible security concerns exposing your source files may lead to. So what extension (maybe php) would be best to use in this situation? Anyone have any experience with static files in 2.2 on a live site?
If anyone has a suggestion, it would be very appreciated. Thanks!
Put those files in core folder somewhere. Additionally, you can put whole core folder out of public folders...
http://rtfm.modx.com/display/revolution20/Hardening+MODX+Revolution#HardeningMODXRevolution-core
Regards
Antonio Zdilar
linearvector.com
an organised way
for chunks use .chunk.tpl extension
for templates use .tpl
for snippet use .snippet.php
for plugins user .plugin.php
i use root/elements/chunks,root/elements/snippets structure to save files as it helps if u have many memebers working on project to easily find em and a upgrade wont affect ur elements even if ur files have same name as core chunks
but it depends on how u like to store
Regrads