| View previous topic :: View next topic |
| Author |
Message |
JJJ Guest
|
Posted: Wed Dec 04, 2002 2:47 am Post subject: |
|
|
I'm building a PHPNuke site that requires a modification to the navigation menu, can anyone help?
The menu can be manually configured i.e. not from the admin area as it will not change once set up - although this would be nice.
What I need is a menu that is linked into the categories i.e. a different block containing links shows depending on which category your in.
IE
If the category is Products, a block containing links to the products shows (after click)
If the category is Courses, a block containing links to courses shows
and so on...
I've tried using JavaScript menus without success but am open to suggestions.
I have a budget for this and can discuss development costs.
Note: This is a one off so the code doesn't have to be squeaky clean.
Thanks
Justin |
|
| Back to top |
|
 |
|
|
 |
Matt-Page Guest
|
Posted: Wed Dec 04, 2002 3:30 am Post subject: |
|
|
Right well, first of all, you will need to disable the modules block.
You will then need to create a new one. Call it Products are what ever and you can do this from the blocks administrator menu in admin.php.
When you click edit on the block, On the large Content box, you need to put something like this. Here is 2 examples.
<strong><big>·</big></strong><A href="modules.php?name=products">Products</a>
<br>
<strong><big>·</big></strong><A href="modules.php?name=Downloads">Downloads</a>
<br>
This would be displayed with bullet points and spaces, and looks rather nice i think. If your still stuck say and i will explain further.
Matt.
|
|
| Back to top |
|
 |
JJJ Guest
|
Posted: Wed Dec 04, 2002 6:10 am Post subject: |
|
|
Thanks for you're reply Matt, I can create html whithin blocks OK.
What I'm looking for is the PHP code to include different blocks (for navigation use) on different pages dependant on which category has been selected.
EG If someone clicks on a category called Products then ONLY the navigation block or links unique to Products shows and so on...
I think this one is not so easy as It would probably have been done as a module by now.
Thanks for responding though.
JJJ
|
|
| Back to top |
|
 |
Humpa President

Joined: 23 Apr 2002 Posts: 3429
|
Posted: Wed Dec 04, 2002 6:44 am Post subject: |
|
|
This not hard.
You will need to make a php modules-menu block.
Something like this by chris-au:
http://www.nukeforums.com/forums/viewtopic.php?topic=11773&forum=42
Then you just need to add in some php "if" statements.
Maybe something like this:
global $catid;
if ($catid == 2) {
$content .= "<STRONG><BIG>·</BIG></STRONG>
<A href="modules.php?name=somefolder&file=index">Entry with Some word</A><BR> ";
}elseif {$catid == 3) {
$content .= "<STRONG><BIG>·</BIG></STRONG>
<A href="modules.php?name=someotherfolder&file=index">Entry with Some word</A><BR> ";
} |
|
| Back to top |
|
 |
Humpa President

Joined: 23 Apr 2002 Posts: 3429
|
Posted: Wed Dec 04, 2002 6:50 am Post subject: |
|
|
Or you could add my above code right to the existing blocks/block-Modules.php ...
This is in the block:
| Code: | /* Now we make the Modules block with the correspondent links */
$content .= "<strong><big>·</big></strong> <a href="index.php">"._HOME."</a><br>n"; |
You could add it before that Home link like this:
| Code: | global $catid;
if ($catid == 2) {
$content .= "<strong><big>·</big></strong> <A href="modules.php?name=somefolder&file=index">Entry with Some word</a><br>n";
}elseif {$catid == 3) {
$content .= "<strong><big>·</big></strong> <A href="modules.php?name=someotherfolder&file=index">Entry with Some word</a><br>n";
}
/* Now we make the Modules block with the correspondent links */
$content .= "<strong><big>·</big></strong> <a href="index.php">"._HOME."</a><br>n"; |
... and you can add as many "elseif's" as you want.
[ This Message was edited by: Humpa on 2002-12-04 08:52 ] |
|
| Back to top |
|
 |
chatserv President


Joined: 19 Aug 2001 Posts: 3258
|
Posted: Wed Dec 04, 2002 6:55 am Post subject: |
|
|
Humpa do you ever check your private messages here?  |
|
| Back to top |
|
 |
Humpa President

Joined: 23 Apr 2002 Posts: 3429
|
Posted: Wed Dec 04, 2002 7:08 am Post subject: |
|
|
no ...
humpa@humpa.com I check
I'll go check my private messages.
If something doesnt come up and bite me in the ass, I tend not to notice it.  |
|
| Back to top |
|
 |
mozaks Guest
|
|
| Back to top |
|
 |
chris-au President

Joined: 16 Aug 2001 Posts: 1842 Location: Australia
|
Posted: Wed Dec 04, 2002 4:42 pm Post subject: |
|
|
This is what I am working on.
I have already a menu block that is very easy to setup through admin and is now completed.
I am working on having different menu's for different categories etc. as suggested and as already done by Muzaks.
Not quite ready yet. The last part is in the same vein as Muzaks but I want it to be programmable by the admin.
As soon as finished I will post here. |
|
| Back to top |
|
 |
