Details
-
Task
-
Resolution: Done
-
Neutral
-
None
-
None
-
None
-
-
Empty show more show less
-
Empty show more show less
-
DevX 51
Description
Lets see if current impl supports the main Pages app gettting contetn from another custom one created with this module. Create a demo project to show what does and does not work.
Develop the following for both Freemarker and SPA approach.
Scenario:
- Create pages app called Banners.
- In that app, create a "banner" (actually a page) with a few sub componntss.
- Create a "Banner" templating componenent. The dialog lets you choose a page from the "Banners" app. (via a link field.)
- (This is a typical usecase, but usually is done linking either to a normal content app, or linking to another Page in the Pages app. ie a "Teaser" component.)
- Make the component available on some pages.
- Author: On the normal Pages app, create a new page. Use the "Banner" templating component on that page.
Expectations:
- The Page in the Pages app renders content - including from the Banner.
- If the banner is changed- then the page shows the new content.
Note:
I think the main work is to create the Banner templating component. I think everything else should basically already be in plaace.
Here is the "skeleton" of a demo project which shows off the similar use cases with linking to other pages and linking to content items: https://git.magnolia-cms.com/users/czimmermann/repos/page-fragments-demo/browse
Tips:
See the existing "Campain Manager" module which has basically implemented similar functionality. But the Campaign Manager also has a whole scheduling and "slots" concept that we do not need/want here.
For both Freemaker and SPA, See:
- Overview: https://git.magnolia-cms.com/projects/INCUBATOR/repos/campaign/browse/campaign-manager
- Campaign Component:
- Script: : https://git.magnolia-cms.com/projects/INCUBATOR/repos/campaign/browse/campaign-manager/src/main/resources/campaign-manager/templates/components/managed-campaign.ftl
- Dialog: https://git.magnolia-cms.com/projects/INCUBATOR/repos/campaign/browse/campaign-manager/src/main/resources/campaign-manager/dialogs/components/managed-campaign.yaml
For SPA - See: https://docs.magnolia-cms.com/campaign-manager/integrate.html
Additional References:
assign campaignAreaNode = campaignfn.getCampaignManagedArea(campaignNode)!
[@cms.area content=cmsfn.asContentMap(campaignAreaNode) area=campaignAreaDefinition editable=false/]
Tip: Look into campainfn... maybe create "fragmentfn" for more general case.
Checklists
Attachments
Issue Links
- relates to
-
MGNLMULTPA-43 Test Fragments Use case - on SPA
-
- Closed
-
- mentioned in
-
Page Loading...
1.
|
Implementation |
|
Closed | Unassigned |
2.
|
Review |
|
Closed | Unassigned |
3.
|
Pre-Integration QA |
|
Closed | Unassigned |
4.
|
QA |
|
Closed | Unassigned |