Results 1 to 4 of 4

Thread: Access files from templates folder.

  1. #1
    New user
    Join Date
    07-15-09.
    Location
    Heeswijk-Dinther, The Netherlands
    Posts
    13

    Default 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.

  2. #2
    User
    Join Date
    08-07-09.
    Location
    Kent, United Kingdom
    Posts
    92

    Default Re: Access files from templates folder.

    Hi.
    What exactly is the problem? Is it not creating a file tree?

  3. #3
    New user
    Join Date
    07-15-09.
    Location
    Heeswijk-Dinther, The Netherlands
    Posts
    13

    Default 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.

  4. #4
    User
    Join Date
    08-07-09.
    Location
    Kent, United Kingdom
    Posts
    92

    Default 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.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •