Results 1 to 3 of 3

Thread: Adding PHP script as module

  1. #1
    New user
    Join Date
    12-25-09.
    Posts
    16

    Default Adding PHP script as module

    Hi All,

    I am trying to add PHP script as customized html module. But it just removing the PHP script. I am actually add at date/time module with site last modified info into my site. Is there anyway, I can do this?

    Thanks in advance.

    Prasun

  2. #2
    Community-Moderator xchs's Avatar
    Join Date
    06-19-09.
    Posts
    1,287

    Default Re: Adding PHP script as module

    You can do this with the "file" insert tag: http://www.contao.org/en/insert-tags.ht ... e-elements
    Contao Community Moderator
    → Support options

  3. #3
    Experienced user
    Join Date
    06-10-09.
    Location
    Cape Town, South Africa
    Posts
    1,387

    Default Re: Adding PHP script as module

    Yeah, for what you wanna add, you don't need an external script, because Contao already provides lots of insert tags to insert info.

    {{last_update::d-m-Y}}

    Where the format d-m-Y is the standard PHP date format (and used on Contao).

    I use {{date::Y}} for the copyright notice at the bottom of the site.

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
  •