Jump to content

How add pw-text/body and pw-image in a template


Recommended Posts

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...