Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted March 7, 20223 yr 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?
March 7, 20223 yr Community Expert 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
March 9, 20223 yr Author 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")
March 9, 20223 yr Solution 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;