haleluay Posted March 7, 2022 Share Posted March 7, 2022 I need access h1 page title content (ex. $title variable in /core/front/global/pageHeader) from within widget template: /core/front/widgets/activeUsers. How to do it? Link to comment Share on other sites More sharing options...
Marc Posted March 7, 2022 Share Posted March 7, 2022 I have moved this topic to our developers forum for you. Development is outside the scope of standard support, but hope you manage to get an answer to what you are trying to achieve Link to comment Share on other sites More sharing options...
haleluay Posted March 9, 2022 Author Share Posted March 9, 2022 Thank you, but where is it now? Because your search refers only to this entry and google is silent with this topic (phrase: "How to access h1 page title from widget template") Link to comment Share on other sites More sharing options...
Solution Daniel F Posted March 9, 2022 Solution Share Posted March 9, 2022 Most of the time we're using the same value as the header tag, so you can access it via \IPS\Output::I()->title, so using a php block you should be able to get it via: echo \IPS\Output::i()->title; Link to comment Share on other sites More sharing options...
haleluay Posted March 9, 2022 Author Share Posted March 9, 2022 It works, thank you! Link to comment Share on other sites More sharing options...
Recommended Posts