sexta-feira, 16 de março de 2012 21:38
If I do a list of the pages linked to a particular file, by using the "View/Site/Hyperlinks" choice, I get a visual list of all the pages linked to a particular include file.
But, is there a way to then open all those files in EW4?
Here's why: believe it or not, after using EW and FP before that for 12+ years, I just realized my webbot includes don't update on the server unless I re-publish each of the linked files. So I want to re-publish the files that are linked to a webbot include when I change the include. Otherwise, the new info I put in the include doesn't show up in all the files once they're on the server.
Or, is there another way to give me a list of all the files linked to each include and publish them?
Todas as Respostas
sexta-feira, 16 de março de 2012 22:00
Change your terminology and it will change your thinking.
The includes aren't necessarily hyperlinked to your files. Includes don't have to have any links in them. When they do contain links, they don't need to contain links to every file they are included in, or to any file they are included in. If they do contain links to every page they are incuded in, in your site, that's just happenstance. :)
Think instead that they are content inside each page that uses them, so you can search for them in the source of the page.
Do a Find, search in All pages, and check Find in Source Code. You want to search for
where "yourincludefile.htm" is replaced with the file name of your include.
Then, select all the files in the search results, right-click and choose "Select Resulting files in Folder list". All those files will be highlighted in the folder list.
Right-click somewhere in the highlighted files in the Folder list, and "Open". That will let EW run through and update all the files, and let you verify that they look OK.
Right-click again somewhere in the still-selected files in the Folder list, and "Publish Selected Files". They will all publish.
sexta-feira, 16 de março de 2012 22:04Ah, that sounds good, kind of a back door way of doing it! Thanks, I'll give it a try.
sexta-feira, 16 de março de 2012 22:11
OK, this is definitely a good trick, I wouldn't have discovered it in a million years. Should make this a sticky or something!
sábado, 17 de março de 2012 00:05It just demonstrates that EW's interface almost always has multiple ways of doing things, many of them quite handy. Me, I'm a "right-click and let's see what I can do here" kind of person. :)