Topic Closed
tyee
24 Posts

Anyone know how to do this. When we add pages they are automatically added to the top menu but I would like to add a link to another url outside of gpeasy.

10 years ago#532

Charles S
448 Posts
13.7K Downloads
2 Themes
8 Plugins

the plugin MyURL does what you are looking for. You can find it here.

It can only be used for one link. If you need more links you need to rename the plugin and info inside the .ini and .php file -- eg change all occurences of "myurl" to "myurl2" and rename the php file to myurl2.php

 

 

10 years ago#534

Hello,

I'm using version 2.0a3 and would like to open a menu link in a new window (target="_blank"). I looked at the my url plugin but this doesn't have the option to open in a new window. Is there a way to do this with gpeasy? thanks for your help.

 

Edited: 9 years ago#1388

I wasn't able to find a way to do it with by editing the /include/admin/admin_menu_new.php

But I did find a good jquery workaround that works find for my need. All I needed was to open the blog link in a new window.

In themes/YourTemplateName/template.php I add the following between the <head></head> tags. This allows me to open the blog in a new window/tab.

<script> $(document).ready(function(){     $('a[href=/Special_Blog]').click(function(){     window.open(this.href);     return false;   }); }); </script>

Edited: 9 years ago#1389

I used this to link to my forum, which isn't a part of gpEasy:

<script type="text/javascript">window.location.replace("YourLinkURL")</script>

I first created a page in gpEasy called "Forums", then put the above Javascript in the source of that page using CKEditor. It now redirects to my forum. And, you can use it as many times as you want!

9 years ago#1432

Topic Closed

 

News

elFinder 2.1.50 in Upcoming Release
12/28/2019

A new release for Typesetter is in the works with a lot of improvements including the ... Read More

Typesetter 5.1
8/12/2017

Typesetter 5.1 is now available for download. 5.1 includes bug fixes, UI/UX improvements, ... Read More

More News

creisi productions

Dienstleistungen von creisi productions, Luzern (Schweiz): * Konzeption, Planung und Erstellung Ihres Internet-Auftritts * Betreuung und Aktualisierung/Pflege Ihrer Website * ...

Find out more about our Provider Spotlight

Log In

  Register