Welcome to Geeklog, Anonymous Monday, December 08 2025 @ 02:05 am EST
Geeklog Forums
Custom menus
Status: offline
monoclast
Forum User
Junior
Registered: 07/08/06
Posts: 26
So I have this entry in /system/lib-custom.php:
The problem is, I want this link to open in a new page. Normally, you would do this by adding the target="_blank" attribute to the <a> element containing the link. But since we don't have access to that in the lib-custom.php file, I can't do that here.
Is there another way??
-mono
Text Formatted Code
$myentries[] = array ('url' => 'http://blah.com.blah', 'label' => 'Blah');The problem is, I want this link to open in a new page. Normally, you would do this by adding the target="_blank" attribute to the <a> element containing the link. But since we don't have access to that in the lib-custom.php file, I can't do that here.
Is there another way??
-mono
20
18
Quote
Status: offline
beewee
Forum User
Full Member
Registered: 08/05/03
Posts: 969
Location:The Netherlands, where else?
It's not the prettiest way, but how about making an extra html menu-entry in header.thtml?
Dutch Geeklog sites about camping/hiking:
www.kampeerzaken.nl | www.campersite.nl | www.caravans.nl | www.caravans.net
Dutch Geeklog sites about camping/hiking:
www.kampeerzaken.nl | www.campersite.nl | www.caravans.nl | www.caravans.net
24
18
Quote
All times are EST. The time is now 02:05 am.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content