can custom button be added to custom page?

larryk

Well-known member
I've added a custom button to a table edit page, but can you add custom button to a custom php page?

thanks
 

larryk

Well-known member
On the permission page, if you select the custom page, you see Dadabik giving the table name:

permissions_manager.php?tablename=dadabik_custom_page_3


So that makes sense on WHAT table to use, however what do you use for:

$custom_buttons['products'][$cnt]['show_in'][] = '????';


all available options, my custom page dosn't use/need?

thanks
 

larryk

Well-known member
I've tried a few things, it is not working.

Has anyone used a custom button on a custom page?

thanks
 

PdePutter

New member
This can be done. Basically you have to create the button in the (custom) PHP file. For example:
<a class="btn btn-menu href="'.$_cp_URL_to_Show.'">'.$_cp_Caption_en.'</a>
(In my case, I have a seperate table where I store the URL that the button should open, as well as the caption of the button. So these are read from a table in the $cp_URL_to_Show an $cp_Caption_en variables.)
 
Top