How to add html code after <body>?

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
ASHKAR
User
Posts: 26

How to add html code after <body>?

Post by ASHKAR »

Hi PHPmaker Lovers :)

I want to add this html after <body> or befor the content ( view, add, edit ) in all pages, i tried but i can't do it

<div class="header">
  <div class="progress-container">
    <div class="progress-bar" id="myBar"></div>
  </div>  
</div>

any help :)


mobhar
User
Posts: 11727

Post by mobhar »

You may use Page_DataRendering server event that belongs to the related page.


ASHKAR
User
Posts: 26

Post by ASHKAR »

Thanks, but i am afraid that not the correct choice

i want to add this code after <body> ( before any data or any word show to users )


arbei
User
Posts: 9384

Post by arbei »

You may use Auto JS Template.


ASHKAR
User
Posts: 26

Post by ASHKAR »

I tried this code

<script type="text/html" class="ew-js-template" data-target="body" data-method="appendTo">
  <div class="header">
    <div class="progress-container">
      <div class="progress-bar" id="myBar"></div>
    </div>
  </div>
</script>

but nothing.


arbei
User
Posts: 9384

Post by arbei »

Where did you put your code?


Post Reply