Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
stevenlyons
Posts: 69 Joined: Fri 2. Jul 2004, 01:46
Contact:
Post
by stevenlyons » Sun 11. Jul 2004, 01:49
How do I link to my site structure from a custom menu? The menu is made from images with Javascript rollovers. Each is coded like this:
Code: Select all
<a href="#" onMouseOut="MM_swapImgRestore();" onMouseOver="MM_swapImage('menu_r2_c1','','/cms/picture/menu_r2_c1_f2.gif',1);"><img name="menu_r2_c1" src="/cms/picture/menu_r2_c1.gif" width="150" height="21" border="0" alt=""></a>
How do I reference the link to the site structure levels?
Thanks.
stevenlyons
Posts: 69 Joined: Fri 2. Jul 2004, 01:46
Contact:
Post
by stevenlyons » Sun 11. Jul 2004, 02:10
OK I can now answer my own question after being forced to look at another wcms site's code.
For those of you interested in doing this, all you have to do is use the following link structure:
Code: Select all
<a href="index.php?yourStructureAliasHere..."
Pappnase
Post
by Pappnase » Sun 11. Jul 2004, 02:12
hello
use this one
[ID string]string[/ID]
This creates a HTML link to a structure level with ALIAS (string). Second string represents the text that is linked.
you will find the most if the replacement tags in my signature!
stevenlyons
Posts: 69 Joined: Fri 2. Jul 2004, 01:46
Contact:
Post
by stevenlyons » Sun 11. Jul 2004, 02:28
Thanks again.
But will ID work when embedded in and around javascript?
Pappnase
Post
by Pappnase » Sun 11. Jul 2004, 11:03
hello
no with the ID tag you create your won menue! delte from the template the {NAV_TABLE_COlUMN} TAG and place there the ID TAG.
Oliver Georgi
Site Admin
Posts: 9903 Joined: Fri 3. Oct 2003, 22:22
Contact:
Post
by Oliver Georgi » Sun 11. Jul 2004, 17:40
If you want to get to know link to an article - move mouse over this article in article list - right-click and copy link. Only use the index.php?id=... part
Oliver
stevenlyons
Posts: 69 Joined: Fri 2. Jul 2004, 01:46
Contact:
Post
by stevenlyons » Mon 12. Jul 2004, 18:05
Thanks everyone. phpwcms is great, but the menu system is very limited. I have decided to forget the left column and the Nav_Column. Its just too hard to customize. I will be hard-coding the links using Oliver's method. If you look at the attached desgin you will see why:
Oliver Georgi
Site Admin
Posts: 9903 Joined: Fri 3. Oct 2003, 22:22
Contact:
Post
by Oliver Georgi » Mon 12. Jul 2004, 18:27
Yes -I know. That's a problem.
But I really don't know a cms menu script that is able to handle this.
It's easier and faster to do it the old HTML way.
Oliver
stevenlyons
Posts: 69 Joined: Fri 2. Jul 2004, 01:46
Contact:
Post
by stevenlyons » Mon 12. Jul 2004, 19:14
I agree. You can't expect a CMS to do everything. That's what designers are for!
(However, I do think the nav_table_column menu would be much more powerful if it was all CSS based and had all its controls located in one style sheet.)