joomla2.5

Return to previous page in joomla

只谈情不闲聊 提交于 2019-12-12 14:26:27
问题 I have created my own extension. This extension can be accessed from different components and parts of the website. The problem I have is that there could be a number of different URLs that link to this extension. I have a 'cancel' button and I can't work out how I would get this button to link to the previous URL. Wondering if there is something built into joomla like getPreviousURL? Couldn't find anything. EDIT: I should have said that I still want to be able to run my cancel() method. e.g.

Joomla >1.7 hide log messages from browser

你说的曾经没有我的故事 提交于 2019-12-12 14:25:43
问题 I'm developing an extension for Joomla!; at the moment I'm trying to make it 3.0 compatible - as with 3.0 the logging changed a little (*). Building on the answer from this related question, my current code looks like this: JLog::addLogger(array( 'text_file' => 'plg_system_myplg.log.php' )); JLog::add('blah blah log msg'); The problem is that the log also goes to the messages which are shown to the user - this I want to prevent, I want the log msg only to go to the log file. I think it has to

Language based installation description

假装没事ソ 提交于 2019-12-12 10:53:25
问题 As you all know, once you have installed an extension in the Joomla backend, the description shows. You can either have a plain description from the XML or have a language based one. I have never had problems in the past with language based descriptions however this time I do. The extension is a admin component and has no frontend folder and is for Joomla 2.5. When I install the component, the description appears as COM_PROJECTS_DESC The language folder and files are in the correct location

coverting my joomla 2.5 template to 3.x

可紊 提交于 2019-12-12 06:02:54
问题 Any help in the right direction would be appreciated. Hopefully, this is the right place to ask this quesiton :o I just upgrade from Joomla 2.58 to 3.51. Everything is going well I can use other templates but I am having trouble with my template. I keep getting this error and no matter how much I research and try I can't seem to get my template to work. I have work through several errors but now I am stuck with this. I am posting all the errors and the changes I made just in case it is

How can i add cache control code to htaccess?

坚强是说给别人听的谎言 提交于 2019-12-12 04:57:35
问题 How can I add cache control code to .htaccess? My site is slow and I found 35 static components without a far-future expiration date. How can I add expiration data for that? I was informed that this could be done in the .htaccess file but I don't know how. 回答1: You can use something like this: # Cache Files <filesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf)$"> Header set Cache-Control "max-age=604800, public" </filesMatch> This caches any file ending with ico|pdf|flv|jpg..... for 604800

Cannot have ajax working in my joomla module

风流意气都作罢 提交于 2019-12-12 04:44:46
问题 I'm quite new to joomla development and I'm following a tutorial on how to use AJAX capability in my newly created module. Basically, in my tmpl/default.php I have: <script> function runButton() { alert("clicked"); var url='http://127.0.0.1:4444/getData'; var request = new Request({ url: url, method:'get', onSuccess: function(responseText){ document.getElementById('fields-container').innerHTML= responseText; } }).send(); </script> <?php defined('_JEXEC') or die('Restricted access'); ?> <input

Why is my plugin not triggered?

≯℡__Kan透↙ 提交于 2019-12-12 04:22:57
问题 I'm working on a plugin which should provide support for plugins. But I don't get it to call (and execute) its own plugins - and I have read the doc forward and backward and for the life of me am not seeing the problem. So I build a simple example to understand the mechanism - and fortunately the example fails as well, so at least my (mis)-understanding is consistent... The main-plugin is this (mainplugin.php). <?php jimport('joomla.plugin.plugin'); class plgContentMainplugin extends JPlugin

Where is CORE Joomla! 2.5 Menu Item Type?

℡╲_俬逩灬. 提交于 2019-12-12 03:58:04
问题 Recently, I've try to upload a new module into our website, but after a fail "unable to install all the components", we are now unable to manage the website cause all the Menu Type Item disappear — and by the same time, make the website down. So where can I find the core "menu item type" to remplace and try make all this work fine. 回答1: Before you starting trying to edit Core Joomla files to try and fix things.... dont! I have told many people that editing core Joomla files can results in

How can I get product data of a VirtueMart 2 product in an external file?

我的未来我决定 提交于 2019-12-12 03:01:10
问题 is it possible to get the data of a VirtueMart 2 product in an external php file? I'm using joomla 2.5 and VirtueMart 2 and need to retrieve the product data in a php-file on the same host. this php file isn't part of the VirtueMart component and also not part of an other component. this file is supposed to give the retrieved product data to a jquery widget... 回答1: it seems to me that it isn't possible. the best practice in my case is to build a joomla module and enter all my code in the

How to get parameters from article's custom field?

ぃ、小莉子 提交于 2019-12-12 02:17:03
问题 I have some custom field for artciles. For example this is text field named "MyText". I tryin' to write simple plugin, wich will be display text from this field on article's page (frontend). So how can I get value from this field and transfer it to plugin? Joomla version is 2.5 Thanks in advance for everybody. This is field in XML: <field name="MyText" type="inputbox" label="MyText" description="" class="inputbox" size="25" /> 回答1: Ok! Finally I wrote it by myself. So here is solution: public