Welcome to Geeklog, Anonymous Friday, March 29 2024 @ 07:47 am EDT

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:

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
 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
 Quote

Status: offline

monoclast

Forum User
Junior
Registered: 07/08/06
Posts: 26
Quote by: beewee

It's not the prettiest way, but how about making an extra html menu-entry in header.thtml?


I'll try that, I guess... Thanks.
-mono
 Quote

Status: offline

::Ben

Forum User
Full Member
Registered: 01/14/05
Posts: 1569
Location:la rochelle, France
Hello,

You can try this one
Text Formatted Code

$myentries[] = array ('url'   => 'http://geeklog.net" target=\"_blank\"', 'label' => 'Geeklog');


::Ben
I'm available to customise your themes or plugins for your Geeklog CMS
 Quote

All times are EDT. The time is now 07:47 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