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

Lack of Interest WebDav support for templates attached to add-ons

Discussion in 'Closed Suggestions' started by Jake B., Nov 15, 2014.

  1. Jake B.

    Jake B. Well-Known Member

    I was thinking something that could be done to assist it making add-on development a bit easier is to change up the way the WebDAV structure is for templates with XenForo, currently it is like this:
    • Admin_Templates
      • addon_delete.html
      • addon_edit.html
      • etc...
    • Email_Templates
      • contact.html
      • conversation_insert.html
      • etc...
    • Public_Templates
      • account.css
      • account_alerts.html
      • etc...
    Would it be possible to chane it to have something like:

    • Admin_Templates
      • addon_id
        • template_1
        • template_2
        • etc...
    • addon_delete.html
    • addon_edit.html
    • etc...
    • Email_Templates
      • addon_id
        • template_1
        • template_2
        • etc...
    • contact.html
    • conversation_insert.html
    • etc...
    • Public_Templates
      • addon_id
        • template_1
        • template_2
        • etc...
    • account.css
    • account_alerts.html
    • etc...
    if that makes sense.

    Currently if you create a template (if it'll even let you, I haven't tried) it will not be assigned to an add-on. This could make add-on development much easier.
     
    batpool52! and Arty like this.
  2. Arty

    Arty Well-Known Member

    Problem with that approach is third party styles might include templates for add-ons that aren't installed on forum. Those templates will not have add-on associated with them.

    I don't see why it needs to be complicated at all. You can already edit add-on templates in WebDav - create empty template in admin control panel, edit it in master style or admin style in WebDav. The only minor step required is to create empty template in admin control panel to assign it to add-on, which takes few seconds.
     
  3. Jake B.

    Jake B. Well-Known Member

    Then they wouldn't be in a directory identified by the add-on ID.
     
  4. Arty

    Arty Well-Known Member

    Actually never mind. It could be an improvement. Good idea
     

Share This Page