9 years ago
4
Topic

I have a search form set up with two Cascading Dynamic Fields and a submit button. 

I tried to turn off the labels on these ("Makes" and "Models") by selecting the seb_css3 variation, pressing the "+" and choosing No for "Show Labels" in the Field Section, but the labels still appear.

I  have Horizontal display set.

I'm using the seb_minima template. 

My override (for the moment) is simply to render the three fields like this:

<?php
// No Direct Access
defined( '_JEXEC' ) or die;
?>
<?php echo $cck->renderField('veh_make'); ?>

<?php echo $cck->renderField('veh_model'); ?>

<?php echo $cck->renderField('button_submit'); ?>

I apparently have missed something here, can someone tell me where the real control is for displaying or not displaying labels?

Would there be an alternative to the renderField in the case of the cascading dynamic select to accomplish that?

Development site is http://www.mavenmotors.com/res

The link in question is search by make/model under development. 

Thanks!

Get a VIP membership
52 Posts
melihtas
9 years ago
3
Level 1

Hi shoshanaz,


If you set any label as "clear", that label is not shown.

9 years ago
2
Level 2

Thank you for the reply.

I set the label to clear (no quotes) on both the Make and Model.

The label IS hidden on Make now, but still shows on "Model" .  From what I can tell the settings are the same except that Make is the beginning of the cascade and Model is the end -- but perhaps there is something I am not seeing? The links below show screenshots of the settings I'm using.

Screenshot of Make Field

Screenshot of Model Field

seb_css3 (+) Field Setting

52 Posts
melihtas
9 years ago
1
Level 3

Hi,

If you set any label here, it will override field configuration panel settings.



Another option is using "get form" method instead of "renderfield".

Example: 

$cck->get('veh_make')->form;

This way only form element is shown without label, markup etc.

9 years ago
0
Level 4

Thank you -- I tried out both, and both solved the problem at hand.

The latter should prove very helpful when working with more complex layouts.

Thanks to all who took the time to respond.  It is much appreciated by this newbie.

Get a VIP membership