Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
en:entwickler:make_your_plugin_compatible_to_admidio_4 [2020/05/30 13:45] – created fasseen:entwickler:make_your_plugin_compatible_to_admidio_4 [2021/01/05 14:15] (current) fasse
Line 13: Line 13:
 <code php>$page = new HtmlPage('My Headline'); <code php>$page = new HtmlPage('My Headline');
 $page->setUrlPreviousPage($gNavigation->getPreviousUrl());</code> $page->setUrlPreviousPage($gNavigation->getPreviousUrl());</code>
 +If you want to add a menu entry to the page than just add this code:
 +<code php>$page->addPageFunctionsMenuItem('menu_item_new', 'Name of Menuentry', ADMIDIO_URL.FOLDER_MODULES.'/groups-roles/groups_roles_new.php', 'fa-plus-circle');</code>
 +
 +==== Replaced functions ====
 +''$page->hideThemeHtml();'' is replaced by ''$page->setInlineMode();''
 +
 +''$page->hideMenu();'' is replaced by ''$page->setInlineMode();''
 +
 +''safeurl('your-url')'' is replaced by ''SecurityUtils::encodeUrl('your-url')''
 +
 +==== Changed methods ====
 +The HtmlPage constructor has become a new necessary parameter:
 +<code php>$page = new HtmlPage('My Headline');
 +// must now be
 +$page = new HtmlPage('admidio-page-id', 'My Headline');</code>
 +
 +New method to open the modal window. Just add a class and a data-href:
 +<code html><a class="openPopup" href="javascript:void(0);" data-href="http://www.example.com">My Link to a modal window</a></code>
 +
 +==== Changed constants ====
 +''FIELD_DEFAULT'' is replaced by ''HtmlForm::FIELD_DEFAULT''
 +
 +''FIELD_REQUIRED'' is replaced by ''HtmlForm::FIELD_REQUIRED''
 +
 +''FIELD_DISABLED'' is replaced by ''HtmlForm::FIELD_DISABLED''
 +
 +''FIELD_READONLY'' is replaced by ''HtmlForm::FIELD_READONLY''
 +
 +''FIELD_HIDDEN'' is replaced by ''HtmlForm::FIELD_HIDDEN''
  • en/entwickler/make_your_plugin_compatible_to_admidio_4.1590839136.txt.gz
  • Last modified: 2020/05/30 13:45
  • by fasse