Joomla

Joomla - “Menu Item Type” pop-up is empty

别来无恙 提交于 2019-12-24 03:07:20
问题 Suddenly - I don't know since when - I can't edit menu item types anymore. When I click the select button, a pop up appears, but it stays empty. It's the same for new menu's and menu items. Does it seem familiar to anyone? I already searched a lot, but I can't find other people with the same problem. It seems like the javascript is not loading. I'm running Joomla 3.4.3 回答1: If JavaScript was broken, I guess you would not see the modal at all. Increase the error level in Joomla configuration

Use underscore (_) in joomla menu alias

倾然丶 夕夏残阳落幕 提交于 2019-12-24 03:03:52
问题 I want to use underscore in menu alias in joomla. For a menu item called "Residential Storage" I want to use "residential_storage" as alias but when I save this it becomes "residential-storage", so underscore is being replaced by hyphen. How can I use hyphen? 回答1: Normally the alias should consist of lowercase letters and hyphens (-). No blank spaces or underscores are allowed.But to use underscore check the link below.This method will replace all (-) to (_). http://forum.joomla.org/viewtopic

How to use web services to share Joomla login session from one website to another?

孤者浪人 提交于 2019-12-24 02:58:05
问题 This is file which is use to login on joomla site. // a super-stripped down 2-leg oauth server/client example function getLogin($userid, $psswrd) { $app = JFactory::getApplication(); jimport('joomla.user.authentication'); jimport('joomla.session.session'); $auth = &JAuthentication::getInstance(); $session = &JFactory::getSession(); $session->set('name', "value"); $ssn_name = $session->get('name'); $sessionDetails = array( 'State' => $session->getState(), 'Expire' => session->getExpire(),

Load language file during joomla (2.5) system plugin installation

荒凉一梦 提交于 2019-12-24 02:34:09
问题 I'm having a real hard time showing a localized string during the installation of a system plugin (in Joomla 2.5). The "normal" way with localized strings in the xml file doesn't seem to work, (see this other question: Language based installation description). I now tried the way proposed there, to show the description via the install scripts. This kind of works (I can echo text successfully), however, I also can't localize there - when debugging the language it shows that the plugin.sys.ini

WHERE statement not working in Joomla! 3.0.3. php request

江枫思渺然 提交于 2019-12-24 01:59:10
问题 I am trying to add a WHERE statement in a simple query in Joomla 3.0.3. but the code only works when I comment the line with the WHERE statement. Do you have any suggestion? Many thanks! <?php $query = $db->getQuery(true); $query->select(array('Name','InstrumentFamily')); $query->from('instrumenttype'); $query->where($db->nameQuote('InstrumentFamily').'='.$db->quote('debt')); $db->setQuery($query); $result = $db->loadAssocList(); print_r($result); ?> PS: note that I'm using the Sourcerer

How to properly use the language files in joomla

十年热恋 提交于 2019-12-24 01:25:59
问题 As far as i could dig in thought google, i found something like: <languages> <language tag="en-GB">en-GB.whatever.ini</language> <language tag="en-GB">en-GB.whatever.sys.ini</language> </languages> From here some question: Can i use it without tag and somehow specify to use with the default system language What is the difference between whatever.ini and whatever.sys.ini Do I have something else to write to xml or those 4 lines uploads and runs languages 回答1: The tag="en-GB" is required. .ini

Jquery Autocomplete not showing results [closed]

扶醉桌前 提交于 2019-12-24 01:07:27
问题 This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. Closed 6 years ago . I have the following code: var acOptions = { source:function (request, response) { $.ajax({ url: "index.php?option=com_fmw&view=keywords_api&controller

Database migrations in Joomla

岁酱吖の 提交于 2019-12-24 00:54:19
问题 Is there any way of using database migrations with Joomla? I'm looking for a mechanism like the one found in Rails or Symfony. I would like to apply changes to the database whenever my model changes, e.g. adding a column, creating a new relationship, dropping some tables,... In this question, the accepted answer seems like a very cool option, but I don't know if there is something specific to Joomla. Thanks! 回答1: If you want to update your own component's DB schema you can refer to the

How do I include a file of PHP functions in a Joomla template

大憨熊 提交于 2019-12-24 00:51:17
问题 I have been trying to include a file in my template which includes some functions I was intending to use for validation of the access level a member has in order to tailor content for different types of users in Joomla 2.5. The trouble is even though I have used the standard PHP include statement, none of the functions appear to be usable in the template. Instead calling the functions causes any pages using the template to crash. I could hard code the functions at the top of the template

Get current article category ID (catid) in Joomla 3.2

我们两清 提交于 2019-12-24 00:42:51
问题 I need to get current article category id, in older joomla version I used: <?php $catid = JRequest::getInt('catid'); echo $catid; ?> But in Joomla 3.2 I get 0. 回答1: You can eliminate the extra database query by taking advantage of the fact that the article model instance is cached and so is the query result for the current article. So, use the content model class to get what you are after. $app = Jfactory::getApplication(); $input=$app->input; if ($input->getCmd('option')=='com_content' &&