The Joomla! Forum ™



Forum rules


Please use the mailing list here: http://groups.google.com/group/joomla-dev-general rather than this forum.



Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Thu Jun 28, 2012 3:47 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Thu Jun 28, 2012 3:34 pm
Posts: 2
Hey, i made a simple module but the form is broken, how and where can i add css to fix it?

http://lh.rs/XHlsFuNKraQp
Code:
<config>
    <fields name="params">
        <fieldset name="basic">
            <field name="moduleclass_sfx" type="text" default="" label="Module Class Suffix" description="PARAMMODULECLASSSUFFIX" />
            <field name="url" type="text" default="" label="Paste the url" description="" />
            <field style="clear:both;float:left;background-color:red;" name="description" type="editor" default="default" rows="20" cols="40" />           
        </fieldset>
    </fields>
</config>


thanks!


Last edited by mdev on Thu Jun 28, 2012 4:08 pm, edited 1 time in total.

Top
 Profile  
 
PostPosted: Thu Jun 28, 2012 4:02 pm 
User avatar
Joomla! Apprentice
Joomla! Apprentice

Joined: Thu Sep 08, 2011 9:32 am
Posts: 28
is it from the modules XML file? Do you want to edit/add CSS for the frontend or backend?

_________________
http://www.pixelspradise.com - Joomla! Template Club


Top
 Profile  
 
PostPosted: Thu Jun 28, 2012 4:08 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Thu Jun 28, 2012 3:34 pm
Posts: 2
Yep, that code is a part of that. I want to add some clear:both to the <li> which contains the rtf editor. I think the link of the SS is bad, here's the correct: http://lh.rs/XHlsFuNKraQp


Top
 Profile  
 
PostPosted: Fri Jun 29, 2012 6:31 pm 
Joomla! Explorer
Joomla! Explorer

Joined: Fri Nov 11, 2011 9:43 pm
Posts: 432
Location: Chicago, IL
In your module's default.php file, add the below code to add either styling or javascript files replacing $url with the path to desired file.

Code:
$document =& JFactory::getDocument();
$document->addScript($url);
$document->addStyleSheet($url);


I embed my asset files (css, js, xml, etc...) in a folder labelled media in my extension's root. I included a link to Joomla's Manifest Documentation as well as Joomla's file path constants which will help in declaring the file locations and later accessing them.

http://docs.joomla.org/Constants
http://docs.joomla.org/Manifest_files
http://docs.joomla.org/Adding_JavaScrip ... o_the_page


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 



Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group