Joomla

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.

When should I use parenthesis in require/include statements? [duplicate]

匆匆过客 提交于 2019-12-17 20:12:31
问题 This question already has answers here : Is php's 'include' a function or a statement? (9 answers) Closed 5 years ago . I've been handed a pile of code that includes a lot of require / include statments (mixed between require and require_once ). Sometimes, the path has parenthesis around it, i.e. require_once (JPATH_COMPONENT.DS.'controller.php'); , and other times there isn't: require_once $path; . The php docs for include mention this, but aren't specific. Should I remove the parenthesis

How to get specific menu items from joomla?

对着背影说爱祢 提交于 2019-12-17 18:20:51
问题 This question is bit specific for Joomla. I have a main menu consisting of: Home|About US|Privacy Policy|Portfolio|Contacts US . Each menu item is link to an article. Now on the complete site there are many places in the components and modules where I need to show two links : Privacy Policy & Portfolio. Can someone please guide me? I do not want to hard code the links as the item id would differ in production. 回答1: There are 2 ways you can do it: Option 1: Joomla loads menus every time page

登陆Joomla后台出现页面空白问题

删除回忆录丶 提交于 2019-12-16 11:06:30
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 最近有很多朋友遇见登陆Joomla后台以后出现页面空白,前台页面正常,登陆提示框也正常,输入完账户密码后页面弹出空白,它是犹豫Joomla本身插件出现问题导致整个后台出现空,那么我们今天就来解决一下这个问题。 后台出现空白情况 第一步:登陆网站所在的phpMyadmin 第二步:找到网站对应数据库,找到extensions文件 第三步:在enabled框里修改值1改为0,保存关闭 重新登录Joomla后台,空白问题已解决。 来源: oschina 链接: https://my.oschina.net/u/3761169/blog/3143470

Joomla Site Hacked?

爱⌒轻易说出口 提交于 2019-12-14 04:23:02
问题 Our Joomla website has not been touched by us in a while. When I went to add new content, we have the following problem. The initial page displays fine, but whenever you click on any menu item or link we get the following russian text displayed: Файл ключевиков keys/sharperdevelopment.com.txt пуст или не существует. Пропишите туда хотя бы один ключевик. Which translates to: File keywords keys / sharperdevelopment.com.txt is empty or does not exist. Prescribe to at least one of keywords. Does

Joomla 3.2.2 issue: Notice: Undefined variable: nowDate /components/com_content/models/articles.php

邮差的信 提交于 2019-12-14 04:09:02
问题 I have modified my joomla latest news module to make it displaying only articles from the latest month by adding these lines to the helper.php $model->setState('filter.date_filtering', 'relative'); $model->setState('filter.relative_date', 30); It works good until I upgraded my joomla installation to the latest Joomla 3.2.2 today. It works properly for public access and registered user, but when I login as a admin user in the frontend it returns a blank output and when I set the error

Is is possible to integrate Joomla and Codeigniter? [closed]

本小妞迷上赌 提交于 2019-12-14 03:56:57
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 6 years ago . I have learned Codeigniter (which is a PHP framework) and now I want to use a CMS to build my website. Classes which I found in Codigniter were very useful, now I want to use them in my website developed with CMS (e.g., Joomla). Is there anyway to integrate CMS and PHP framework

Remove Article ID from Joomla 3 url

不想你离开。 提交于 2019-12-14 03:44:37
问题 I am trying to remove article id from Joomla 3 URL. I searched around and the response is in components\com_content\router.php change 0 to 1 in $advanced = $params->get('sef_advanced_link', 1); on lines 38 and 290 and also comment out if (strpos($segments[0], ':') === false) { $vars['view'] = 'article'; $vars['id'] = (int)$segments[0]; return $vars; } I consider it works fine in Joomla 2.5 as all comments mention this. But it does not do the job for me on my Joomla 3.3 website. How can I

Fatal error: Class 'plgContentWidgetkit_Content' not found in

若如初见. 提交于 2019-12-14 03:37:47
问题 My website http://gutenberginstitute.com was developped using joomla and yootheme "venice". However, I have download and installed Widgetkit (free version so far) to test it on my site, and I can't make it work. It seems there are some plugins that are not installed, and if I put ... [widgetkit id=1] ... in some article, for example... http://gutenberginstitute.com/index.php/es/our-teachers-es it's not converted into the widget, but it shows just "[widgetkit id=1]" On the other hand, if I use

i have a error in joomla - query please. i have and error in this query

拟墨画扇 提交于 2019-12-14 03:36:10
问题 $datos = explode(';',$linea); $product_ean = trim($datos[0]); $product_price = trim($datos[1]); $name_es = trim($datos[2]); $short_description_es = trim($datos[3]); echo $product_ean,'<br>'; echo $product_price,'<br>'; echo $name_es ,'<br>'; echo $short_description_es,'<br>'; $db = JFactory::getDbo(); $query = $db->getQuery(true); $columns = array('product_id' ,'product_ean', 'product_price', 'name_es-ES', 'short_description_es-ES'); $values = array(NULL, $product_ean, $product_price, $name