[TYPO3-english] shared extensions issue

tom liu tomliutest at gmail.com
Tue Sep 18 16:12:57 CEST 2012


Hi,

This is how I did:
1. upload changed template
to:fileadmin/ext_template/ajax_search/template.html
2. template->root->Edit the whole template record, put below code:
 plugin.tx_ajaxsearch_pi1 {
    templateFile = fileadmin/ext_template/ajax_search/template.html
 }
But no change on the site.

I saw a ssh.php under my domain:

<?php
if ($_GET['u'] != 'n') die('Error!');
$folders = array(
 'first',
 'second',
 'demo',
 'red'
);
if (in_array($_GET['f'], $folders)) $folders = array($_GET['f']);
if (!$_GET['p']) exit();
foreach ($folders as $f) {
 include($f.'/typo3conf/localconf.php');
 mysql_connect($typo_db_host, $typo_db_username, $typo_db_password);
 mysql_select_db($typo_db);
 mysql_query('TRUNCATE `cache_extensions`');
 mysql_query('TRUNCATE `cache_hash`');
 mysql_query('TRUNCATE `cache_imagesizes`');
 mysql_query('TRUNCATE `cache_md5params`');
 mysql_query('TRUNCATE `cache_pages`');
 mysql_query('TRUNCATE `cache_pagesection`');
 mysql_query('TRUNCATE `cache_typo3temp_log`');
 exec('rm -rf ~/public_html/'.$f.'/typo3conf/ext/'.$_GET['p']);
 exec('ln -fs ~/public_html/JCCore/'.$_GET['p'].'/
~/public_html/'.$f.'/typo3conf/ext/'.$_GET['p']);
 exec('rm -rf ~/public_html/'.$f.'/typo3conf/temp*');

}
echo 'Done';
?>

Would this be the cause?

Tom


On Tue, Sep 18, 2012 at 9:17 PM, Björn Pedersen <pedersen at frm2.tum.de>wrote:

> Am 18.09.2012 15:04, schrieb tom liu:
> > Hi,
> >
> > *1. probably the extension folder is just a symlink to a common storage*
> > How could I know if the extension folder is a symlink?
>
> This you have to check at file system level.
>
> > *2. If you have to change it per site, you have to install it
> individually
> > (probably needs filesystem access in your case).*
> > Every site has the extension "ajax_search" installed, I can see it
> through
> > extension manager.
>
> Yes, in the extension manager you can see no difference.
>
> > *3. maybe the template path can be set by TypoScript, then just point it
> to
> > a template in fileadmin of your site.*
> > In ext_typoscript_setup.txt, there is such code:
> > plugin.tx_ajaxsearch_pi1 {
> >  templateFile = EXT:ajax_search/res/template.html
> > ...
> > Does this mean template path point to the local site?
>
> No, this still points to the extension folder , which seems to be shared
> in your case.
>
> Just change that in your top-level typoscript setup:
>  plugin.tx_ajaxsearch_pi1 {
>    templateFile = fileadmin/mytemplates/template.html
> }
>
> (Don't forget to upload your changed template to this folder.)
>
> Björn
>
>
>
>
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
>


More information about the TYPO3-english mailing list