JJJ Guest
|
Posted: Thu Dec 05, 2002 2:32 am Post subject: |
|
|
Thank You!!!!
This is a fantastic amount of information and ANSWERS.
I can now...
Create my own version as a block
Create one as a module
Use Mosak's version
I'll use Mosak's for this job but I look forward to trying the chris-au version when it's completed.
Thanks to everyone for your help.
JJJ
|
|
| Back to top |
|
 |
chris-au President

Joined: 16 Aug 2001 Posts: 1842 Location: Australia
|
Posted: Thu Dec 05, 2002 8:05 pm Post subject: |
|
|
I don't know if you are one of the few who already have downloaded my side menu block builder.
I have now slightly improved on that one and have now set it in my download area.
The one that you are after is still in the 'pipeline', just making a admin module for setting up the categories for all the modules and have space for 'private' modules.
It does work already with having to maually enter the categories but I don't want to release without the complete set.
The, what I now call, simple menu, is available at www.sengers-au.com
Just find your way to the download section.
There is NO sample running on that site. That is on my test site and not available yet. |
|
| Back to top |
|
 |
JJJ Guest
|
Posted: Fri Dec 06, 2002 1:37 am Post subject: |
|
|
Chris,
I downloaded the module on your home site which allows setting up of menus. It is well thought out and works great.
The new one you're working on though, does it allow different menus on different pages depending on which category your in?
That would be perfect!!!
JJJ |
|
| Back to top |
|
 |
chris-au President

Joined: 16 Aug 2001 Posts: 1842 Location: Australia
|
Posted: Fri Dec 06, 2002 5:14 pm Post subject: |
|
|
Yes, it will.
Also it will be a week or so before I have it ready.
But in the prelim stages it works great.
I will come back later if I can still find this topic but if you leave a message at my feedback I will come back to you. |
|
| Back to top |
|
 |
123marketing Corporal

Joined: 10 Dec 2002 Posts: 12
|
Posted: Sat Dec 21, 2002 12:14 pm Post subject: |
|
|
Mozak:
This is FABULOUS! Thanks! |
|
| Back to top |
|
 |
chris-au President

Joined: 16 Aug 2001 Posts: 1842 Location: Australia
|
Posted: Sat Dec 21, 2002 9:00 pm Post subject: |
|
|
I have been working on a multi type of menu and it works great, the same as the SimpleMenu but then with a selection of 6 Category menu's.
However, I am not 100% satisfied with the layout of the Center Page after selecting a different Category Menu.
As it is the 'silly season' time is the essence at present.
Very soon in the New Year I hope! |
|
| Back to top |
|
 |
dj4967 Warrant Officer

Joined: 09 Aug 2002 Posts: 74
|
Posted: Sun Dec 22, 2002 3:40 am Post subject: |
|
|
Look forward to seeing your work!
Happy Holidays! |
|
| Back to top |
|
 |
123marketing Corporal

Joined: 10 Dec 2002 Posts: 12
|
|
| Back to top |
|
 |
123marketing Corporal

Joined: 10 Dec 2002 Posts: 12
|
Posted: Mon Dec 23, 2002 8:07 am Post subject: |
|
|
| I figured it out. If I have 'News' as my 'inthehome' default than news will be the category even though it's the home page. |
|
| Back to top |
|
 |
chris-au President

Joined: 16 Aug 2001 Posts: 1842 Location: Australia
|
Posted: Fri Dec 27, 2002 10:03 pm Post subject: |
|
|
As I wrote before, I was writing a Multi Menu Block.
It have it now out for testing.
There were a few people on this thread who were really interested.
I have it now setup as a test at a test location.
The few people who were interested, please contact me by feedback at my site at http://www.sengers-au.com
The scripts for this is 99% finished and I only have to write some docs and change some pre-set links to accommodate a bare phpNuke. It will have:
Choose from 10 different menu's with each 100 links with or without section headers (or whatever you like to call it), that is 10 times 100 links in a menu if you want it or a menu with 1 link, whatever you fancy.
Every thing has to be programmed through admin.
Disable sections for non-registered users, your own pictures in front of the links, pictures sizes whatever you want to do it will be there.
There are add-ons to be able to display php, gif,jpg,html and txt scripts as well.
So, if you don't like the block-modules.php,
just wait.
[ This Message was edited by: chris-au on 2003-01-03 23:29 ] |
|
| Back to top |
|
 |
TheQuestionIs Corporal

Joined: 02 Jan 2003 Posts: 15
|
Posted: Fri Jan 03, 2003 10:05 pm Post subject: |
|
|
I might just wait for that!
I hope it is as good as it sounds.
[ This Message was edited by: TheQuestionIs on 2003-01-04 00:06 ] |
|
| Back to top |
|
 |
|
|
 |
|