Direct link from a menu

Post Reply
User avatar
LRAM
Master Bludit
Posts: 199
Joined: Sat Sep 24, 2016 4:02 pm
Location: France
Has thanked: 22 times
Been thanked: 2 times
Contact:

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?
https://sucrepop.com
Candies for the ears
User avatar
Edi
Site Admin
Posts: 3121
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Has thanked: 54 times
Been thanked: 77 times
Contact:

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>
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets
User avatar
LRAM
Master Bludit
Posts: 199
Joined: Sat Sep 24, 2016 4:02 pm
Location: France
Has thanked: 22 times
Been thanked: 2 times
Contact:

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
https://sucrepop.com
Candies for the ears
User avatar
Edi
Site Admin
Posts: 3121
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Has thanked: 54 times
Been thanked: 77 times
Contact:

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.
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets
Post Reply