joomla-template

use joomla com_media image selection in my custom component

北慕城南 提交于 2020-04-11 18:27:23
问题 hi i want to use com_media image selection in my own component. the link is: index.php?option=com_media&view=images&tmpl=component& e_name=smallimage the image goes to editor while i want it's address go to <input class="inputbox" type="text" name="smallimage" id="smallimage" size="40" maxlength="255" value="<?php echo $row->smallimage; ?>" title= "<?php echo JText::_('SMALLIMAGETIP' ); ?>" /> i am using joomla 1.5 any suggestion? thanks 回答1: If you're using Joomla 1.6 the easy way is let

use joomla com_media image selection in my custom component

生来就可爱ヽ(ⅴ<●) 提交于 2020-04-11 18:27:19
问题 hi i want to use com_media image selection in my own component. the link is: index.php?option=com_media&view=images&tmpl=component& e_name=smallimage the image goes to editor while i want it's address go to <input class="inputbox" type="text" name="smallimage" id="smallimage" size="40" maxlength="255" value="<?php echo $row->smallimage; ?>" title= "<?php echo JText::_('SMALLIMAGETIP' ); ?>" /> i am using joomla 1.5 any suggestion? thanks 回答1: If you're using Joomla 1.6 the easy way is let

Joomla template show image thumbnail on frontpage

﹥>﹥吖頭↗ 提交于 2020-01-06 03:43:05
问题 Using joomla 1.5 how do you add thumbnail images to the list of articles on the frontpage. What I am after is something similar to this http://templates.joomlart.com/ja_quartz/ (scroll down to the list under welcome to the frontpage) As you can see this shows the date, then a thumbnail image and then a snippet of the article with a read more link. If this is an extension does anyone know which one it is? I don't want to buy the template as I am just after that specific piece of functionality.

Jquery slideshow not working in Joomla3 template

邮差的信 提交于 2019-12-13 08:21:58
问题 I recreate the jquery slideshow by Jon Raasch mentioned on his blog http://jonraasch.com/blog/a-simple-jquery-slideshow this works like a charm in a normal project setup, however if i try to imply it in a joomla template, i can't seem to address the DOM elements within the setInterval function. it returns the active variable as null. here's the template code: http://cl.ly/1m2o3U1O3p3J the html part: <body> <div id="slideShow"> <img src="<?php echo $this->baseurl; ?>/templates/mushi/images

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

Basic php to set column width in Joomla

自古美人都是妖i 提交于 2019-12-11 05:48:26
问题 I am using Joomla with bootstrap to create a Joomla template. I have a 3 column layout (container totalling 12 so Bootstrap: span12). I am setting parameters in the Joomla backend to set the $left and $right column widths and then echoing those variables in my template to set the left and right div column widths (in index.php) However, I want to use a simple bit of logic in my template to automatically calculate and set the span value of the middle column based on the $left and $right values

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

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

本小妞迷上赌 提交于 2019-12-07 02:48:31
问题 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 回答1: 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

Override Joomla Component Template

时间秒杀一切 提交于 2019-12-06 15:20:14
问题 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 回答1: 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.

How to display view without template?

旧巷老猫 提交于 2019-12-05 19:07:22
问题 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. 回答1: To display the component only add "tmpl=component" parameter to url. If need to display something besides