Wie kann der Wert einzelner Tags ausgegeben werden - also nicht der
Code:
<?php echo $entry->field('feldname_tag')->html(); ?>
Code:
<?php echo $entry->field('feldname_tag')->value(); ?>
<?php echo $entry->field('feldname_tag')->html(); ?>
<?php echo $entry->field('feldname_tag')->value(); ?>
<a rel="" title="Details" class="hyperlink_txt" href="<?php echo $entry->links('detail')->url; ?>">Details</a>
<?php if($entry->get('more')): ?>
<p class="more">Details</p>
<?php endif; ?>
$GLOBALS['TL_LANG']['PCT_CUSTOMELEMENTS']['more'] = 'Details';
// @param object: (optional) a custom comments configuration (default CC config settings)
// @return object: $foo->comments, $foo->pagination, $foo->headline
echo $this->entries[0]->getComments('MY-CUSTOM-COMMENTS-CONFIG');
echo $this->entries[0]->comments(); // return array
echo $this->entries[0]->getCommentForm('mod_comment_form');
<?php foreach($this->entries as $entry): ?>
<?php // Comments object for the entry
$objComments = $entry->getComments(); ?>
<h3><?php // headline
echo $objComments->headline; ?></h3>
<?php // render comments
echo implode('',$objComments->comments); ?>
<?php // render comments form
echo $entry->getCommentForm('mod_comment_form'); ?>
<?php // render the comments pagination
echo $objComments->pagination; ?>
<?php endforeach; ?>
echo $this->field('myField')->value();
echo $this->field('myField')->option('imageUrl');
echo $this->field('myField#1')->value();
echo $this->field('myField')->html();
echo $this->field('myField')->attribute()->title;
echo $this->field('myImageField')->picture(); // optional parameter: custom picture template (string)
echo $this->field('myImageField')->generate(); // optional parameter: size (array)
echo $this->groups(); // Array
foreach($this->group('myGroup') as $fields)
{
foreach($fields as $field)
{
echo $field->html();
}
}
echo $this->entries; // Array
echo $this->entries[0]->links('detail'); // return objekt: $foo->link, $foo->url, $foo->html
echo $this->entries[0]->links('detail')->url;
echo $this->entries[0]->links('MY-CHILD-TABLENAME')->url;
echo $this->entries[1]->html();
echo $this->entries[1]->html('customcatalog_item_custom');
Einen Kommentar schreiben: