franciccio-ITALIANO Posted May 22, 2019 Share Posted May 22, 2019 Hi, for the images I must change <img style="float:right;" class="attention-img-popup" src="assets/img/attention1.png" alt=""> with: <img style="float:right;" class="attention-img-popup" src="$page->images" alt=""> For the text: <p class="text">My text</p> with: <p class="text">$page->body</p> It's right? Where I find the code for video, gallery image etc etc? Link to comment Share on other sites More sharing options...
Gideon So Posted May 23, 2019 Share Posted May 23, 2019 Hi @franciccio-ITALIANO, Welcome to the forum. If you want to show a image from a image field that set limit to 1 image per field, please try <img style="float:right;" class="attention-img-popup" src="<?php echo $page->images; ?>" alt=""> You can read more imfo about image field here: https://processwire.com/docs/fields/images/ Gideon Link to comment Share on other sites More sharing options...
louisstephens Posted May 23, 2019 Share Posted May 23, 2019 13 hours ago, franciccio-ITALIANO said: Where I find the code for video, gallery image etc etc? It really depends on what you have named your fields. I believe by "default" (on the basic-page template) they are title, headline, summary, body, sidebar, and images. <?php echo $page->title; ?> <?php echo $page->headline; ?> <?php echo $page->summary; ?> <?php echo $page->body; ?> <?php echo $page->sidebar; ?> However, your templates could/most likely be vastly different than what anyone else has. Link to comment Share on other sites More sharing options...
franciccio-ITALIANO Posted May 24, 2019 Author Share Posted May 24, 2019 Oh Thanks a lot! ? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now