Comment to 'Custom Variables/Placeholders in _sub_header.html and Injections'
  • If you need to add own system replacement marker to the template you need to add it in your BxTemplFunctions.php file the following method:

        function TemplPageAddComponent($sKey)
        {
            switch( $sKey ) {
                case 'test':
                    return false; // return here additional components
                default:
                    return false; // if you have not such component, return false!
            }
        }

    after adding it you can use __test__ in _sub_header.html file.

    • Thank you, Alex T⚜️ !
      I cannot find anything like BxTemplFunction.php in the sample template module. Where can I get an example of this class?
      Also, I would like to clarify the use of injections: say, we have before_main_logo injection (if I'm not mistaken - this is default for UNA templates), which doesn't exist. If I create an injection with such a name in the database, it will be shown on the website.
      However, I don't see it under Designer->Injections, meaning that user cannot modify an injection.
      How can I display injections under Designer->Injections?
      Thank you