homepage Welcome to WebmasterWorld Guest from 23.23.8.131
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / WYSIWYG and Text Code Editors
Forum Library, Charter, Moderator: open

WYSIWYG and Text Code Editors Forum

    
another FP includes question
I put the cart before the horse
bghtn

10+ Year Member



 
Msg#: 3039095 posted 7:42 pm on Aug 8, 2006 (gmt 0)

Includes seem like a great tool if you start your site with them - I however...have built a site up to almost 300 pages and now want to incorporate several include files per page. If you have read any of my previous posts [webmasterworld.com ]- I was wanting to put several include files in the content sections of my pages so that I can more easily test Adsense ads across my whole site - I also want to have a few include files for various affiliate programs I would like to test.

My question is: Is there a way to insert includes to multiple pages simultaneously or do I have to insert in to each page individually?
Thanks

 

pageoneresults

WebmasterWorld Senior Member pageoneresults us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 3039095 posted 11:21 pm on Aug 8, 2006 (gmt 0)

My question is: Is there a way to insert includes to multiple pages simultaneously or do I have to insert in to each page individually?

If you are using FP2003, the Find and Replace feature is pretty powerful. You'll need to find something around the area where the includes will be placed that is constant (the same across all pages). You would then set up your find parameters from that. Then you would set up your replace parameters to include that static code and then your include code.

If you are not that familiar with the find and replace routine, then I might suggest opening each and every page and insert the appropriate code. Think of it as "spring cleaning" and while you are back there, you might as well address any other issues. ;)

You could easily do 10-15 pages per minute. It's really not as bad as you think it is. Once you get the routine going, you'll be done in no time. Be sure to double check what you are doing periodically, like every 20 pages, to be sure something didn't go wrong somewhere.

europeforvisitors



 
Msg#: 3039095 posted 6:14 pm on Aug 9, 2006 (gmt 0)

Also, if you do use find-and-replace, try copying the pages to a backup directory first, just in case you do something silly that requires a lot of hand fixing (as I've done more than once).

Do the copying with Windows Explorer or a file manager, not FrontPage, and the links in the copied pages won't be altered.

oddsod

WebmasterWorld Senior Member 5+ Year Member



 
Msg#: 3039095 posted 7:09 pm on Aug 9, 2006 (gmt 0)

Unless you are married to a lot of other FP features I'd suggest not using includes but using standard SSI code. That way if you ever do want/need to move away from FP you won't need to redo all over again.

Note: If using the SSI method then be aware that FP won't "propagate" future changes in the include page.

bghtn

10+ Year Member



 
Msg#: 3039095 posted 12:49 pm on Aug 12, 2006 (gmt 0)

Thanks for the great advice. I really could stand to do some "spring cleaning" - so I guess I know what I need to do.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / WYSIWYG and Text Code Editors
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved