Welcome, Guest. Please login or register.
Did you miss your activation email?
May 26, 2012, 11:15:00 PM

Login with username, password and session length
Search:     Advanced search
Wollen Sie dem WebsiteBaker Team beitreten?
Nähere Informationen finden Sie unter hier und auf unserer neuen Webseite.
155556 Posts in 21715 Topics by 7737 Members
Latest Member: gx-world
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: modified MENU_LINK modul  (Read 275 times)
kuerbis42

Offline Offline

Posts: 7


« on: November 13, 2011, 04:35:54 PM »

Hi folks,

I just made a few changes to the MENU_LINK module an I think it may be usefull for others.

The changes I made are quite simple:

If you make a MENU_LINK, you are now able to select an NEWS-Topic (post) as "anchor".
In "save.php" it will be resolved to an external link, so after save you will see the menu_link as external with the full URL to the post itself.

Selectable are ALL posts at that page_id which are active.
There is maybe the possibility to reduce that to "active AND published_until"

There is an unlucky hardcoded part in "modify.php" in line 153
Code:
$str.="'!".WB_URL."/pages".$tmpstr[1]."',";

I'm not happy with this, but within MENU_LINK I've no access to $admin->page_link()

Maybe there are some brilliant guys who can fix this issu.

I attached it as menu_link2.zip

Comments are welcome
« Last Edit: November 13, 2011, 04:37:43 PM by kuerbis42 » Logged
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!