Plugin Landing Pages :piccolo_airplane:

Questo è un depistaggio. È un avviso, non un errore fatale. È irrilevante per il problema che stai riscontrando.

1 Mi Piace

Grazie @RGJ e @nathank.

Non sono riuscito a estrarre correttamente da GitHub nonostante abbia testato la connessione senza problemi.

Ho finito per mettere alcuni file del tema in una directory accessibile via web e utilizzare l’input admin Page body html.erb, che funziona bene nonostante le altre difficoltà.

Sto cercando di utilizzare il plugin Landing Pages di Pavilion per creare una pagina HTML personalizzata. Il mio obiettivo è che questa pagina venga visualizzata con l’intestazione e il piè di pagina nativi del mio forum Discourse, non come una pagina vuota autonoma.

Ho anche installato il componente del tema “Home Pages” di accompagnamento, poiché ho capito che è necessario per “avvolgere” la pagina nel layout del forum.

Ho creato con successo il mio contenuto nel plugin Landing Pages (ad esempio, al percorso /mypage), ma sono completamente bloccato su come configurare il componente “Home Pages”.

L’impostazione del componente Homepages ha un “Launch Editor” molto complesso. Non sono sicuro di cosa inserire per semplicemente “richiamare” la mia landing page e aggiungere il layout nativo.

Qualcuno potrebbe fornire una guida su come configurare questo per una semplice pagina HTML?

Grazie!

Non so se sia rilevante, ma quando apro l’Inspector ricevo messaggi di errore, anche se non sto usando affatto il plugin. Forse questo può aiutare lo sviluppatore a capire se c’è qualcosa che deve essere corretto?

