Use external catalog as fallback when there is no native catalog.
This commit is contained in:
parent
898c8e0df9
commit
6a9508371e
@ -21,7 +21,7 @@
|
|||||||
|
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<legend>External Catalog</legend>
|
<legend>External Catalog</legend>
|
||||||
<div class="warning" data-feature="External Catalog"><code>External Catalog</code> is disabled.</div>
|
<div class="warning" data-feature="External Catalog"><code>External Catalog</code> is disabled. This will be used only as a fallback.</div>
|
||||||
<div>
|
<div>
|
||||||
URLs of external catalog sites, where <code>%board</code> is to be replaced by the board name.<br>
|
URLs of external catalog sites, where <code>%board</code> is to be replaced by the board name.<br>
|
||||||
Each URL should be followed by <code>;boards:</code> and optionally <code>;exclude:</code> and a list of supported/excluded boards in the format explained in the Filter guide.
|
Each URL should be followed by <code>;boards:</code> and optionally <code>;exclude:</code> and a list of supported/excluded boards in the format explained in the Filter guide.
|
||||||
|
|||||||
@ -108,8 +108,10 @@ CatalogLinks =
|
|||||||
external
|
external
|
||||||
else if Index.enabledOn(board) and Conf['Use <%= meta.name %> Catalog']
|
else if Index.enabledOn(board) and Conf['Use <%= meta.name %> Catalog']
|
||||||
CatalogLinks.jsonIndex board, '#catalog'
|
CatalogLinks.jsonIndex board, '#catalog'
|
||||||
|
else if (nativeCatalog = Get.url 'catalog', board)
|
||||||
|
nativeCatalog
|
||||||
else
|
else
|
||||||
Get.url 'catalog', board
|
CatalogLinks.external board
|
||||||
|
|
||||||
index: (board=g.BOARD) ->
|
index: (board=g.BOARD) ->
|
||||||
if Index.enabledOn(board)
|
if Index.enabledOn(board)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user