Bug 172180 - New template variable ${filepath}
New template variable ${filepath}
Status: NEW
Product: platform
Classification: Unclassified
Component: Templates
8.2
All All
: P3 with 2 votes (vote)
: 8.0
Assigned To: Martin Entlicher
issues@platform
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-09-14 14:35 UTC by starnixsa
Modified: 2017-10-09 11:57 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description starnixsa 2009-09-14 14:35:42 UTC
Problem:
Unable to insert the path of a file as a template variable under Tools > Templates

Solution:
Create a new template variable called ${filepath} that can read the current path of the file under the project.
e.g. Source Files > system > application > newfile.php
${filepath} = "./system/application/";

There is currently no central documentation for IDE, Project and Template variables that can be used. The closest I
found was at http://wiki.netbeans.org/FaqTemplateVariables

Thank you!
Comment 1 jaisondaniel 2013-05-27 08:51:20 UTC
In older version I used some variable to get the file-path value But unfortunately I forgot the variable name. That was I tried 2-3 years back, Now I tried some names like "folder", "directory", "container", "path" but nothing works. either implement this or provide some alternative solution to get a file-path value via template variable. This will help us to manage the source with better template.

Thank You.
Comment 2 gromit190 2017-10-09 11:57:00 UTC
+1 This would be very useful


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo