1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Second Level Links to forums and photo galleries - Cool Trick

Discussion in 'Sitebuilder 4.0 for Windows' started by amiles248, Sep 11, 2007.

  1. amiles248

    amiles248 Guest

    The sitebuilder application won't let you make a forum, photogallery and a few other page types second level links. The system will also not let you create a second level link to a top level page. Finally site builder will not let you create multiple first or second level links to the same page often requiring you to duplicate pages.

    Never fear, there is a solution to all of these problems and it's only 1 line of code.

    To create a menu link (at any level) to any page in your website you can do the following:
    1. Preview your website and navigate to the page you ultimately want a menu link for.
    2. Write down the page url: example: page001.aspx
    3. Go back to the SB designer and add a 'file download' page type to your site
    4. Slide this page into your site's menu where you want the link to be.
    5. Go to the 'Pages' section of the editor and then click on the 'File Download' page you just created in your menu
    6. Next open notepad type the following (replacing the page001.aspx with the file name you wrote down in step 2):
    <META HTTP-EQUIV="Refresh" CONTENT="0; URL=page001.aspx">
    7. Save this file as 'MyRedirect.html', make sure that it is an html file and not a text file.
    8. Go back to sitebuilder and upload the 'MyRedirect.html' file as the downloadable file on your 'file download' page.
    9. Click the checkbox to allow this file to be opened by the browser and save the 'file download' page.
    10. Finally preview your website, find the 'file download' link and click it, it should take you to your page.
  2. Alex Klimov

    Alex Klimov Guest

    Thank you! We much appreciate posts like this :)
    Here is addition to your solution: to add custom html code to your site you can use Script module in WYSIWYG, not the FileDownload module.
    Just go to the Edit step, insert Script module and add there any html, you like.
    It can be:
    <META HTTP-EQUIV="Refresh" CONTENT="0; URL=Your_url_goes_here">
    or some redirect script:
    document.location.href = 'Your_url_goes_here';
    or just plain text :)
  3. m.r.davies

    m.r.davies Guest

    This works great (using the file download method)
    the other way isn't as good as it loads the page, then redirects

    the file download method is lots lighter on performance

    ....however, i have an issue

    this is the site structure

    __ picture gallery
    __ about weddings
    Wedding Pictures

    The "picture gallery" page is actually a file download page
    I have set the redirect meta script and uploaded it
    that all works fine

    however, the Wedding Pictures page has been set to not show in menu, but when you get redirected to it, it appears in the main Menu

    Is this a bug?
  4. Alex Klimov

    Alex Klimov Guest

    The most possible situation - your file download page is hidden in site map (setting on the Edit step on the left panel).
  5. m.r.davies

    m.r.davies Guest


    If i remove the file download page, then it wont appear in the menu and the user wont be able to click on it (and it wont redirect)
  6. Alex Klimov

    Alex Klimov Guest

    You don't need to remove it. You can manage it's visibility via "show in site map" option on the Edit step.
  7. m.r.davies

    m.r.davies Guest

    Thanks alex
    What i meant to say was remove from sitemap not remove page

    this is what i have

    --subpage2 (redirects to gallery)
    Gallery (not shown in sitemap)

    if subpage2 is a download file page, and i remove it from the site map, then it wont appear as a sub menu item.

    The problem is, when subpage2 redirects to gallery, the gallery appears in the 1st level navigation
  8. Alex Klimov

    Alex Klimov Guest

    Oh, I see. Unfortunately this behavior is handy for other navigation scenarios. However we will schedule meeting and talk how you problem should be solved in general.