Skip to content
This repository has been archived by the owner on Jan 21, 2023. It is now read-only.

Dashboard links for modules and pages are incorrect for swig #87

Closed
fusionstrings opened this issue Nov 17, 2014 · 2 comments
Closed

Dashboard links for modules and pages are incorrect for swig #87

fusionstrings opened this issue Nov 17, 2014 · 2 comments
Assignees
Labels

Comments

@fusionstrings
Copy link

I tried to generate modules and pages with passing --folder parameter.

yo yeogurt:template components --folder=base --type=module

which generated the file at client\templates\modules\base\components.swig.
but in generated swig file, metadata to link it to dashboard creates entry as follows.

"link": "generated/base//components.html" 

Same goes for page templates

yo yeogurt:template components --folder=base

generates client\templates\base\components.swig with link "link": "../../base//components.html".

Which of course leads to 404 while trying to navigate to page from dashboard.

Also it extends from wrong path {% extends './layouts/base.swig' %}, which would have been correct if file would have been generated at root of templates folder.

@larsonjj larsonjj self-assigned this Nov 18, 2014
@larsonjj larsonjj added the bug label Nov 18, 2014
@larsonjj
Copy link
Owner

This is definitely a bug. I'm currently working on a new way to handle the folder linking functionality through the sub-generators in the next release. Hopefully that will help solve this issue.

@larsonjj
Copy link
Owner

larsonjj commented Jan 9, 2015

This should be fixed now in the new release

@larsonjj larsonjj closed this as completed Jan 9, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants