+ Reply to Thread
Results 1 to 8 of 8

Thread: access to admin page data

  1. #1
    Junior Member
    Join Date
    Jun 2021
    Posts
    7

    access to admin page data

    how do i access through the code the value you see in the image?
    without documentation it is quite difficult for me to understand which tables to refer to

    code1.jpg

  2. #2
    Flynax developer Rudi's Avatar
    Join Date
    Dec 2014
    Location
    Planet Earth
    Posts
    3,138
    Do you need the controller which saves the url value or mysql table where it's stored?

  3. #3
    Junior Member
    Join Date
    Jun 2021
    Posts
    7
    both please,

  4. #4
    Flynax developer Rudi's Avatar
    Join Date
    Dec 2014
    Location
    Planet Earth
    Posts
    3,138
    You can find the code for saving page URL (in edit mode) in admin > controllers > pages.inc.php > below the line } elseif ($_GET['action'] == 'edit') { (almost at the bottom)

    modify $f_path in this code:
    PHP Code:
    Only registered members can view the code
    The values of page urls you can find in pages table > Path column

  5. #5
    Junior Member
    Join Date
    Jun 2021
    Posts
    7
    thanks ... and what is the code to read that value?

  6. #6
    Flynax developer Rudi's Avatar
    Join Date
    Dec 2014
    Location
    Planet Earth
    Posts
    3,138
    What do you mean by 'read'? This value is from $_POST['path']

  7. #7
    Junior Member
    Join Date
    Jun 2021
    Posts
    7
    i have to print that data in frontend here:
    <a class="button add-property d-none d-md-flex" href="here">here</a>

    i have created my tpl file under block tree

  8. #8
    Flynax developer Rudi's Avatar
    Join Date
    Dec 2014
    Location
    Planet Earth
    Posts
    3,138
    Use $pages['PAGE_KEY']

    like $pages['home']

+ Reply to Thread