Documentation

iCagenda user guide and tips

3.4.0 : Add Custom Fields

The custom fields can be easily displayed in your custom theme pack.
To display filled custom fields for an event, in the event details view, follow instructions below.

 

UPGRADING YOUR CUSTOM THEME PACK

  1. Open YOUR_THEME_event.php in a text editor.

  2. Add those lines where you want to display custom fields:
    					<?php // Custom Fields ?>
    					<?php if ($CUSTOM_FIELDS): ?>
    						<?php foreach ($CUSTOM_FIELDS AS $FIELD): ?>
    							<?php if ($FIELD->value) : ?>
    								<div class="ic-divRow">
    									<div class="ic-divCell ic-label"><?php echo $FIELD->title; ?></div>
    									<div class="ic-divCell"><?php echo $FIELD->value; ?></div>
    								</div>
    							<?php endif; ?>
    						<?php endforeach; ?>
    					<?php endif; ?>
    
     
  3. CSS classes and HTML structure may be different depending of your custom coding. The code above is extracted from the official theme pack 'default', and calling 'default' CSS classes.

Follow Us

Search