joomla-extensions

How to install component and route plugin in one package?

半世苍凉 提交于 2019-12-18 09:06:46
问题 I have created custom component and a route plugin for Joomla 1.5 to to provide SEO URLs for my component and also articles and categories which are not menu tied. Now I have to install my component and route plugin separately. Is there a way to install both in one package please? Thank you in advance! Vojtech 回答1: When any extension installed Joomla triggers an event 'com_yourcomponent_install()' to your install file, which you have mentioned in xml file. write a function com_yourcomponent

Joomla component: Output without html

浪尽此生 提交于 2019-12-17 20:45:17
问题 I am developing a Joomla component for Joomla 2.5. Since it's supposed to output XML, I most defenitely don't want to display the surrounding template. I have tried appending to the url: ?tmpl=component ?format=raw ?tmpl=raw But the first will generate some HTML around the content output and the second gives me a 500 error. The third one generates no output at all. I assume it's looking for a template named "raw", because any other gibberish template name I put there gives me the same result.

Code Conversion Joomla 1.5 to Joomla 1.7/2.5 [closed]

雨燕双飞 提交于 2019-12-14 00:09:47
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 7 years ago . am trying to convert this plugin to Joomla 1.7, as I don have extensive understanding of PHP I am not getting anywhere. Any kind of help is appreciated. URL of the plugin: http://extensions.joomla.org/extensions

why i lost name of my my new joomla hello world extension in components menu?

社会主义新天地 提交于 2019-12-13 07:28:44
问题 I just made my new joomla3.1 hello world extension using discover extension method i install it. BUT after installation i am unable to locate extension name in joomla component menu. i already tried this link its working fine. http://localhost/COM/administrator/index.php?option=com_process anticipating helpful response <?xml version="1.0" encoding="UTF-8"?> <!-- $Id$ --> <extension type="component" version="3.1" method="upgrade"> <name>COM_PROCESS_NAME</name> <author>Arslan Tahir</author>

jquery run once .one() in viewport

。_饼干妹妹 提交于 2019-12-13 06:47:42
问题 I am making a progressbar and want it to play when it is in viewport. I got this working but the code is now executed every time and I need it to run only once. Because it creates now multiple progressbars. ;-) The code below is used in a Joomla Extension. (function ($) { $(document).ready(function() { // Function that checks if it is in view. $("<?php echo '#progress' . $module->id ?>").waypoint(function() { // Function that makes sure it only runs once. // -----------I need to use .one()

JToolBarHelper::Custom syntax

落花浮王杯 提交于 2019-12-13 04:18:50
问题 I can't quite figure out exactly what this line does from the docs: JToolBarHelper::custom( 'masterslavesync', 'save', '', 'Save', false, false ); Is it calling a masterslavesync function somewhere (controller)? Or do I have to register it with $this->registerTask() ? 回答1: This code is used to create custom button in the joomla admin.This code will create a save and when someone click on this button it will call masterslavesync function defined in the controller. if you want to check this

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

How to roll back Joomla 3.6.2 to 3.6.0

懵懂的女人 提交于 2019-12-12 03:37:21
问题 How to roll back Joomla 3.6.2 to 3.6.0 for Overriding Language Core Files. I newly add a language key in language core file. When I select danish language to login and access language key is not translated into Danish language. 回答1: You can add different language keys and values using the built in language override function. Look in the backend under languages 来源: https://stackoverflow.com/questions/39093858/how-to-roll-back-joomla-3-6-2-to-3-6-0

Text editor for custom field in joomla

女生的网名这么多〃 提交于 2019-12-12 03:17:54
问题 I have created a custom field in Joomla 1.5 menu for description of the menu. I have edited the component.xml in administrator\components\com_menus\models\metadata but now I want to put a text editor in place of a normal text-box. Any ideas how to approach this? 回答1: You need to create an element of editor type. Learn how to create element and how to save data class JElementMyeditor extends JElement { var $_name = 'Myeditor'; /** * @param $name * @param $value * @param $node * @param $control