Opened 2 years ago

Last modified 2 years ago

#5336 closed change

Allow additional include, page, and template paths using CMS — at Initial Version

Reported by: juliandoucette Assignee:
Priority: P2 Milestone: Websites code sharing
Module: Sitescripts Keywords:
Cc: wspee, kvas, jsonesen, ire, saroyanm, juliandoucette Blocked By:
Blocking: Platform: Unknown / Cross platform
Ready: yes Confidential: no
Tester: Unknown Verified working: no
Review URL(s):

https://codereview.adblockplus.org/29555839/

Description

Background

  • We would like to share code across websites
  • If I am able to add dependencies to websites (see #5335)
    • Then I could also add generic includes, pages, and templates to website-defaults
      • If CMS would allow me to load from additional paths

What to change

Allow me to specify additional include, page, and template paths that will resolve if they cannot be found in the default paths. e.g.

If I specify:
additional_includes=[node_modules/website-defaults/includes]

Then I:
<? include example ?>

Then:

  1. CMS should check includes/examlpe
  2. If it doesn't find example there then it should check the paths specified above

  • I'm open to suggestion about how and where this should be specified
    • The first thing that comes to mind is settings.ini

Change History (0)

Note: See TracTickets for help on using tickets.