Page 1 of 1

Direct link from a menu

Posted: Thu Jan 03, 2019 8:53 am
by LRAM
Hi

this site - https://sucrepop.com/- serves as the home page for 4 sub-sites
I would like to be able to return to the entry site of any page of any site, or to switch from one to the other without going through the home page
A static page in a menu of each sub-sites would be ideal, but I haven't found a way to make a menu title react as a link
is that possible?

Re: Direct link from a menu

Posted: Fri Jan 04, 2019 10:20 am
by Edi
A possibility is creating a page with a redirect.

You can either add a redirect rule to the file .htaccess or with JavaScript.

To redirect for example the page with the pretty URL "forward" to Google with .htaccess you can use:

Code: Select all

Redirect /foward/ http://www.google.com/
The same with adding a JavaScript to the page:

Code: Select all

<script type="text/javascript">
    window.location = "http://www.google.com/";
</script>

Re: Direct link from a menu

Posted: Mon Jan 07, 2019 4:54 pm
by LRAM
I created a static page home
on this page, in source mode, I added the script windowlacation
I see the page in the menu, but when I click on it, nothing happend. when I check the source code, the script is no more there

Re: Direct link from a menu

Posted: Mon Jan 07, 2019 5:24 pm
by Edi
You have to use either the editor SimpleMDE or add the script to the file index.txt of the page.

It's not possible to add code with the editor TinyMCE.