didi.andalucia
Member
In the documentation "http://fabrikar.com/wiki/index.php/3.x_Form_Templates" -
Styling a single form element
is written:
Use a copy of the "contacts_custom" template to display single elements in positions and styles as you need.
Elements in this template are called by name, so it's only to be used by the form containing this elements
I cant find that, why contacts_custom is not exists!
OK, I have make before an custom_template, why I have copied the template_bootstrap!
The same in documentation is wrong:
Copy:
components/com_fabrik/views/form/tmpl/default/
to:
components/com_fabrik/views/form/tmpl/mytemplate/
but this works fine for forms, only the documentation is wrong!
Then I have select in the form for both front_end and back_end and for both view and form to the custom_template, what I have copied from the bootstrap folder.
Now my meaing was, I can set here in this custom_template-Folder in a file template.css or custom.css (I have copied from the template.css) the style settings of one element - but it will not been work! Again a horrable documentation ... sorry!
The template_css.php and custom_css.php has now the same:
In the form I have this for this select box, I will change:
So, what I doe wrong - and can you please edit the documentation a little bit better?! - Only 100 words can been enough to short the time for all other programmers!
Many thanks
Detlef
Styling a single form element
is written:
Use a copy of the "contacts_custom" template to display single elements in positions and styles as you need.
Elements in this template are called by name, so it's only to be used by the form containing this elements
I cant find that, why contacts_custom is not exists!
OK, I have make before an custom_template, why I have copied the template_bootstrap!
The same in documentation is wrong:
Copy:
components/com_fabrik/views/form/tmpl/default/
to:
components/com_fabrik/views/form/tmpl/mytemplate/
but this works fine for forms, only the documentation is wrong!
Then I have select in the form for both front_end and back_end and for both view and form to the custom_template, what I have copied from the bootstrap folder.
Now my meaing was, I can set here in this custom_template-Folder in a file template.css or custom.css (I have copied from the template.css) the style settings of one element - but it will not been work! Again a horrable documentation ... sorry!
The template_css.php and custom_css.php has now the same:
PHP:
<?php
header('Content-type: text/css');
$c = (int) $_REQUEST['c'];
$view = isset($_REQUEST['view']) ? $_REQUEST['view'] : 'form';
echo "
.fabrikGroup {
clear: left;
}
#{$view}_$c #reservierung___annahme {
border:1px solid red;
width:500px;
}
";
?>
In the form I have this for this select box, I will change:
HTML:
<select id="reservierung___annahme" name="reservierung___annahme[]" class="fabrikinput inputbox">
<option value="Testingort" selected="selected">Testingort</option>
<option value="anderer Ort">anderer Ort</option>
</select>
So, what I doe wrong - and can you please edit the documentation a little bit better?! - Only 100 words can been enough to short the time for all other programmers!
Many thanks
Detlef