joomla-template

Fatal error: Class 'JParameter' not found in template/theme/index.php on line xxx

早过忘川 提交于 2019-12-05 07:48:49
i upgrade template 2.5 to 3.0, template upgrade but come the following error. Fatal error: Class 'JParameter' not found in template/theme/index.php on line xxx JParameter was removed in Joomla 3.0 and now either JForm or in most cases JRegistry should be used. So use the following code, and change to suit your own needs $jparams = new JRegistry(); $variable = $jparams->get('param_name'); 来源: https://stackoverflow.com/questions/19225816/fatal-error-class-jparameter-not-found-in-template-theme-index-php-on-line-xx

Override Joomla Component Template

橙三吉。 提交于 2019-12-04 19:36:37
I am using this URL to access the raw HTML of a component: /index.php?option=com_downloadform&tmpl=component However it also returns the document type, title tags, head tags etc. Is there a way to return only the content between <body> and </body> ? Thanks, Ian Inside your template folder, create a file (e.g. raw.php) and inside that file place only: <jdoc:include type="component" /> Then, you can use /index.php?option=com_downloadform&tmpl=raw to access the raw output of the component. The tmpl parameter in your link must be the name of the file without the extension. 来源: https:/

How to display view without template?

纵然是瞬间 提交于 2019-12-04 02:51:21
I have view (frontend) in my own component (view.html.php): class MevViewMev extends JView{ function display($tpl = null){ parent::display($tpl); } } And template: <?php defined('_JEXEC') or die('Restricted access'); ?> <div> ASFADSFDSF </div> How to display it without joomla template (head section, styles, etc). I want to call this part of jquery onclick method in the window. To display the component only add "tmpl=component" parameter to url. If need to display something besides component's view it can be customized - create "component.php" file in template's root folder and include in it

Joomla plugin : how to get article title and article id

橙三吉。 提交于 2019-11-30 15:51:47
问题 I have developed on simple plugin in Joomla 1.6 I stuck at : How to get article title and article url. I am getting no output if tried to print below statement: echo $article->title; echo $article->id; I have written this in php file, not used MVC architecture. Is there any other settings need to do in Joomla admin side ? Please suggest your pointers for extracting article title and article url. Thanks in advance! Pravin 回答1: i tried : public function onContentPrepare($context,&$article, &

Joomla plugin : how to get article title and article id

断了今生、忘了曾经 提交于 2019-11-30 15:20:35
I have developed on simple plugin in Joomla 1.6 I stuck at : How to get article title and article url. I am getting no output if tried to print below statement: echo $article->title; echo $article->id; I have written this in php file, not used MVC architecture. Is there any other settings need to do in Joomla admin side ? Please suggest your pointers for extracting article title and article url. Thanks in advance! Pravin h_45h i tried : public function onContentPrepare($context,&$article, &$params, $limitstart) { echo JRequest::getVar('id'); } Still I am not getting the id. Is this right? The

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

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

坚强是说给别人听的谎言 提交于 2019-11-28 09:36:40
问题 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. 回答1: Here's a solution: http://forum.joomla.org/viewtopic.php?t=583380#p2375649 I just