How do I put a heading in a form in Version 4. When I use Formatted Text it gives me a label for "Header" but the configuration option does not allow me to change it.
Please write a review for the extension you are using on the Joomla extensions directory before posting a new question as we are being spammed by many negative reviews.
Thank you for your support!
<h3>My Header</h3>
<?php if ( !$mainframe->isSite()) { return; } // define a url for the 'clubaero' folder $clubaero_url = JURI::base() .'components/com_chronoforms/clubaero/'; // define a path for the 'clubaero' folder $clubaero_path = JPATH_SITE.DS .DS.'components'.DS.'com_chronoforms'.DS.'clubaero'.DS; $styles = $scripts = array(); // access the Joomla! Document object $doc =& JFactory::getDocument(); // Add the CSS files $doc->addStyleSheet($clubaero_url.'css/structure.css'); $doc->addStyleSheet($clubaero_url.'css/form.css'); // Add the JavaScript file $doc->addScript($clubaero_url.'scripts/clubaero.js'); $doc->addScript($clubaero_url.'scripts/wufoo.js'); $doc->addScript('https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js'); ?>It seems that the code line:
$styles = $scripts = array();does nothing! I suspect it is used to generate links to
bootstrap.min.css bootstrap-responsive.cssfrom github, but these links are still generated even if I leave out the code line.
if ( !$mainframe->isSite()) { return; }The <?php at the start is still needed.
$styles = $scripts = array();
$doc->addScript('https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js');
<?php // define a url for the 'clubaero' folder $clubaero_url = JURI::base() .'components/com_chronoforms/clubaero/'; // access the Joomla! Document object $doc =& JFactory::getDocument(); // Add the CSS files $doc->addStyleSheet($clubaero_url.'css/structure.css'); $doc->addStyleSheet($clubaero_url.'css/form.css'); // Add the JavaScript file $doc->addScript($clubaero_url.'scripts/clubaero.js'); $doc->addScript($clubaero_url.'scripts/wufoo.js'); ?>
window.addEvent('domready', function(){ var frontforms_css, template_css; frontforms_css = $$('link[href$="frontforms.css"]')[0]; frontforms_css.setProperty('href', ''); template_css = $$('link[href$="template.css"]')[0]; bootstrap_css = new Element('link', { type: 'text/css', href: 'media/jui/css/bootstrap.min.css', rel: 'stylesheet' }); bootstrap_css.inject(template_css, 'after'); });Bob
2CheckOut.com Inc. (Ohio, USA) is an authorized retailer for goods and services provided by ChronoEngine.com