Results 1 to 2 of 2

Thread: File Insert Tag Issue?

  1. #1
    New user
    Join Date
    07-19-12.
    Posts
    1

    Default File Insert Tag Issue?

    Hi there,

    I have recently upgraded my contao installation to V2.11.4

    Previously, i could use the following insert tag and my PHP files would display correctly;

    {{file::../tl_files/xxxx/xxxx.php}}

    Since the upgrade it has stopped working, i assume its possibly the ../ that is not working as if i try to load a PHP file in the default /templates folder it works correctly, however I do not wish to change the file structure at this time.

    Can anyone help?

  2. #2
    User
    Join Date
    09-02-10.
    Location
    Banja Luka, Bosnia and Herzegovina
    Posts
    59

    Default Re: File Insert Tag Issue?

    {{file::*}} This tag will be replaced with the content of a file from the templates directory (replace * with the file name).
    You can also provide arguments: {{file::file.php?arg1=val&arg2=val}}
    http://www.contao.org/en/insert-tags.html

    Update: I have just tested with this solution: {{file::tl_files/xxxx.php}} and it is working. Try without "../" path.

    {{file::tl_files/xxxx/xxxx.php}}

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
  •