how use cascading dropdown

Hello , l want use cascading dropdown element but l don't understand how use it (in spite of that l read and re read the help about it in wiki doc) . Can exist a doc with detail and exemple about it ?
 
Ah, yes, there's no "Options per row" in cascading dropdown (only in dbjoin).

You'll can do it with custom css, add e.g.
Code:
.fb_el_your-full-element-name .fabrik_subelement {float:left;width:25%}
to custom_css.php in your form layout.
(Replace your-full-element-name with your cascading dropdown element)
 
to custom_css.php in your form layout. :
what is the path to find 'custom_css.php)

in this path in find only :custom_css_example.php
public_html/seblod/components/com_fabrik/views/form/tmpl/bootstrap/custom_css_example.php
 
There seems to be a syntax error in your custom_css.php.
It's known but shown as empty (which is if the final css string can't be echoed).
 
header('Content-type: text/css');
$c = (int) $_REQUEST['c'];
$view = isset($_REQUEST['view']) ? $_REQUEST['view'] : 'form';
$rowid = isset($_REQUEST['rowid']) ? $_REQUEST['rowid'] : '';
$form = $view . '_' . $c;
if ($rowid !== '')
{
$form .= '_' . $rowid;
}
echo "

/* BEGIN - Your CSS styling starts here */


.fb_el_plateforme_adherents2___Matiereproposes .fabrik_subelement {float:left;width:25%}
.fb_el_plateforme_adherents2___Matiererecherches2 .fabrik_subelement {float:left;width:25%}

/* END - Your CSS styling ends here */

where "plateforme_adherents2" is the name of list and "Matiereproposes" name of cdd element : l am not sure is the syntaxe....
 
Code:
.fb_el_plateforme_adherents2___Matiereproposes .fabrik_subelement {float:left;width:25%}
.fb_el_plateforme_adherents2___Matiererecherches2 .fabrik_subelement {float:left;width:25%}
is correct, but what is the rest of the file?
Code:
<?php
header('Content-type: text/css');
$c = (int) $_REQUEST['c'];
$view = isset($_REQUEST['view']) ? $_REQUEST['view'] : 'form';
$rowid = isset($_REQUEST['rowid']) ? $_REQUEST['rowid'] : '';
$form = $view . '_' . $c;
if ($rowid !== '')
{
    $form .= '_' . $rowid;
}
 
echo "
.fb_el_plateforme_adherents2___Matiereproposes .fabrik_subelement {float:left;width:25%}
.fb_el_plateforme_adherents2___Matiererecherches2 .fabrik_subelement {float:left;width:25%}
 
";
 
?>
should do.
 
the code :

header('Content-type: text/css');
$c = (int) $_REQUEST['c'];
$view = isset($_REQUEST['view']) ? $_REQUEST['view'] : 'form';
$rowid = isset($_REQUEST['rowid']) ? $_REQUEST['rowid'] : '';
$form = $view . '_' . $c;
if ($rowid !== '')
{
$form .= '_' . $rowid;
}
echo "

/* BEGIN - Your CSS styling starts here */


.fb_el_plateforme_adherents2___Matiereproposes .fabrik_subelement {float:left;width:25%}
.fb_el_plateforme_adherents2___Matiererecherches2 .fabrik_subelement {float:left;width:25%}

/* END - Your CSS styling ends here */

";
?>
 
sorry the good code :

<?php
/**
* Default Form Template: Custom CSS
*
* @package Joomla
* @subpackage Fabrik
* @copyright Copyright (C) 2005-2013 fabrikar.com - All rights reserved.
* @license GNU/GPL http://www.gnu.org/copyleft/gpl.html
* @since 3.0
*/

/**
* If you need to make small adjustments or additions to the CSS for a Fabrik
* template, you can create a custom_css.php file, which will be loaded after
* the main template_css.php for the template.
*
* This file will be invoked as a PHP file, so the view type and form ID
* can be used in order to narrow the scope of any style changes. You do
* this by prepending #{$view}_$c to any selectors you use. This will become
* (say) #form_12, or #details_11, which will be the HTML ID of your form
* on the page.
*
* See examples below, which you should remove if you copy this file.
*
* Don't edit anything outside of the BEGIN and END comments.
*
* For more on custom CSS, see the Wiki at:
*
* http://www.fabrikar.com/forums/index.php?wiki/form-and-details-templates/#the-custom-css-file
*
* NOTE - for backward compatibility with Fabrik 2.1, and in case you
* just prefer a simpler CSS file, without the added PHP parsing that
* allows you to be be more specific in your selectors, we will also include
* a custom.css we find in the same location as this file.
*
*/

