Hi Guys!
This is a general design problem that could easily solved by CMS or just PHP but i'm wondering if there is any way to do it without those tools:
I'm using XHTML 1.1.
I want to have a web page (page A) with a menu that has the design dictated in "page A" but with the actual content (what links are in the menu) pulled from "file B".
Even easier! I just want to have the room for the menu in "page A" and have the entire design AND content for the menu in "file B".
just looking for a command to put in "page A" that says: 'see that file B? good. put everything from that file in here.'
I'm sure this MUST be possible without PHP.
I wouldn't mind using frames except they are deprecated (thank the FSM for the Firefox spell checker!).
I have heard of something called XFrames but I really can't figure out how to use them....
Thanks for your help!
-Leav
[solved] 1 content file displayed in multiple pages?
[solved] 1 content file displayed in multiple pages?
Last edited by Leav on Sat Jul 26, 2008 12:10 am, edited 1 time in total.
Re: 1 content file displayed in multiple pages?
use a global content block in cmsms to duplicate a block of content on multiple pages or look at smarty's fetch
eternity (n); 1. infinite time, 2. a seemingly long or endless time, 3. the length of time it takes a frozen pizza to cook when you're starving.
4,930,000,000 (n); 1. a very large number, 2. the approximate world population in 1986 when Microsoft Corp issued its IPO. 3. Microsoft's net profit (USD) for the quarter (3 months) ending 31 March 2007.
CMSMS migration and setup services | Hosting with CMSMS installed and ready to go | PM me for Info
4,930,000,000 (n); 1. a very large number, 2. the approximate world population in 1986 when Microsoft Corp issued its IPO. 3. Microsoft's net profit (USD) for the quarter (3 months) ending 31 March 2007.
CMSMS migration and setup services | Hosting with CMSMS installed and ready to go | PM me for Info
Re: 1 content file displayed in multiple pages?
Hi Kermit,
Thanks for looking into this! both your approaches use either CMSMS or PHP...
I'm looking for the basic way of doing this without CMSMS or PHP... do you know of any such way?
Thanks!
-Leav
Thanks for looking into this! both your approaches use either CMSMS or PHP...
I'm looking for the basic way of doing this without CMSMS or PHP... do you know of any such way?
Thanks!

-Leav
Re: 1 content file displayed in multiple pages?
server side includes (ssi) is another way.. in order to put one file's contents inside of another html page when serving that page, *something* has to do the work such as a script of some sort (php, ssi, a cms, etc) that runs on the server, if you don't want to use (i)frames or some other browser-based method (like javascript).Leav wrote: Hi Kermit,
Thanks for looking into this! both your approaches use either CMSMS or PHP...
I'm looking for the basic way of doing this without CMSMS or PHP... do you know of any such way?
for very basic includes, such as inserting a navigation menu, header, etc. to multiple static html pages, using php by itself is not terribly difficult.. http://us3.php.net/include/ -- but imho, neither is cmsms

what you are describing, menus with design separate from 'content' (the links), is a basic feature of cmsms. css for the design, the menu module and its templates to generate the actual html output... the benefit to cmsms over static html pages is that your menus will automatically update as you add pages to the site.
Last edited by kermit on Thu Jul 24, 2008 7:35 pm, edited 1 time in total.
eternity (n); 1. infinite time, 2. a seemingly long or endless time, 3. the length of time it takes a frozen pizza to cook when you're starving.
4,930,000,000 (n); 1. a very large number, 2. the approximate world population in 1986 when Microsoft Corp issued its IPO. 3. Microsoft's net profit (USD) for the quarter (3 months) ending 31 March 2007.
CMSMS migration and setup services | Hosting with CMSMS installed and ready to go | PM me for Info
4,930,000,000 (n); 1. a very large number, 2. the approximate world population in 1986 when Microsoft Corp issued its IPO. 3. Microsoft's net profit (USD) for the quarter (3 months) ending 31 March 2007.
CMSMS migration and setup services | Hosting with CMSMS installed and ready to go | PM me for Info