Simple question!
I am new to php, and I see this code:
<?php mosLoadModules ( 'link' ); ?>
and I am wondering what it is. It seems like it is like an include function.
So if I am using this and say I have the file link on 200 pages. and every page contains mosLoadModules ( 'link' ). And one day I realize I want to update my navigation bar. Now I just go to the link file and change it, will all the 200 pages show me the updated link?
Not sure if I made any sense.
"mosLoadModules()" is a custom function in the Joomla content management script that runs module code, for example for the navigational menu as you suggest.
You are correct that if you edit a module it will change on all pages that uses it, but I think you have misunderstood how to go about it. I'm pretty sure Joomla and most all content management systems have control panels and templates and such with which to quickly change design, navigational menu, and content in general.
I found a page with tons of information on how Joombla modules work:
http://help.joomla.org/content/view/1565/155/
Thanks Bill. I really the idea! how can I incorporate something like this into a normal site?
sam2698;252:
I am new to php, and I see this code:
<?php mosLoadModules ( 'link' ); ?>
and I am wondering what it is. It seems like it is like an include function.
So if I am using this and say I have the file link on 200 pages. and every page contains mosLoadModules ( 'link' ). And one day I realize I want to update my navigation bar. Now I just go to the link file and change it, will all the 200 pages show me the updated link?
Not sure if I made any sense.
It is a simple php tag which starts and ends simplr in <?PHP.......?>
you should browse through functions available in PHP for doing this job .i have a useful function related e-book if you need it then tell me i shall email you !