Riepilogo
deprecated.js:49 DEPRECATION NOTICE: Looking up 'route:admin-plugins-landing-pages' is no longer permitted. Rename to 'route:admin-plugins/landing-pages' instead [deprecation id: discourse.deprecated-resolver-normalization]
a @ deprecated.js:49
_normalize @ resolver.js:234
normalize @ index.js:205
normalizeFullName @ registry-BJpQx6hv.js:606
normalizeFullName @ registry-BJpQx6hv.js:608
normalize @ registry-BJpQx6hv.js:622
lookup @ registry-BJpQx6hv.js:131
lookup @ container_proxy.js:27
getRoute @ router.js:252
i @ index.ts:121
fetchRoute @ router-BViwI_oJ.js:260
get route @ router-BViwI_oJ.js:194
_getQPMeta @ router.js:913
_getQPMeta @ index.ts:101
_hydrateUnsuppliedQueryParams @ router.js:1018
_prepareQueryParams @ router.js:897
normalizeQueryParams @ routing-service.js:57
_generateURL @ routing-service.js:63
generateURL @ routing-service.js:71
get href @ index-BCp6wOJU.js:929
eM @ cache-fCezwMOy.js:1647
(anonymous) @ index.js:87
(anonymous) @ index.js:64
X @ index.js:416
k @ index.js:62
en @ index.js:1112
flush @ index.js:1089
(anonymous) @ index.js:665
evaluate @ index.js:103
evaluateSyscall @ index.js:2873
evaluateInner @ index.js:2852
evaluateOuter @ index.js:2849
next @ index.js:4167
_execute @ index.js:4157
execute @ index.js:4133
handleException @ index.js:3450
handleException @ index.js:3592
throw @ index.js:3414
evaluate @ index.js:565
_execute @ index.js:3401
execute @ index.js:3393
rerender @ index.js:3610
(anonymous) @ index-BCp6wOJU.js:4639
(anonymous) @ index-BCp6wOJU.js:4934
eX @ index.js:2414
_renderRoots @ index-BCp6wOJU.js:4914
_renderRootsTransaction @ index-BCp6wOJU.js:4962
_revalidate @ index-BCp6wOJU.js:4995
invoke @ index.js:262
flush @ index.js:180
flush @ index.js:334
_end @ index.js:762
(anonymous) @ index.js:499
Promise.then
(anonymous) @ index.js:18
flush @ index.js:29
_scheduleAutorun @ index.js:928
_end @ index.js:768
(anonymous) @ index.js:499
Show 54 more frames
Show less
deprecated.js:49 DEPRECATION NOTICE: Looking up 'controller:admin-plugins-landing-pages' is no longer permitted. Rename to 'controller:admin-plugins/landing-pages' instead [deprecation id: discourse.deprecated-resolver-normalization]
a @ deprecated.js:49
_normalize @ resolver.js:234
normalize @ index.js:205
normalizeFullName @ registry-BJpQx6hv.js:606
normalizeFullName @ registry-BJpQx6hv.js:608
normalize @ registry-BJpQx6hv.js:622
lookup @ registry-BJpQx6hv.js:131
lookup @ container_proxy.js:27
get _qp @ route.js:1147
(anonymous) @ cache-fCezwMOy.js:1092
Z @ index.js:430
get @ cache-fCezwMOy.js:1091
get @ cache-fCezwMOy.js:240
eM @ cache-fCezwMOy.js:1647
eA @ cache-fCezwMOy.js:1636
_getQPMeta @ router.js:914
_getQPMeta @ index.ts:101
_hydrateUnsuppliedQueryParams @ router.js:1018
_prepareQueryParams @ router.js:897
normalizeQueryParams @ routing-service.js:57
_generateURL @ routing-service.js:63
generateURL @ routing-service.js:71
get href @ index-BCp6wOJU.js:929
eM @ cache-fCezwMOy.js:1647
(anonymous) @ index.js:87
(anonymous) @ index.js:64
X @ index.js:416
k @ index.js:62
en @ index.js:1112
flush @ index.js:1089
(anonymous) @ index.js:665
evaluate @ index.js:103
evaluateSyscall @ index.js:2873
evaluateInner @ index.js:2852
evaluateOuter @ index.js:2849
next @ index.js:4167
_execute @ index.js:4157
execute @ index.js:4133
handleException @ index.js:3450
handleException @ index.js:3592
throw @ index.js:3414
evaluate @ index.js:565
_execute @ index.js:3401
execute @ index.js:3393
rerender @ index.js:3610
(anonymous) @ index-BCp6wOJU.js:4639
(anonymous) @ index-BCp6wOJU.js:4934
eX @ index.js:2414
_renderRoots @ index-BCp6wOJU.js:4914
_renderRootsTransaction @ index-BCp6wOJU.js:4962
_revalidate @ index-BCp6wOJU.js:4995
invoke @ index.js:262
flush @ index.js:180
flush @ index.js:334
_end @ index.js:762
(anonymous) @ index.js:499
Promise.then
(anonymous) @ index.js:18
flush @ index.js:29
_scheduleAutorun @ index.js:928
_end @ index.js:768
(anonymous) @ index.js:499
Show 58 more frames
Show less
deprecation-identify-source.js:15 DEPRECATION: [PLUGIN discourse-landing-pages] Importing `inject` from `@ember/service` is deprecated. Please import `service` instead. [deprecation id: importing-inject-from-ember-service] This will be removed in ember-source 7.0.0. See https://deprecations.emberjs.com/id/importing-inject-from-ember-service for more details.
(anonymous) @ deprecate.js:72
(anonymous) @ handlers.js:10
(anonymous) @ deprecate.js:108
(anonymous) @ handlers.js:10
(anonymous) @ deprecate.js:116
(anonymous) @ handlers.js:10
(anonymous) @ index.js:75
(anonymous) @ index.js:110
(anonymous) @ handlers.js:10
(anonymous) @ index.js:115
(anonymous) @ handlers.js:10
(anonymous) @ deprecation-identify-source.js:15
(anonymous) @ handlers.js:10
(anonymous) @ deprecation-this-property-fallback-handler.js:15
(anonymous) @ handlers.js:10
(anonymous) @ deprecation-warning-handler.js:19
(anonymous) @ handlers.js:10
s @ deprecated.js:132
(anonymous) @ handlers.js:10
r @ handlers.js:19
l @ deprecate.js:189
k @ index.js:31
p @ index.js:126
o @ index.js:31
(anonymous) @ admin-plugins-landing-pages.js:13
(anonymous) @ loader.js:106
requireModule @ loader.js:27
get @ index.js:15
_extractDefaultExport @ index.js:469
resolveOther @ index.js:183
resolve @ index.js:222
resolve @ registry-BJpQx6hv.js:795
resolve @ registry-BJpQx6hv.js:571
u @ registry-BJpQx6hv.js:245
(anonymous) @ registry-BJpQx6hv.js:284
lookup @ registry-BJpQx6hv.js:239
lookup @ container_proxy.js:27
get _qp @ route.js:1147
(anonymous) @ cache-fCezwMOy.js:1092
Z @ index.js:430
get @ cache-fCezwMOy.js:1091
get @ cache-fCezwMOy.js:240
eM @ cache-fCezwMOy.js:1647
eA @ cache-fCezwMOy.js:1636
_getQPMeta @ router.js:914
_getQPMeta @ index.ts:101
_hydrateUnsuppliedQueryParams @ router.js:1018
_prepareQueryParams @ router.js:897
normalizeQueryParams @ routing-service.js:57
_generateURL @ routing-service.js:63
generateURL @ routing-service.js:71
get href @ index-BCp6wOJU.js:929
eM @ cache-fCezwMOy.js:1647
(anonymous) @ index.js:87
(anonymous) @ index.js:64
X @ index.js:416
k @ index.js:62
en @ index.js:1112
flush @ index.js:1089
(anonymous) @ index.js:665
evaluate @ index.js:103
evaluateSyscall @ index.js:2873
evaluateInner @ index.js:2852
evaluateOuter @ index.js:2849
next @ index.js:4167
_execute @ index.js:4157
execute @ index.js:4133
handleException @ index.js:3450
handleException @ index.js:3592
throw @ index.js:3414
evaluate @ index.js:565
_execute @ index.js:3401
execute @ index.js:3393
rerender @ index.js:3610
(anonymous) @ index-BCp6wOJU.js:4639
(anonymous) @ index-BCp6wOJU.js:4934
eX @ index.js:2414
_renderRoots @ index-BCp6wOJU.js:4914
_renderRootsTransaction @ index-BCp6wOJU.js:4962
_revalidate @ index-BCp6wOJU.js:4995
invoke @ index.js:262
flush @ index.js:180
flush @ index.js:334
_end @ index.js:762
(anonymous) @ index.js:499
Promise.then
(anonymous) @ index.js:18
flush @ index.js:29
_scheduleAutorun @ index.js:928
_end @ index.js:768
(anonymous) @ index.js:499
Show 82 more frames
Show less