V8: Add the AngularJS directive template url pathname into the template itself for easier finding #13726
Replies: 8 comments 1 reply
-
Not sure I understand:
Mostly I'm struggling with the premise of the problem here, I'm probably missing something. |
Beta Was this translation helpful? Give feedback.
-
Hi Seb, sorry I should have been clearer. This is for the AngularJS templates for directives etc. I've updated the issue title to reflect this. Enjoy Japan! |
Beta Was this translation helpful? Give feedback.
-
Ahaaaaa! 👍 Clear. :) I've marked this as "Up for grabs" so that you or someone else coming along could create a pull request for it. |
Beta Was this translation helpful? Give feedback.
-
Hiya @PeteDuncanson, Just wanted to let you know that we noticed that this issue got a bit stale and might not be relevant any more. We will close this issue for now but we're happy to open it up again if you think it's still relevant (for example: it's a feature request that's not yet implemented, or it's a bug that's not yet been fixed). To open it this issue up again, you can write For example:
This will reopen the issue in the next few hours. Thanks, from your friendly Umbraco GitHub bot 🤖 🙂 |
Beta Was this translation helpful? Give feedback.
-
@umbrabot still relevant |
Beta Was this translation helpful? Give feedback.
-
Not sure if relevant still, maybe @nul800sebastiaan has the answer! |
Beta Was this translation helpful? Give feedback.
-
I don't see much (if any) value in pursuing this given the new backoffice is not that far away and would render this obsolete. Would have been useful a couple of years ago, but we're all about looking forward, not back. |
Beta Was this translation helpful? Give feedback.
-
Alright, with that I will lock the discussion then 👍 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I had this as an issue on the old tracker. Currently if you are hacking around in the UI and need to find where a template lives so you can edit it its very difficult to work out where to go find it. I'd like it if in the HTML itself we could write out the filename/path to the template file in the source. That way you can very quickly find where the template lives and you can shorten the development time and focus on the actual problem.
We could inject it as a data-path attribute on the top most element in the template or a HTML comment but I'm not sure if that will be rendered out or not in dev tools. Something to check.
Two ways to do it. Manually go through and add them all, quickish but likely to break over time. Better would be to have gulp task that can just run through all the templates and add the pathname in automatically during the build, this is my preferred option I think and something to look into. If you do the gulp route then ensure it will run on gulp v4 as we are looking to upgrade to that (#4846).
Beta Was this translation helpful? Give feedback.
All reactions