Jump to content

Featured Replies

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?

Solved by Daniel F

Go to solution

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

  • 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")

  • 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;

 

  • Author

It works, thank you!

Recently Browsing 0

  • No registered users viewing this page.