Hi Sebloders
A quick example of rendering a value using Before Render in a Content View
echo '<h1>'.$fields['art_title']->value.'</h1>';
'value' can be changed to anything you have available within this array:
Array
(
[art_title] => stdClass Object
(
[id] => 302
[title] => Article Title
[name] => art_title
[folder] => 10
[type] => text
[description] =>
[published] => 1
[label] =>
[selectlabel] =>
[display] => 3
[required] =>
[validation] =>
[defaultvalue] =>
[options] =>
[options2] =>
[minlength] => 0
[maxlength] => 255
[size] => 32
[cols] => 0
[rows] => 0
[ordering] => 1
[sorting] => 0
[divider] =>
[bool] => 0
[location] =>
[extended] =>
[style] =>
[script] =>
[bool2] => 0
[bool3] => 0
[bool4] => 0
[bool5] => 0
[bool6] => 0
[bool7] => 0
[bool8] => 0
[css] => form-control
[attributes] =>
[storage] => standard
[storage_cck] =>
[storage_location] => joomla_article
[storage_table] => #__content
[storage_field] => title
[storage_field2] =>
[storage_params] =>
[storages] =>
[checked_out] => 0
[checked_out_time] => 0000-00-00 00:00:00
[label2] => clear
[variation] =>
[link] =>
[link_options] =>
[markup] =>
[markup_class] =>
[typo] => "<h1 class="page-title">Some Titles Typo Value</h1>"
[typo_label] => 0
[typo_options] => {"rank":"1","class":"page-title","anchor":"0","custom":""}
[access] => 1
[restriction] =>
[restriction_options] =>
[position] => mainbody
[typo_target] => value
[linked] =>
[state] => 1
[value] => 3 Notes Per String Exercises
)
)
To see the available values, and because you have a beforerender field, you can create a beforerender field, add it to your view with following code:
print_r($fields);
or
print_r($fields) and die;
Bucklash