digitalpoint
Well-known member
I figured I'd ask just in case there's something I'm missing...
I'm using PhpStorm for PHP and JavaScript, and just using the normal admin template editor for templates. But I've been finding myself spending more time digging through code to figure out how to do things than I am actually coding stuff.
Are there notes for things that are deprecated somewhere? Like the JavaScript XF.Click handler system was deprecated in 2.1 (I think), and replaced with XF.Event. Not a big deal... easy enough to change, but annoying I've been building stuff in 2.1 with XF.Click because I didn't know it was deprecated. Are deprecated things noted anywhere?
Are there docs for template <xf:??> tags anywhere? I spent way too much time trying to figure out how to pass something to <xf:option>, but render it outside the <label> tags. It turns out it's possible with the
Maybe there isn't any detailed documentation like that, but I figured I'd ask in case I'm just making things harder on myself...
2.1 is so much fun to develop in because it's so flexible, but learning it all by digging through XF's source code has been time consuming.
I'm using PhpStorm for PHP and JavaScript, and just using the normal admin template editor for templates. But I've been finding myself spending more time digging through code to figure out how to do things than I am actually coding stuff.
Are there notes for things that are deprecated somewhere? Like the JavaScript XF.Click handler system was deprecated in 2.1 (I think), and replaced with XF.Event. Not a big deal... easy enough to change, but annoying I've been building stuff in 2.1 with XF.Click because I didn't know it was deprecated. Are deprecated things noted anywhere?
Are there docs for template <xf:??> tags anywhere? I spent way too much time trying to figure out how to pass something to <xf:option>, but render it outside the <label> tags. It turns out it's possible with the
afterhtml
attribute, but only figured that out after digging through a lot of Template PHP code. Then I spent too much time trying to figure out how to pass HTML to an attribute... then later found the <xf:afterhtml> tags which would have been nice to know. Even just a list of tags and possible attributes somewhere?Maybe there isn't any detailed documentation like that, but I figured I'd ask in case I'm just making things harder on myself...
2.1 is so much fun to develop in because it's so flexible, but learning it all by digging through XF's source code has been time consuming.