i wish to know if i can add a link named "pdf" inside CMSB like in the image (not in my php files) and with the correct id record number.
i have the viewer and its rendering the pdf fine.
This is my pdf listings:
http://localhost/cesar/pdf.php (this shows the links to the pdf renders, but i wanted to avoid this file and get from inside csmb)
This is my call to the detail:
http://localhost/cesar/cmsAdmin/plugins/createPDF/examples/calltodetail.php?id=2&rand=4461517
(it has a generated rand number to avoid cache)
<?php require_once "../../../lib/viewer_functions.php"; ?>
<?php
$id = $_GET['id'];
$url = "http://localhost/cesar/pdfdetail.php?".$id;
$data = createPDF_fromUrl($url);
createPDF_display('inline', $data, 'example.pdf');
?>