header('Content-type: text/css');
$c = (int) $_REQUEST['c'];
$view = isset($_REQUEST['view']) ? $_REQUEST['view'] : 'form';
$rowid = isset($_REQUEST['rowid']) ? $_REQUEST['rowid'] : '';
$form = $view . '_' . $c;
if ($rowid !== '')
{
$form .= '_' . $rowid;
}
echo "

/* BEGIN - Your CSS styling starts here */


.fb_el_plateforme_adherents2___Matiereproposes .fabrik_subelement {float:left;width:25%}
.fb_el_plateforme_adherents2___Matiererecherches2 .fabrik_subelement {float:left;width:25%}

/* END - Your CSS styling ends here */

";
?>
 
Your custom_css.php is creating a 500 error, this is in your network response
<h1>500 - Internal Server Error</h1> <h2>&nbsp;This is a temporary server error.&nbsp;</h2> <h2>Please try to reload the webpage later.&nbsp;</h2> </div> <div class="line"></div> <div class="error-container"> <p>If you are the webmaster of this site please log in to Cpanel and check the Error Logs. You will find the exact reason for this error there.</p> <p>Common reasons for this error are:</p> <ul> <li>Incorrect file/directory permissions: Above 755. <p>In order files to be processed by the webserver, their permissions have to be equal or below 755. You can update file permissions with a FTP client or through cPanel's File Manager.</p> </li> <li>Incorrect Apache directives inside .htaccess file. <p>Make sure you have not specified unsupported directives inside the local .htaccess file. Such include PHP settings and Apache module settings. </p>
So check the file permissions.
 
it work think you very much.the right for all file is 644 chmod . I take for 755 custom_css.php and now it work.
(http://screencast.com/t/oMYrwHmRhy)
But when l validate my form l have lot of error message

Notice: Undefined offset: 1 in/home/reseaus8/public_html/seblod/plugins/fabrik_element/databasejoin/databasejoin.php on line 1322

Notice: Undefined offset: 0 in/home/reseaus8/public_html/seblod/plugins/fabrik_element/databasejoin/databasejoin.php on line 1322

Notice: Undefined offset: 1 in/home/reseaus8/public_html/seblod/plugins/fabrik_element/databasejoin/databasejoin.php on line 1322

Notice: Undefined offset: 2 in/home/reseaus8/public_html/seblod/plugins/fabrik_element/databasejoin/databasejoin.php on line 1322

Notice: Undefined offset: 3 in/home/reseaus8/public_html/seblod/plugins/fabrik_element/databasejoin/databasejoin.php on line 1322

Notice: Undefined offset: 2 in/home/reseaus8/public_html/seblod/plugins/fabrik_element/databasejoin/databasejoin.php on line 1322

Notice: Undefined offset: 3 in/home/reseaus8/public_html/seblod/plugins/fabrik_element/databasejoin/databasejoin.php on line 1322

Notice: Undefined offset: 2 in/home/reseaus8/public_html/seblod/plugins/fabrik_element/databasejoin/databasejoin.php on line 1322

Notice: Undefined offset: 0 in/home/reseaus8/public_html/seblod/plugins/fabrik_element/databasejoin/databasejoin.php on line 1322

Notice: Undefined offset: 2 in/home/reseaus8/public_html/seblod/plugins/fabrik_element/databasejoin/databasejoin.php on line 1322

Notice: Undefined offset: 0 in/home/reseaus8/public_html/seblod/plugins/fabrik_element/databasejoin/databasejoin.php on line 1322

Notice: Undefined offset: 1 in/home/reseaus8/public_html/seblod/plugins/fabrik_element/databasejoin/databasejoin.php on line 1322

Notice: Undefined offset: 2 in/home/reseaus8/public_html/seblod/plugins/fabrik_element/databasejoin/databasejoin.php on line 1322

Notice: Undefined offset: 0 in/home/reseaus8/public_html/seblod/plugins/fabrik_element/databasejoin/databasejoin.php on line 1322

Notice: Undefined offset: 1 in/home/reseaus8/public_html/seblod/plugins/fabrik_element/databasejoin/databasejoin.php on line 1322

Notice: Undefined offset: 2 in/home/reseaus8/public_html/seblod/plugins/fabrik_element/databasejoin/databasejoin.php on line 1322

?
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top