Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Page specific Panel

I know about this
if (in_array($Context->SelfUrl, array('index.php', 'account.php' etc

What if the pages are not known before hand, and the user has to enter on which page/s should a panel item appear.
The user will enter the page/s in a textarea on settings.php
and the panel will appear only on those pages entered by the user.

Comments

  • well you could make an extension and have user prefernces for each page and then do a double check like if($Context->selfUrl == index && Page_panel _index == 1) cant remeber exact way to add useer prefs tho. maybe use a switch for $Context->selfUrl then check if the user pref is set to 1
  • I tried this simple method
    $Pages=array('index.php', 'account.php', 'categories.php', 'comments.php', 'post.php', 'search.php', 'settings.php', 'extension.php'); if (in_array($Context->SelfUrl, $Pages ))

    now that doesn't work. even though its the same code. changed by a temp variable.
This discussion has been closed.