Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Define the startpage TITLE only

phreakphreak Vanilla*APP (White Label) & Vanilla*Skins Shop MVP
edited November 2016 in Vanilla 2.0 - 2.8

Hi all,

I know that the answer is burried here somewhere but I can't find it.

I would like to give my startpage of Vanilla this title: "Home - XYZ the best forum for this and that."
and all other pages this title: "Any other page the home title - XYZ-forum.com"

Sure this can be accomplished in the /conf/locale.php through $Definition['All Discussions'] = 'Home';
and in the /conf/config.php through this '$Configuration['Garden']['Title'] = "XYZ the best forum for this and that.";

But this title would then be shown on all subpages. Can anyone tell me how to only how to define a specific title only for the startpage and keep the regular forum name XYZ-forum.com everywhere else?

Thanks, phreak

  • VanillaAPP | iOS & Android App for Vanilla - White label app for Vanilla Forums OS
  • VanillaSkins | Plugins, Themes, Graphics and Custom Development for Vanilla

Comments

  • hgtonighthgtonight ∞ · New Moderator
    1. Set the configurations to what you want everywhere else.
    2. Check before render if you are on the home page (compare against default route).
    3. If you are, override the configurations in-memory. (saveToConfig('item.name.thingy', 'Value', array('Save' => false));)
    4. Profit

    Search first

    Check out the Documentation! We are always looking for new content and pull requests.

    Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.

Sign In or Register to comment.