Where and how to change coding to display image directly in express detail

Permalink 1 user found helpful
Please help me

 
Myq replied on at Permalink Reply
Myq
Is the problem with this link?
<?=URL::to($detailPage, 'express_entry_detail', $item->getEntry()->getId())?>


Or some other part of the code? What error do you see?
davidkham replied on at Permalink Reply
Thank for the help.I change the question and help me if you know
Where and how to change coding to display image directly in express detail
Myq replied on at Permalink Reply
Myq
Could you add the specific example back to your question? It will be hard for anyone to help without a specific example.
davidkham replied on at Permalink Reply 1 Attachment
I attached the screen shot phpto.
Image does not show directly in express detail.

Where I can change from coding to display image
Myq replied on at Permalink Reply
Myq
Thanks. Can you post your code too?
davidkham replied on at Permalink Reply
I don`t know that where is the file and folder about express detail.
Thus I would like to know where the file is to edit about image
Myq replied on at Permalink Reply
Myq
You can customize the page type and display a thumbnail for the image like this:
https://www.concrete5.org/community/forums/customizing_c5/displaying...

or the whole image like this:

https://www.concrete5.org/community/forums/customizing_c5/express-cu...
davidkham replied on at Permalink Reply
Thanks. It has been OK about express list(blocks/express_entry_list/view.php) but I don`t know the file to change for express detail

This is blocks/express_entry_detail/view.php
<?php defined('C5_EXECUTE') or die(_("Access Denied.")); ?>
<?php
if (isset($renderer) && isset($entry) && is_object($entry)) { 
?>
<?php 
echo $renderer->render($entry);
?>
<?php } ?>
davidkham replied on at Permalink Best Answer Reply
Thanks for reply and advise.
Now It worked the following code in concrete\blocks\express_entry_detail\view.php
<?php defined('C5_EXECUTE') or die(_("Access Denied.")); ?>
<?php
if (isset($renderer) && isset($entry) && is_object($entry)) { 
         $photoFileObject = $entry->getImg();
            if (is_object($photoFileObject)) {
                $photoFileObjectVersion = $photoFileObject->getVersion();
                $photoRelativePath = $photoFileObjectVersion->getRelativePath();
            }
    ?>
    <img src="<?php echo $photoRelativePath; ?>" width="100%">
    <div class="detail_p">
        <p class="detail-t">BBBBBBBBB</p>
        <p><?=$entry->getBbbbbbbbbb();?>
    </div>
    <br>
Myq replied on at Permalink Reply
Myq
Great job! Problem now solved?
davidkham replied on at Permalink Reply
Yes, problem was ok

Thank a million