Access files from templates folder.
Hey guys,
I'm trying to create a sorted template module. But when I create a field with fileTree as inputType.
This is my code to create the field:
Code:
'template' => array
(
'label' => &$GLOBALS['TL_LANG']['tl_tplsorter']['template'],
'inputType' => 'fileTree'
),
I use this code to get access to the folder:
Code:
$GLOBALS['TL_CONFIG']['uploadPath'] = 'templates';
$GLOBALS['TL_CONFIG']['editableFiles'] = 'tpl';
I hope someone knows how to tackle this problem.
Re: Access files from templates folder.
Hi.
What exactly is the problem? Is it not creating a file tree?
Re: Access files from templates folder.
Quote:
Originally Posted by pbrooks
Hi.
What exactly is the problem? Is it not creating a file tree?
Oops, I didn't check my post. That's exactly what i wanted to do.
Re: Access files from templates folder.
Have you had a full look into a DCA already using filetree?
I'd be very wary about setting those GLOBALS, since other DCA's might pick up on those and mess things up.