joomla1.6

Joomla 1.6 JCategories::get() method produces 'PHP Fatal error: Allowed memory exhausted' in custom MVC component

醉酒当歌 提交于 2019-12-10 22:04:11
问题 I'm implementing a custom MVC component following the Joomla 1.6 Documentation. I am running into a problem when trying to use JCategories::get() to obtain a list of categories and their children from com_component . I receive the following error: PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 125306881 bytes) If I do not issue a print_r($this->items); to list the items, I do not receive an error. If I change the line $categories = JCategories:

Programmatically adding an article to Joomla

安稳与你 提交于 2019-12-10 15:30:12
问题 I am very new to Joomla (frankly just started exploring the possibility of using Joomla) and need help with programmatically adding articles to Joomla backend tables (please see details below). Also along the same lines, I would like to understand how should values for the columns: parent_id lft rgt level be generated for the table jos_assets ( #__assets ) and what is their functional role (eg are they “pointers/indexes” analogous to, say, an os inode to uniquely indentify a file or are they

How do you add fields to com_content in Joomla! with a plugin and store the data in its own table?

↘锁芯ラ 提交于 2019-12-10 10:33:38
问题 I'm running Joomla 1.7 and I know that it has the ability to add custom form fields to components with a plugin. There is a sample plugin located at: /plugins/user/profile This plugin allows you to put custom form fields on the user profile front end and back end and these fields are stored in a custom table. I created a similar plugin for user profiles and it worked perfectly. However, when I go to create a plugin like this for com_content, I am met with a problem. this is what my XML file

Joomla: Call helper function from within a model?

二次信任 提交于 2019-12-09 18:24:03
问题 I'm starting off with both php and Joomla development, and finding it difficult working within Joomla to do some fairly simple stuff. Went through the Joomla MVC example and Lynda (and have built a few simple views so far). I have a helper file/class/function that outputs all the userids that exist in the "completed" table so I can display a link for either a new record based on that user or edit an existing user's record. I've already used a different function in this helper file

Add new image field to Joomla 1.7 com_content

試著忘記壹切 提交于 2019-12-08 20:33:31
问题 I'm trying to make some changes to com_content component of Joomla 1.7 There are not many docs on specific topic for Joomla 1.7 Maybe you could help me out on this one. I want to have a separate field for extra image in com_content, specifically to Featured view. In the administrator's part I managed to add the field - just in html, then into xml file and finally to DB. Now I'm trying to get that record displayed in my custom html view for Featured articles. I just used simple code echo $this

How do you add fields to com_content in Joomla! with a plugin and store the data in its own table?

感情迁移 提交于 2019-12-06 10:38:01
I'm running Joomla 1.7 and I know that it has the ability to add custom form fields to components with a plugin. There is a sample plugin located at: /plugins/user/profile This plugin allows you to put custom form fields on the user profile front end and back end and these fields are stored in a custom table. I created a similar plugin for user profiles and it worked perfectly. However, when I go to create a plugin like this for com_content, I am met with a problem. this is what my XML file looks like: <?xml version="1.0" encoding="utf-8"?> <form> <fields name="additionalinfo"> <fieldset name=

Joomla: Call helper function from within a model?

依然范特西╮ 提交于 2019-12-04 09:19:50
I'm starting off with both php and Joomla development, and finding it difficult working within Joomla to do some fairly simple stuff. Went through the Joomla MVC example and Lynda (and have built a few simple views so far). I have a helper file/class/function that outputs all the userids that exist in the "completed" table so I can display a link for either a new record based on that user or edit an existing user's record. I've already used a different function in this helper file successfully in a different part of the component ( Joomla: Write and call a helper function in a component ).

How to hide the toogle editor from the tinymce editor

爱⌒轻易说出口 提交于 2019-12-01 23:03:11
问题 My XML is as shown below. Everything except the toogle editor button becomes hidden from the editor. Is there any other code to fix the problem. <field name="description" type="editor" cols="20" label="COM_TEST_DESCRIPTION_LBL" description="COM_TEST_DESCRIPTION_DESC" class="inputbox" filter="JComponentHelper::filterText" buttons="true" hide="readmore,pagebreak,image,article,toogle editor" /> 回答1: The simplest way would be to use CSS styling to disable the visibility of this button: .toggle

How to hide the toogle editor from the tinymce editor

怎甘沉沦 提交于 2019-12-01 20:16:31
My XML is as shown below. Everything except the toogle editor button becomes hidden from the editor. Is there any other code to fix the problem. <field name="description" type="editor" cols="20" label="COM_TEST_DESCRIPTION_LBL" description="COM_TEST_DESCRIPTION_DESC" class="inputbox" filter="JComponentHelper::filterText" buttons="true" hide="readmore,pagebreak,image,article,toogle editor" /> The simplest way would be to use CSS styling to disable the visibility of this button: .toggle-editor { display: none; } 来源: https://stackoverflow.com/questions/12138275/how-to-hide-the-toogle-editor-from

Override components/com_users/models/forms/login.xml - Joomla 2.5?

巧了我就是萌 提交于 2019-11-29 16:37:19
I've been trying to override the file login.xml but no matter what I try, the edited version in my template folder doesn't show up. How can I override this file? Update I have tried template/<templatename>/html/com_users/models/login.xml and other variations like template/<templatename>/html/com_users/models/forms/login.xml or template/<templatename>/html/com_users/forms/login.xml etc without any success. Shaz Here's a solution: http://forum.joomla.org/viewtopic.php?t=583380#p2375649 I just tested it in Joomla 2.5.3 and it works. Update here is the solution copied from above URL We can