1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Calling custom settings

Discussion in 'XenForo Development Discussions' started by katsulynx, Jan 13, 2014.

  1. katsulynx

    katsulynx Well-Known Member

    I've been struggling for quite a while now when trying to create my own addon and have come to the conclusion, that I will just bombard you with my questions. Second one is about custom settings.

    So I have created my own settings page including of course the settings as - for now - a simple textbox. I now want to call the input inside this textbox in my template modification, best would be if I would also be able to check if it is empty or not.
  2. Brogan

    Brogan XenForo Moderator Staff Member

    Do you mean options?

    You can check using, e.g. <xen:if is="{$xenOptions.boardTitle}">
  3. katsulynx

    katsulynx Well-Known Member

    Yeah, sorry. I'm using a german version of XenForo, probably should change that for development purpose.

    People shall be able to move to Users -> MyAddon -> and set a link in a textbox there. I then want to call this Link inside the template modification but only if the field is filled.
  4. katsulynx

    katsulynx Well-Known Member

    So this is what I want to call inside the templates:

  5. Brogan

    Brogan XenForo Moderator Staff Member

    The option check will do that.
    However, you can probably do what you're doing with a custom user field.
    katsulynx likes this.
  6. katsulynx

    katsulynx Well-Known Member

    Already did that. But I want to pack it up for others to use and also include permission settings.

    EDIT: Figured my syntax out, is working now. Thanks!
    Last edited: Jan 13, 2014

Share This Page