Title: PDF Hyperlink
Last modified: August 31, 2016

---

# PDF Hyperlink

 *  [lumie](https://wordpress.org/support/users/lumie/)
 * (@lumie)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/pdf-hyperlink/)
 * I have a link in a column of my db, but when i show the record in my website 
   i see an empty column.
 * How i made to see it ??
 * Thank you
 * [https://wordpress.org/plugins/custom-database-tables/](https://wordpress.org/plugins/custom-database-tables/)

Viewing 10 replies - 1 through 10 (of 10 total)

 *  Plugin Author [ka2](https://wordpress.org/support/users/ka2/)
 * (@ka2)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/pdf-hyperlink/#post-7205255)
 * Thank you for your inquiry.
 * Please try to disable it uncheck the “sanitization” option of that table from“
   modify table”. Then, please try to register data to that table.
 * Thank you,
 *  Thread Starter [lumie](https://wordpress.org/support/users/lumie/)
 * (@lumie)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/pdf-hyperlink/#post-7205259)
 * i have unchecked the flag and i have inserted a new record, now i don’t see any
   record.
 * Why ?
 * Thank you for reply.
 * see here: [http://www.studiolegaledm.it/sentenze/](http://www.studiolegaledm.it/sentenze/)
 *  Plugin Author [ka2](https://wordpress.org/support/users/ka2/)
 * (@ka2)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/pdf-hyperlink/#post-7205260)
 * Thank you very much for your prompt reply.
 * When I saw your site, I had found an error that had occurred in the JavaScript.
   
   That error is below;
 *     ```
       Uncaught ReferenceError: checkCookie is not defined
       ```
   
 * Variable of “checkCookie” does not define in JavaScript on this page.
    Since 
   Custom DataBase Tables plugin does not use a variable named “checkCookie”, it
   seems to be a theme or other plugins error that you are using.
 * Because I could verify to have been getting the data of table by a shortcode 
   retrieving, I think that will display if you can eliminat an error of JavaScript.
 * Thank you,
 *  Thread Starter [lumie](https://wordpress.org/support/users/lumie/)
 * (@lumie)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/pdf-hyperlink/#post-7205264)
 * Hello,
 *  I have removed “Italian law Cookie plugin”, now the there is not wodpress_test_cookie
   with value WP+COOKIE+CHECK.
 *  But i dont’ see the record in my table.
 * thank you for reply
 *  Plugin Author [ka2](https://wordpress.org/support/users/ka2/)
 * (@ka2)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/pdf-hyperlink/#post-7205279)
 * Hi there,
 * I had checked the your page again, but it was the same error occurs yet.
    I think
   like that is occurring error by the below script appended in the html body on
   your page.
 *     ```
       <script type="text/javascript">
         var dropCookie = true;
         var cookieDuration = 28;
         var cookieName = 'complianceCookie';
         var cookieValue = 'on';
         var privacyMessage = "";
   
         jQuery(document).ready(function($) {
           privacyMessage = jQuery('#hidden-cookie-message').html();
             	if(checkCookie(window.cookieName) != window.cookieValue){
         		createDiv(true);
         		window.setTimeout(function() {
             		$('#cookie-law').fadeOut();
         		}, 999999999);
         	}
         });
       </script>
       ```
   
 * That above “checkCookie()” function is undefined.
    How about trying follows?
 *     ```
       <script type="text/javascript">
         var dropCookie = true;
         var cookieDuration = 28;
         var cookieName = 'complianceCookie';
         var cookieValue = 'on';
         var privacyMessage = "";
   
         jQuery(document).ready(function($) {
           privacyMessage = jQuery('#hidden-cookie-message').html();
           if (typeof checkCookie == 'function') {
             if(checkCookie(window.cookieName) != window.cookieValue){
               createDiv(true);
               window.setTimeout(function() {
                 $('#cookie-law').fadeOut();
               }, 999999999);
             }
           }
         });
       </script>
       ```
   
 * It should work if there are no errors in JavaScript.
 * Thank you,
 *  Thread Starter [lumie](https://wordpress.org/support/users/lumie/)
 * (@lumie)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/pdf-hyperlink/#post-7205280)
 * Ok, but no i have removed the ITALIAN LAW COOKIE plugin and have removed all 
   files, but i dont’ see difference.
 * The table is empty!
 * Thank you
 *  Thread Starter [lumie](https://wordpress.org/support/users/lumie/)
 * (@lumie)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/pdf-hyperlink/#post-7205281)
 * Hello I have solved. I have deleted another plugin.
 * I thank you and excuse me
 *  Thread Starter [lumie](https://wordpress.org/support/users/lumie/)
 * (@lumie)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/pdf-hyperlink/#post-7205291)
 * Hello,
 *  Your plugin work corretly, but how i made to wiew corretly the link ?
 *  Now i see the HTML CODE :
 * [http://www.studiolegaledm.it/wp-content/uploads/2016/03/PDF.png](http://www.studiolegaledm.it/wp-content/uploads/2016/03/PDF.png)
 * Thank you
 *  Thread Starter [lumie](https://wordpress.org/support/users/lumie/)
 * (@lumie)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/pdf-hyperlink/#post-7205293)
 * this is the link : [http://www.studiolegaledm.it/sentenze/](http://www.studiolegaledm.it/sentenze/)
 *  Plugin Author [ka2](https://wordpress.org/support/users/ka2/)
 * (@ka2)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/pdf-hyperlink/#post-7205301)
 * Currently sanitization option is valid only in the column of the varchar and 
   char. And the column of text type is invalid. Does not your “link” column probably
   define text type column?
 * Such case, please add filter of following;
 *     ```
       function my_shortcode_custom_columns( $columns, $shortcode_name, $table ){
         if ( 'your_table_name' === $table ) {
           foreach ( $columns as $_i => $_column ) {
             if ( 'link' === $_column['property'] ) {
               $columns[$_i]['customColumnRenderer'] = '$("<div/>").html(_.unescape(rowData.link)).text()';
             }
           }
         }
         return $columns;
       }
       add_filter( 'cdbt_shortcode_custom_columns', 'my_shortcode_custom_columns', 10, 3 );
       ```
   
 * The place where you add is a good in such “functions.php” of your theme.
 * Please try it.

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘PDF Hyperlink’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/custom-database-tables_e4e2e2.svg)
 * [Custom DataBase Tables](https://wordpress.org/plugins/custom-database-tables/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/custom-database-tables/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/custom-database-tables/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-database-tables/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-database-tables/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-database-tables/reviews/)

## Tags

 * [hyperlink](https://wordpress.org/support/topic-tag/hyperlink/)

 * 10 replies
 * 2 participants
 * Last reply from: [ka2](https://wordpress.org/support/users/ka2/)
 * Last activity: [10 years, 1 month ago](https://wordpress.org/support/topic/pdf-hyperlink/#post-7205301)
 * Status: not resolved