You are not logged in.
Pages: 1
Hi,
I just tried out the linker-plugin - its amazing!
but it didn't work at the beginning, because the scan.php searched through my whole www - which is very, very big
...so where can i define the directory - and the other parameters avaliable in scan.php?
another question:
the dialog looks completely different from the other usually used dialogs - actually it looks great - but still it would be nice to open all dialogs the same way!
3rd question:
i have a dynamic website - where it isn't enough to list all avaliable files - for example i have a news.php that can be called with news.php?id=xx
can i define such links anywhere too?
thanks!
niko
Niko
Offline
but it didn't work at the beginning, because the scan.php searched through my whole www - which is very, very big
...so where can i define the directory - and the other parameters avaliable in scan.php?
The method is something like this, in PHP..
<?php
$basedir = realpath($_SERVER['BASE_DIR'] . '/path/to/wherever') . '/';
$hash = sha1('dir=' . $basedir);
$_SESSION[$hash] = TRUE;
?>
yourEditor.config.Linker.backend = _editor_url + 'plugins/Linker/scan.php?dir=<?php echo urlencode($basedir) ?>';
The reason for that hash in the session is so that Joe Bloggs can't just go change the directory on the url to whatever they want, you could equally as well just change the $dir = statement in scan.php and skip that whole m'larky above.
another question:
the dialog looks completely different from the other usually used dialogs - actually it looks great - but still it would be nice to open all dialogs the same way!
Yes. I'm not a fan of popups, they make life more difficult. But by the same token I know some people won't like the inline-dialog idea. To that means I'd like to see it configurable. I've designed the inline dialog system so that in the (not tooo distant) future it should be possible to determine if you want inline or popup dialogs with a config variable. At least that's the idea in theory
i have a dynamic website - where it isn't enough to list all avaliable files - for example i have a news.php that can be called with news.php?id=xx
can i define such links anywhere too?
Yes, what you need to do is have a look at scan.php and see what it returns (it just returns some a nested javascript array, nothng fancy). Then you can write your own scan.php (or modify the existing) and set the config variable yourEditor.config.Linker.backend appropriatly.
James Sleeman
Offline
yourEditor.config.Linker.backend = _editor_url + 'plugins/Linker/scan.php?dir=<?php echo urlencode($basedir) ?>';
ok.... thought about using that too...
Yes. I'm not a fan of popups, they make life more difficult. But by the same token I know some people won't like the inline-dialog idea. To that means I'd like to see it configurable. I've designed the inline dialog system so that in the (not tooo distant) future it should be possible to determine if you want inline or popup dialogs with a config variable. At least that's the idea in theory
nice! i like that too!
..although i don't know if this really need to be configurable?
if it is easy to do why not....
Yes, what you need to do is have a look at scan.php and see what it returns (it just returns some a nested javascript array, nothng fancy). Then you can write your own scan.php (or modify the existing) and set the config variable yourEditor.config.Linker.backend appropriatly.
ok... i will do that
tanks for your reply and for your linker-plugin
niko
Niko
Offline
The (official) plugins for Xinha come with distribution. Just download new version and the plugins should be there - including the Linker plugin.
Enjoy!
Offline
Pages: 1