solved $page_title in custom module

PatriaCo
PatriaCo
@the-patria-company
6 years ago
349 posts
Where do I set the $page_title in a custom module?

Thanks


--
The Patria Company - patriaco.com / quality-trades.com / a-t.life - doing Jamroom since v3

updated by @the-patria-company: 09/20/18 12:49:17AM
nate
@nate
6 years ago
917 posts
You'll need to create a profile.php for the module. The below code is in jrAction profile.php. So take a look at a few modules to decide what you need in it.

jrCore_page_title(jrCore_str_to_lower("{$_ln['jrAction']['menu']} - {$_profile['profile_name']}"));
PatriaCo
PatriaCo
@the-patria-company
6 years ago
349 posts
Not sure how everything is working in the core, but I added a lang file with the menu name string and an essentially empty profile.php -- just using the basic beginning code:

defined('APP_DIR') or exit();

And it worked. XD


--
The Patria Company - patriaco.com / quality-trades.com / a-t.life - doing Jamroom since v3
nate
@nate
6 years ago
917 posts
Just keep an eye on you activity log to make sure you didn't create any errors. If not, then you're good to go.

Tags