include a file  Bottom

  • I cannot include a file into a theme template.
    If the file is in the directory templates/modules or templates/ I simply include the file in this way:

    Code

    <!--[include file='menu.txt']-->

    It works in both directory but if the file is in a different directory I cannot include it.
    I tried absolute and relative paths with no success...
  • The include file smart that you are using only looks for the file in the current dir.

    You need to use absolute pathing (however applicable):

    Code

    <!--[include file='/home/web/users/arkanoyd/www/whateverdir/menu.txt']-->


    --
    [ stevencopley.com ]
  • I just tried it but it doesn't work...
  • I was using many Smarty includes with 764 which all broke when I upgraded to Zikula 1.1.1

    A simple file include block will work.
  • 0 users

This list is based on users active over the last 60 minutes.