Get raw value in custom detail template

Fastserv

Member
Hi all,

I use this to get elements in a custom detail template:
PHP:
<?php $this->element = $this->elements['typ']; echo $this->loadTemplate('element'); ?>

But how can I get the raw value?
I tried this
PHP:
<?php $this->element = $this->elements['typ_ro']; echo $this->loadTemplate('element'); ?>
but without success.
 
Raw value is in $this->elements['typ']->element_raw
I think you have to create something like an default_element_rawoutput.php
which will do <?php echo $this->element->element_raw;?>
and then do
echo $this->loadTemplate('element_rawoutput'); ?>
 
Hi troester,

thank you for this easy solution :)

By the way, I found out that custom templates does not work under PHP 5.4 (on a windows machine).
It throws a error 500 out.

In the last days I have problems to connect to the forum, is that my problem or a known forum problem?

Regards,
Stefan
 
Back
Top