[NPMCLI-132] Command "create-block" Created: 21/Apr/17 Updated: 14/Feb/18 Resolved: 01/Dec/17 |
|
| Status: | Closed |
| Project: | Magnolia CLI |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 3.0.0 |
| Type: | New Feature | Priority: | Neutral |
| Reporter: | Christoph Meier | Assignee: | Jaroslav Simak |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Template: |
|
||||||||
| Acceptance criteria: |
Empty
|
||||||||
| Date of First Response: | |||||||||
| Epic Link: | CLI v3 | ||||||||
| Sprint: | Kromeriz 124, Kromeriz 125 | ||||||||
| Story Points: | 5 | ||||||||
| Description |
|
Creating a block requires a few files which are linked, the task is very similar to create-page or create-component. mgnl create-block <blockName> [-p <path>] <blockName>: -p <path> The command should create these files:
The defaults (prototypes) of the block definition (fields!) and the template script to render them needs discussion. |
| Comments |
| Comment by Jaroslav Simak [ 28/Nov/17 ] |
What fields do we want to include in custom block definition? Can i include those fields that are mentioned in the documentation? |
| Comment by Christopher Zimmermann [ 28/Nov/17 ] |
|
I would base it on the FieldSetBlockDefinition. |
| Comment by Roman Kovařík [ 04/Dec/17 ] |
<a href='${ctx.contextPath}/${cmsfn.link(target)!}' class='btn btn-link'>${target.title!target.@name}</a> produces: http://localhost:8080/magnoliaTest//magnoliaTest/travel/ |