how to share some global block

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
Post Reply
bigtiger

how to share some global block

Post by bigtiger »

Greetings from a new user. Have to say I like it.

I would like to create a page that only uses the global content--ie, to share the header and footer that I created. Also, I would like to temporally disable the pretty URLs.


Can somebody tell me if it is possible? Thanks.

I do some programming in php and mysql. Not a full time programmer though.
User avatar
Elijah Lofgren
Power Poster
Power Poster
Posts: 811
Joined: Mon Apr 24, 2006 1:01 am
Location: Deatsville, AL

Re: how to share some global block

Post by Elijah Lofgren »

bigtiger wrote: I would like to create a page that only uses the global content--ie, to share the header and footer that I created.
If you created your header and footer at "Content » Global Content Blocks"
and named them 'header' and 'footer' then you can just paste this in your page content:
{global_content name='header'}
{global_content name='footer'}
Or, I could be misunderstanding what you want. ;)


bigtiger wrote: Also, I would like to temporally disable the pretty URLs.
You can just open config.php and set all the pretty URL settings to false. Like this:

Code: Select all

....

#Show mod_rewrite URLs in the menu? You must enable 'use_hierarchy' for this to work for modules
$config['assume_mod_rewrite'] = false;

#Extension to use if you're using mod_rewrite for pretty URLs.
$config['page_extension'] = '/';

#If you don't use mod_rewrite, then would you like to use the built-in
#pretty url mechanism?  This will not work with IIS and the {metadata} tag
#should be in all of your templates before enabling.
$config['internal_pretty_urls'] = false;

#If you're using the internal pretty url mechanism or mod_rewrite, would you like to
#show urls in their hierarchy?  (ex. http://www.mysite.com/parent/parent/childpage)
$config['use_hierarchy'] = false;

...

Hope this helps,

Elijah
Note: I don't have time to take on any more projects. I'm quite busy. I may be too busy to reply to emails or messages. Thanks for your understanding. :)
Post Reply

Return to “Developers Discussion”