How to identify where a function or a specific file is being used in all parts of your code ?
SOLVE
Hi guys !
is there a way that faciltates the findings of all the places a specific image(path) is being used in all your code. Same goes for functions and specific tags !!
All this to save me time instead of me going manually over all theme folders one by one and searching for where it's being used
I don't think that there's an "easy" way to look up where each file is located. I could imagine that you could get some informations from the files API for files located in the file manager. But to be honest - I've never done that.
The only way I know is:
For files located in the file manager you can select one and look in the "File usage" area.
For files located in the Design-Tools/Design-Manager you can right-click on a certain file and select "Show dependents"
hope this helps.
Maybe some fellow dev community masterminds know some solution to this -> @Jnix284, @alyssamwilie, @Teun
How to identify where a function or a specific file is being used in all parts of your code ?
SOLVE
@Anton 's suggestions are the only I can think of for in portal. If you know your way around a desktop code editor you could just download the files to your computer with the HubSpot CLI, open the folder in your editor, and run a search.
If this answer solved your question, please mark it as the solution.
I don't think that there's an "easy" way to look up where each file is located. I could imagine that you could get some informations from the files API for files located in the file manager. But to be honest - I've never done that.
The only way I know is:
For files located in the file manager you can select one and look in the "File usage" area.
For files located in the Design-Tools/Design-Manager you can right-click on a certain file and select "Show dependents"
hope this helps.
Maybe some fellow dev community masterminds know some solution to this -> @Jnix284, @alyssamwilie, @Teun