User Rating: 2 / 5

Star ActiveStar ActiveStar InactiveStar InactiveStar Inactive
 

Building Media on Joomla Component

Component development might be run or runs javascript and style sheet files that do not exist, create a folder named Joomla system component in the media. 

For example, component hello => media / com_hello. 

And may be create a folder to store the style sheet css js folder to store javascript img folder to store the images. I use the Component

For example, the image file to use JUri :: root () for reference at the Joomla installation.

<?php echo JUri::root().'media/com_hello/img/picture.jpg';?>

 

For example, to call the css files with javascript.

/ / Called Object Document of Joomla. 
$ document = JFactory :: getDocument (); 
/ / Call the javascript file with the command addScript (). 
$ document-> addScript (JUri :: root (). 'media / com_hello / js / script.js'); 
/ / Calls css files with commands addStyleSheet (). 
$ document-> addStyleSheet (JUri :: root (). 'media / com_hello / css / style.css');

 

Chapter 16 - Creating Sidebar Component Development

Recent Topics
Subject
Post Reply
Open
Recent
介绍MDEMBED。该插件有创建链接、上传视频、文章、网站joomla 2.5、3.x的按钮。
By wipaporn Fri 15 Feb 2019 1:52 pm Board Chinese Language - 简体中文
0
10724
Fri 15 Feb 2019 1:52 pm By wipaporn
Introducing MApplication Form Components. Job application forms via the website.
By wipaporn Fri 15 Feb 2019 11:14 am Board English Language
1
3766
Tue 15 Oct 2019 1:20 pm By mindphp
Features Review : Mod MDFiles Categories bantu memaparkan Kategori MDFiles
By abdkode Thu 14 Feb 2019 6:13 pm Board Bahasa Language
0
7620
Thu 14 Feb 2019 6:13 pm By abdkode
Introducing Mod MDFiles Featured MDFiles popular modules bring files from MDFile to show.
By wipaporn Wed 13 Feb 2019 6:51 pm Board English Language
0
16703
Wed 13 Feb 2019 6:51 pm By wipaporn
Introducing MDFiles Featured modules bring files from MDFile to show
By wipaporn Wed 13 Feb 2019 6:34 pm Board English Language
0
2919
Wed 13 Feb 2019 6:34 pm By wipaporn
Introducing Editors XTD Multicontent, a plugin for pulling articles from Master Site into Web Clien.
By wipaporn Wed 13 Feb 2019 6:05 pm Board English Language
0
6394
Wed 13 Feb 2019 6:05 pm By wipaporn
Introducing MJUpgrade for upgrading Joomla 1.5 to Joomla 2.5, 3.X
By wipaporn Wed 13 Feb 2019 6:03 pm Board English Language
3
1963
Mon 13 Apr 2020 7:01 pm By prmindphp
Introducing the Mod vinaora visitors counter for counting website visits in joomla
By wipaporn Wed 13 Feb 2019 6:01 pm Board English Language
0
1710
Wed 13 Feb 2019 6:01 pm By wipaporn
Introducing MVDO plugin for uploading Youtube videos and Clipmass
By wipaporn Wed 13 Feb 2019 5:58 pm Board English Language
0
1516
Wed 13 Feb 2019 5:58 pm By wipaporn
Introducing MDGallery Components for creating photo galleries on Joomla 3.x website
By wipaporn Wed 13 Feb 2019 5:54 pm Board English Language
13
9512
Tue 31 Mar 2020 6:37 pm By prmindphp
Plugin MD Watermark 소개, 자동 워터마킹용 플러그
By wipaporn Wed 13 Feb 2019 3:53 pm Board korean Language - 한국어
0
2796
Wed 13 Feb 2019 3:53 pm By wipaporn
PayToRead 소개. 플러그인은 일부 텍스트만 보여준다.
By wipaporn Wed 13 Feb 2019 3:51 pm Board korean Language - 한국어
0
2088
Wed 13 Feb 2019 3:51 pm By wipaporn
Facebook에 웹 사이트 회원 등록을 돕기 위한 Component MFacebook 소개
By wipaporn Wed 13 Feb 2019 3:48 pm Board korean Language - 한국어
0
1408
Wed 13 Feb 2019 3:48 pm By wipaporn
"Module Mrelated Article Specific Category" (저장소 검색 이력)을 소개한다
By wipaporn Wed 13 Feb 2019 3:46 pm Board korean Language - 한국어
1
4675
Thu 27 Feb 2020 10:20 pm By mindphp
MDFiles Categories Module을 소개한다.
By wipaporn Wed 13 Feb 2019 3:44 pm Board korean Language - 한국어
0
838
Wed 13 Feb 2019 3:44 pm By wipaporn
MDFile의 파일을 보여주는 mod mdfile recent 모듈 소개
By wipaporn Wed 13 Feb 2019 3:41 pm Board korean Language - 한국어
0
997
Wed 13 Feb 2019 3:41 pm By wipaporn
Joomla용 MDFile Components를 소개하고, 웹사이트에서 문서 파일을 다운로드하는 것을 돕는다.
By wipaporn Wed 13 Feb 2019 3:37 pm Board korean Language - 한국어
0
377
Wed 13 Feb 2019 3:37 pm By wipaporn
介绍joomla的components mdfile,帮助在网站上下载文档文件。
By wipaporn Wed 13 Feb 2019 3:32 pm Board Chinese Language - 简体中文
0
10956
Wed 13 Feb 2019 3:32 pm By wipaporn
介绍mod mdfile recent模块以显示mdfile中的文件
By wipaporn Wed 13 Feb 2019 3:29 pm Board Chinese Language - 简体中文
0
16645
Wed 13 Feb 2019 3:29 pm By wipaporn
介绍mod mdfiles categories模块从mdfile中引入类别。
By wipaporn Wed 13 Feb 2019 3:27 pm Board Chinese Language - 简体中文
0
22776
Wed 13 Feb 2019 3:27 pm By wipaporn