| View previous topic :: View next topic |
| Author |
Message |
KurtB
Joined: 20 Feb 2006 Posts: 52
|
Posted: Fri Mar 03, 2006 4:29 am Post subject: Multiple Projects/menu items |
|
|
I was looking at the joomla demo on this site & the main menu shows an Event View and a Month View. Are these 2 different projects? I cannot figure out how to load 2 projects at the same time into Joomla. It appears that the name of the project is directly tied into the Joomla component (in the thyme.php file).
Come clean Ian, How'd you do it? (knowing how the 2 menu items were created may be helpful on my site).
Kurt |
|
| Back to top |
|
 |
esoft_ian
Joined: 12 Sep 2005 Posts: 5275
|
Posted: Fri Mar 03, 2006 11:58 am Post subject: |
|
|
Hi Kurt,
It is actually the same project. I created a page, inserted both the month view and event list components into it, then wrapped them in this code:
| Code: |
if($_REQUEST['Itemid'] == 27) {
include('.../components/month.php');
} else {
include('../components/elist.php');
}
|
I just looked at the Itemid for the menu and based it off that. Note that you have to create the 2 menu items in Joomla first to get their Item ids. Then, in the Persistent Request section of Joomla Studio, I added:
Itemid and set it's value to $_REQUEST['Itemid']
Let me know if you have any trouble implementing this. |
|
| Back to top |
|
 |
DeanMarshall
Joined: 31 Jul 2006 Posts: 9 Location: Lancaster, Lancashire, United Kingdom
|
Posted: Mon Jul 31, 2006 4:04 pm Post subject: |
|
|
Dean steps in and really drags one up from the depths.
Hi Ian - I was just doing the RTFM thing and reading every post in the Joomla / Mambo forum where my interests lay. I started with the last posts on page 3 (which roughly speaking were the first posts) and I'm working my way through them all.
Just for clarification Ian, that is a typo there right - the three dots I mean
Dean |
|
| Back to top |
|
 |
esoft_ian
Joined: 12 Sep 2005 Posts: 5275
|
Posted: Mon Jul 31, 2006 5:23 pm Post subject: |
|
|
Hi Dean,
The 3 dots are just place holders. What you should really do is put your cursor where you would like the component to be inserted, highlight the component under Components on the left, then click Insert.
Let me know if you have any questions. |
|
| Back to top |
|
 |
DeanMarshall
Joined: 31 Jul 2006 Posts: 9 Location: Lancaster, Lancashire, United Kingdom
|
Posted: Mon Jul 31, 2006 5:53 pm Post subject: |
|
|
Thanks Ian,
Ah I see - I thought that it was a relative path for up a directory - but with one too many dots.
You live and you learn. - And I have sooo much to learn.
Cheers
Dean |
|
| Back to top |
|
 |
|