Loading...
 
Skip to main content

Features / Usability


Menu Links in NewPage or iframe

posts: 80 Austria

😉

  • Links to be opened inside an iframe in the main display area can be done this way ("Featured Links" feature has to be enabled):
    Link opens in iframe
    Copy to clipboard
    tiki-featured_link.php?type=f&url=http%3A%2F%2Fwww.siemens.com%2f
    All special characters have to be replaced with the html encoding, e.g. / has to be replaced with %2f!

  • Links in Menu can be made to open in a new page whenn adding int he "URL:" field "Edit menu options" the following string after the url (no space between url and "):
    Copy to clipboard
    " target="_blank
posts: 80 Austria

Just to let you know, the usermenu feature can be modded to also open in iframe, if "featured Links" are enabled.
If you want details, please post here.


posts: 4664 Japan

This is good information; people ask how to do things like this from time to time. There ought to be a wiki page or FAQ here or at doc.tw.o to keep this information from getting lost.

-- Gary

posts: 80 Austria

> This is good information; people ask how to do things like this from time to time. There ought to be a wiki page or FAQ here or at doc.tw.o to keep this information from getting lost.
>
> — Gary
If you tell me how i create/edit a page in doc.tw.o
The link on the top right isn't working correctly:"This documentation is a community effort. Join us!"
Respectively the language pages are empty.

posts: 4664 Japan

> If you tell me how i create/edit a page in doc.tw.o
> The link on the top right isn't working correctly:"This documentation is a community effort. Join us!"
> Respectively the language pages are empty.

If it seems appropriate, maybe it would be good to add your information to the "Custom Menus" page at doc.tikwiki.org (http://doc.tikiwiki.org/tiki-index.php?page_ref_id=143).
Your tikiwiki.org username and password should work at doc.tw.o also. There's a log-in link at the top of its index page.

That page isn't really complete yet. It should have screenshots, etc. Also, multilevel PHPLayers menus are possible (code not in CVS yet), and I'll add the information about that later.

-- Gary

posts: 80 Austria

> > If you tell me how i create/edit a page in doc.tw.o
> > The link on the top right isn't working correctly:"This documentation is a community effort. Join us!"
> > Respectively the language pages are empty.
>
> If it seems appropriate, maybe it would be good to add your information to the "Custom Menus" page at doc.tikwiki.org (http://doc.tikiwiki.org/tiki-index.php?page_ref_id=143).
> Your tikiwiki.org username and password should work at doc.tw.o also. There's a log-in link at the top of its index page.
>
> That page isn't really complete yet. It should have screenshots, etc. Also, multilevel PHPLayers menus are possible (code not in CVS yet), and I'll add the information about that later.
>
> — Gary
Thank you.
I integrated the multilevel iinto our tiki as top navigation, but have the folowing problem with "Online Users" module:
When i open the page and hover the username in the "Online Users" module i get the popup layer with the useringo.
If i hovered any of teh top menus the hoveringof username does not work anymore.
This also happens for page editor links.
This is really annoying and the has to be a solution.

posts: 80 Austria

> I integrated the multilevel iinto our tiki as top navigation, but have the folowing problem with "Online Users" module:
> When i open the page and hover the username in the "Online Users" module i get the popup layer with the useringo.
> If i hovered any of teh top menus the hoveringof username does not work anymore.
> This also happens for page editor links.
> This is really annoying and the has to be a solution.
I got the fix myself, if somebody is interested:
This is the fix for multilevel menu username popup info corruptin.
In lib/overlib.js around line: 566

in ''lib/overlib.js'' around line: 566 cahnge from:
Copy to clipboard
iwidth = windowWidth();
to
Copy to clipboard
iwidth = windowWidth;

This should be changes anyway in the new release.


posts: 5 United States
> * Links in Menu can be made to open in a new page whenn adding int he "URL:" field "Edit menu options" the following string after the url (no space between url and "):
Copy to clipboard
" target="_blank


Has anyone else been able to get this to work? I've tried it with and without the trailing slash:

Copy to clipboard
http://website" target="_blank http://website/" target="_blank


Without Slash doesn't even make the link clickable.
With the slash makes it link clickable, but creates a link that doesn't work such as:

http://website/%22 target=%22_blank

Am I doing something wrong?


posts: 4664 Japan
> * Links in Menu can be made to open in a new page whenn adding int he "URL:" field "Edit menu options" the following string after the url (no space between url and "):
Copy to clipboard
" target="_blank

FYI, a link with this modification
Copy to clipboard
" target='_blank'
works for me with IE and Firefox, but Opera says its an illegal URL (contains characters not in the right place) and so the URL doesn't work in that browser.


-- Gary

posts: 5 United States
> > * Links in Menu can be made to open in a new page whenn adding int he "URL:" field "Edit menu options" the following string after the url (no space between url and "):
Copy to clipboard
" target="_blank

>

> FYI, a link with this modification
Copy to clipboard
" target='_blank'
works for me with IE and Firefox, but Opera says its an illegal URL (contains characters not in the right place) and so the URL doesn't work in that browser.

>
> — Gary

It's still not working for me. Using Firefox 1.5.0.7 on PPC OSX 10.4.7. It only opens in a new window when I click the link at the bottom of the screen when editing a menu ("/tiki-admin_menu_options.php"), but everything pops from that section. If I click the item from the menu on that same page or from the menu I've edited on the homepage, no window pop. 😑

In addtion, it seems the URL that gets "created" includes the target syntax as part of the URL.

I'm sure that there is something I'm doing wrong since everyone else is able to do it, but for the life of me, I can't figure it out.

posts: 4664 Japan

> It's still not working for me.
> ...
>
> I'm sure that there is something I'm doing wrong since everyone else is able to do it, but for the life of me, I can't figure it out.

Now it's not working for me, either. 😕 Not sure what changed.

-- Gary


posts: 80 Austria

Oh sorry, it's working only for phplayermennus. 😡 I only checked in the vertical hover menu

It's because tiki translates the db-stored menu entry:

Copy to clipboard
http://website/
Copy to clipboard
__''href="''__http://website/__''"''__

when inserting the "target=_blank the string will get corrupted by some function (maybe preg_replace() or something) except for phplayers:

Copy to clipboard
href="http://website/''__&qout;__ target=__&qout;___blank''"

(please replace qout with quot) in the code above

I'm trying to find the function and modify it. For the moment only phplayermenus work this way 😢


posts: 80 Austria

Found the solution:
templates/user_menu.tpl line 28 the "|escape" is the problem.
I cannot enter the whole line in the CODE plugin, but to give you an idea:

Copy to clipboard
{if substr($chdata.url, -16) == '" target="_blank'} ...href="{$chdata.url}" class="linkmenu"... {else} ...href="{$chdata.url__|escape__}" class="linkmenu"... {/if}

Sorry, i didn't find out sooner.

posts: 5 United States

> Found the solution:
> templates/user_menu.tpl line 28 the "|escape" is the problem.
> I cannot enter the whole line in the CODE plugin, but to give you an idea:

>
Copy to clipboard
{if substr($chdata.url, -16) == '" target="_blank'} > ...href="{$chdata.url}" class="linkmenu"... > {else} > ...href="{$chdata.url__|escape__}" class="linkmenu"... > {/if} >

> Sorry, i didn't find out sooner.

YAY! I'm not crazy!! 😁

Thanks Torpedro!

posts: 80 Austria

> ...
> YAY! I'm not crazy!! 😁
>
> Thanks Torpedro!

jtravis, No, you're not crazy 😀
It was my fault, because i only tested it with my new header menu and not with the standard menus.
But you have to take care about the spelling and case of " target="_blank or the if will drop it (like " target="_new will NOT work)