Hi Max,
I am using the new CC6 (About time!) I have my CC view set up from the table and it shows the data I want to, I have an edit button which takes me to the inbuilt CC6 edit form, above the new image upload box I have a custom area which I am attempting to use php to display the currently saved image, or if it's empty it shows my blank.jpg file.
The code that I have adjusted from the original CC4/CF4 topic is:
What is the correct method to fill the area "dynamic-data" so it displays the current uploaded image?
Thanks in Advance
Dave
I am using the new CC6 (About time!) I have my CC view set up from the table and it shows the data I want to, I have an edit button which takes me to the inbuilt CC6 edit form, above the new image upload box I have a custom area which I am attempting to use php to display the currently saved image, or if it's empty it shows my blank.jpg file.
The code that I have adjusted from the original CC4/CF4 topic is:
<?php
if ( !empty($this->get("read_vehicle.Vehicle.image")) ) {
echo "<img src='".JURI::root()."components/com_chronoforms5/chronoforms/uploads/newvehicle/ *dynamic-data*' />";
} else {
echo "<img src='".JURI::root()."components/com_chronoforms5/chronoforms/uploads/newvehicle/blank.jpg' />";
}
?>
What is the correct method to fill the area "dynamic-data" so it displays the current uploaded image?
Thanks in Advance
Dave