El Patron Posted January 21, 2015 Share Posted January 21, 2015 I have searched high and low to find out how to get DW5 to include .tpl files in search. I have of course added .tpl file so it's opened by DW. Maybe someone else is using DW5 and has figured a way to include .tpl files in search. Note: I have checked cloaking and .tpl is not ignored. happy day, el Link to comment Share on other sites More sharing options...
El Patron Posted January 21, 2015 Author Share Posted January 21, 2015 ok, finally the old man guessed long enough. after add .tpl as a valid extension then site-->advanced-->recreate site cache this now finds .tpl file strings Link to comment Share on other sites More sharing options...
FullCircles Posted January 22, 2015 Share Posted January 22, 2015 Do you ever use less or sass? Give me a shout if you want to find out how to make those searchable, figured that out last week, it's a little more involved though 1 Link to comment Share on other sites More sharing options...
El Patron Posted January 22, 2015 Author Share Posted January 22, 2015 Do you ever use less or sass? Give me a shout if you want to find out how to make those searchable, figured that out last week, it's a little more involved though that would be fun and useful for others as well. thanks Link to comment Share on other sites More sharing options...
FullCircles Posted January 22, 2015 Share Posted January 22, 2015 (edited) Sure thing, right.. this will vary a little depending what operating system you're on (and you'd have to google for macs, not a clue on those) You'll need to find your user appdata folder. Aaah, just learnt a new and better trick, while checking the path for win8.. handy Ok, what you need to do is either: Open up your windows menu, type in the run/search field at the bottom: Or press the windows key + r and it should bring up the same entry field: Type %appdata% and enter, it'll open up the correct folder From there, look for a folder called Adobe, then for the relevant Dreamweaver folder, for me it's /Adobe/Dreamweaver CS5.5/ There should be a language folder in there, just click into that (will vary depending on your language) Click into Configuration There are now 2 changes you need to make, I'd also recommend taking a backup copy of each file before you make the change, just in case. You will also want to make sure your dreamweaver is closed when you edit these files: ---- 1st ---- Open up Extensions.txt in notepad or equivalent Near the top you should see a bunch of file extentions, with a line ending :All Documents Change that to be: ,LESS,SASS,SCSS:All Documents ----- A little further down you will also find a line ending :Style Sheets Change that to: ,LESS,SASS,SCSS:Style Sheets Then save and close that one ---- 2nd ---- Open up DocumentTypes/MMDocumentTypes.xml Try searching for a line like: winfileextension="css" Change that to: winfileextension="css,less,sass,scss" If you're having trouble finding it, try looking for: id="CSS" Should also take you to the same line Save and close that file --------------- That should be it, open up dreamweaver and you should then be able to both search for data within less/sass files, and whenever you're working with them, it will also give you css colouring options for readability as well as the auto complete prompts for the styles Edited January 22, 2015 by FullCircles (see edit history) Link to comment Share on other sites More sharing options...
El Patron Posted January 22, 2015 Author Share Posted January 22, 2015 would this not work as well (i.e. you do not need to edit any files)? edit-->preferences-->add file types-->clear site cache http://screencast.com/t/WSOrlVl84 Link to comment Share on other sites More sharing options...
FullCircles Posted January 22, 2015 Share Posted January 22, 2015 That'll let you open the files in code view in dreamweaver, but it doesn't have the css code prompts, and it wasn't for me letting me search through the files when you do something like search the entire local site. As for -why- it wouldn't allow the searching.. no clue, it does it fine for tpl files, but for some reason it never worked for less or sass. Possibly it's version based? But it wouldn't do so for three people here in the office on seperate machines and operating systems, so assumed it was a global issue Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now