[NPMCLI-202] prototypes in nested catalogs doesn't rename filenames Created: 24/Jan/19  Updated: 30/Aug/23

Status: Open
Project: Magnolia CLI
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Neutral
Reporter: Mykola Assignee: Unassigned
Resolution: Unresolved Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

OS: Windows 10 x64
Magnolia 5.7 (6.0 also)


Attachments: File helper.js     PNG File ice_screenshot_20190124-224814.png    
Template:
Patch included:
Yes
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled

 Description   

Default path to component prototype is:

mgnl-cli-prototypes/component/default/templates/components/__name__.ftl
mgnl-cli-prototypes/component/default/templates/components/__name__.yaml

but if I nest these files on level deeper like so:

mgnl-cli-prototypes/component/default/templates/components/__name__/__name__.ftl
mgnl-cli-prototypes/component/default/templates/components/__name__/__name__.yaml

then __name__.* files not renaming

 



 Comments   
Comment by Mykola [ 31/Oct/19 ]

replaceFileNameIfNeeded method in /lib/helpers.js didn't have global flag in regexp, which I added

Comment by Mykola [ 19/Sep/22 ]

czimmermann is this project is still active?
Or maybe there is something wrong with proposed solution? I can adjust proposed fix if needed

Comment by Mykola [ 30/Aug/23 ]

mmichlova is this project is still active and/or right place to report bugs?

Generated at Mon Feb 12 04:47:31 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.