Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
haleluay Posted March 7, 2022 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?
Marc Posted March 7, 2022 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
haleluay Posted March 9, 2022 Author 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")
Solution Daniel F Posted March 9, 2022 Solution 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;
Recommended Posts