help in creating a component... - Joomla! Forum - community, help and support


hi!
i new joomla development, have studied online documentation , joomla code. set create first extension joomla, idea create picture gallery light box.
i have created structure code , complete, problem scripts , css not load, don't know why, please have

here how included js , css files,

code: select all

$doc = & jfactory::getdocument();
$url = juri::base()."components/com_lightbox/assets/js/prototype.js";
$doc->addscript($url);

$url = juri::base()."components/com_lightbox/assets/js/scriptaculous.js?load=effects,builder";
$doc->addscript($url);

$url = juri::base()."components/com_lightbox/assets/js/lightbox.js";
$doc->addscript($url);

$url = juri::base()."components/com_lightbox/assets/css/lightbox.css";
$doc->addstylesheet($url);


it not work if include direct link of css , js in template works file,

code: select all

<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/my_template/css/lightbox.css" type="text/css" />
<script type="text/javascript" src="<?php echo $this->baseurl ?>/templates/my_template/js/prototype.js"></script>
<script type="text/javascript" src="<?php echo $this->baseurl ?>/templates/my_template/js/scriptaculous.js?load=effects,builder"></script>
<script type="text/javascript" src="<?php echo $this->baseurl ?>/templates/my_template/js/lightbox.js"></script>



i have attached working copy in component... unzip in component directory...

please create directory in images/stories/media , create many sub directories wish picture in them...

please me can , running...






Comments

Popular posts from this blog

Hur installera Joomla på One.com - Joomla! Forum - community, help and support

removing index.php from URL address - Joomla! Forum - community, help and support

「イメージマップのアンカー名には、...」のエラーが出ないようにしたい