71 Posts
Dgikar
8 years ago
1
Topic

Hi All

I use Custom Template + my markup.php. If I, write:

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

It's OK - Conditional States - is work. But, if I write:

<?php echo $cck->getLabel( 'my_field' ); ?>
?php echo $cck->getForm( 'my_field' ); ?>

Conditional States - is't work.


Question:

    How and what I must write in markup.php to Conditional States, work correctly?


P. S.

Now, in my markup.php, I have thise code for Conditional States:

if ( isset( $field->conditional ) && $field->conditional ) {
	$cck->setConditionalStates( $field );
}

And for Computation Rules - thise code:

if ( isset( $field->computation ) && $field->computation ) {
	$cck->setComputationRules( $field );
}

Thank you in advance for your answers!

Get a Book for SEBLOD
4229 Posts
Kadministrator
8 years ago
0
Level 1

As you wrote, you can use $cck->renderField - there is no method to get conditionals separately.

Get a Book for SEBLOD