Include header/footer function

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Locked
Riqi
New Member
New Member
Posts: 4
Joined: Wed Apr 03, 2013 7:52 pm

Include header/footer function

Post by Riqi »

Hello there,
Well iam new to cmsms and i wanted to know how to include/call the header area and footer area in other .php pages like <? include......
get_header():
?>
same for footer something like this can be done for getting the template header and footer in other pages? if so please explain me with explain so i could improve my site, Thanks In Advance

With Regards,
Riqi
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1968
Joined: Mon Jan 29, 2007 4:47 pm

Re: Include header/footer function

Post by Jo Morg »

"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
Riqi
New Member
New Member
Posts: 4
Joined: Wed Apr 03, 2013 7:52 pm

Re: Include header/footer function

Post by Riqi »

Hey there mate thanks for reply well it's not the thing correctly i wanted i need call header function in other .php pages which is not in cmcms.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: Include header/footer function

Post by Dr.CSS »

You may need to explain what you are trying to do and what you want to happen...

more info = more help...
Wishbone
Power Poster
Power Poster
Posts: 1368
Joined: Tue Dec 23, 2008 8:39 pm

Re: Include header/footer function

Post by Wishbone »

I think I understand what is being asked. If I need a header/footer/menu/etc in something else, like a forum, I create templates for each, and a page for each template... Then call the page in the php script as an <__iframe>

Example:

The scrolling marquee on: http://portlandkarting.com/ is also used in the forum as an <__iframe>: http://portlandkarting.com/forum/

The actual <__iframe>'d page is: http://portlandkarting.com/marquee
Locked

Return to “Developers Discussion”