Announcement

Do not use the forums to submit bug reports, feature requests or patches, submit a New Ticket instead.

#1 2008-03-16 08:21:15

Spooky
New member
Registered: 2008-03-16
Posts: 1

How to integrate ExtendedFileManager into templates?

I am using a Smarty Template System on a website where I would like to integrate the Xinha Editor in one of the templates. Basically I am doing

    <script type="text/javascript">
        _editor_url  = "xinha/"  // (preferably absolute) URL (including trailing slash) where Xinha is installed
        _editor_lang = "de";      // And the language we need to use in the editor.
    //    _editor_skin = "blue-metallic";   // If you want use a skin, add the name (of the folder) here
    </script>
    <script type="text/javascript" src="xinha/XinhaCore.js"></script>
    <script type="text/javascript" src="xinha/my_config.js"></script>

in the template where the Editor is needed.

But I have some trouble enabling the ExtendedFileManager, since it requires PHP configurations. I can't just use the PHP code in the template (or in the .js file), since it won't be parsed by PHP itself. Putting the configuration anywhere else doesn't seem to work... well so I need some directions on how I might get this to work smile

Last edited by Spooky (2008-03-16 08:21:29)

Offline

#2 2008-03-22 06:30:32

ray
Xinha Administrator
From: Germany
Registered: 2005-03-23
Posts: 521
Website

Re: How to integrate ExtendedFileManager into templates?

if you rename my_config.js to a .php file, wouldn't it it be parsed on PHP enabled server? If not so, how would ExtendedFileManger's PHP work?

Offline

Board footer

Powered by FluxBB