Edit page by ID value
-
After moving my website to another server with php 7.3 The frontend modification no longer works and I can’t understand why.
In short, through a frontend page with the list of my pods in the table, I have a button where, by passing it the id of the pods, I go to modify it. if I pass it manually everything works.
I think the pass {@ID} function no longer works properly… Does anyone have any idea how to fix or verify
Content Page :
[pods name="azienda" fields="post_title,indirizzo,stato,pivavat,email,telefono" form="8" id="{@id}"]
Pod template content:
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> <script> $(document).ready(function(){ $("#myInput").on("keyup", function() { var value = $(this).val().toLowerCase(); $("#myTable tr").filter(function() { $(this).toggle($(this).text().toLowerCase().indexOf(value) > -1) }); }); }); </script> [before] <input type="text" id="myInput" onkeyup="myFunction()" placeholder="Cerca in tabella"> <tbody> <table id="myTable"> <thead> <tr> <th>Nome Azienda</th> <th>Indirizzo</th> <th>Stato</th> <th>Email</th> <th>telefono</th> </tr> </thead> <tbody> [/before] <tr class="header"> <td><b>{@post_title}</b></td> <td>{@indirizzo}</td> <td>{@stato}</td> <td>{@email}</td> <td>{@telefono}</td> <td><input type="button" onclick="window.location.href='https://app.local/reception/pagine-modifica/edit?id={@id}';" value="Modifica"/></td> </tr> [after] </tbody> </table> [/after]
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Edit page by ID value’ is closed to new replies.