Menu

How do I call top 10 surnames blocks in a custom page?

Help
xiaofo
2018-10-31
2018-11-01
  • xiaofo

    xiaofo - 2018-10-31

    I want to call top10 surnames on a custom page, I want to know how do I call a module? Please help me, thank you.

     
  • Gerry Kroll

    Gerry Kroll - 2018-10-31

    The Top 10 Surnames list is one of many GEDCOM statistics that are available for your use in the Advanced HTML block.

    If you inspect the programming in the Advanced HTML block, you should be able to discover how this block makes use of the various statistics functions.

     
    • xiaofo

      xiaofo - 2018-10-31

      How do you call advanced html blocks on other pages such as individuals page?Or a newphp file. thank you very much!

       
  • xiaofo

    xiaofo - 2018-11-01

    thank you very much. After your guidance, I succeeded in achieving it.
    There are two ways to achieve this, the first is by calling the functions_rss.php file, referring to rss.php, and calling getTop10Surnames();
    The second way is to copy the function to the new file by referring to the blocks/top10_surnames.php file,
    Here is my new php page code,I hope to help more people.:

    <?php
    
    define('PGV_SCRIPT_NAME', 'top10.php');
    
    require './config.php';
    
    require_once PGV_ROOT.'blocks/top10_surnames.php';
    require_once PGV_ROOT.'includes/functions/functions_print_lists.php';
    
    print_block_name_top10($block=false, $config="","","")
    ?>
    
     

    Last edit: xiaofo 2018-11-01

Log in to post a comment.