Jump to content

How to access h1 page title from widget template?


Go to solution Solved by Daniel F,

Recommended Posts

Posted

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?

Posted

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

Posted

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
Posted

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;

 

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...