Page 1 of 1

how to share some global block

Posted: Sat May 12, 2007 12:02 am
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.

Re: how to share some global block

Posted: Sat May 12, 2007 6:30 pm
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