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

Lack of Interest New Flag for Phrases + Templates

Discussion in 'Closed Suggestions' started by ragtek, Sep 1, 2011.

  1. ragtek

    ragtek Guest

    XenForo deletes the master phrases & master templates from an add-on while the add-on upgrade.

    Several add-ons (xenporta for the blocks, navbar manager for the tabs,..) creates dynamic own phrases + templates.
    This phrases + templates aren't allowed to be associated to the add-on, because they would be lost while the upgrade.
    So most coders (including me) let the add-on empty for the new phrase/template.

    That's working fine, BUT the phrases/templates won't be deleted if i delete the add-on.
    My first idea was, to set a "non existing add-on (for example: ragtek_formmanager_custom" as addon_id in the database for them.
    And while tge deinstallation, the uninstall method would delete all phrases + templates associated to this add-on.

    BUT wouldn't it be better to handle this via xf?
    What about creating a own field in the phrase + template table, which can be set to true for this elements, and which wouldn't be touched while the add-on upgrade?
     
    Reedswood and Digital Doctor like this.
  2. ragtek

    ragtek Guest

    before i forget: this would be also be cool for own routes:D
     
    Reedswood likes this.

Share This Page