Recent Topics

1 May 20, 2017 21:27    

I've been using b2evo for a few days now and so far it's looking great. I have found how to change a good few settings and am mostly happy with the way the site is set up, but I'm having a bit of a problem trying to create a stand alone page so I'm looking for a little help.

The site is https://ryanit.ie - ignore colour and style differences, I'm just trying to get the mechanics working first before I put too much effort into making it look better.

I have created two stand alone pages and they both appear in the menu bar, but I don't want one of them ("Why isn't my application secure?") there. My plan is to provide a link to the second one from within text on the home page. Is there a setting somewhere that allows you display some stand alone pages in the menu and not others?

Thanks,

David

2 May 22, 2017 07:52

Hi @zag,

That menu bar is controlled by the Site skin, a header and footer shared between all the collections.

The menu links you mentioned are displayed by a widget (coll_page_list) that has been called directly in the code of the site skin.

You can find more info about site skins here: http://b2evolution.net/man/developer-reference/themes-templates-skins/site-skins/ and here: http://b2evolution.net/man/custom-site-skin.

According to the second link, you just need to do the following:

  1. Create a folder site_skin/custom.
  2. Copy the file site_skin/_site_body_header.inc.php in it.
  3. Find the widget which is displaying the standalone pages links and deactivate it. You can just replace line 57 from this: if( $Settings->get( 'info_blog_ID' ) > 0 ) to this: if( false )

3 May 23, 2017 11:13

Thanks mgsolipa - I tried that, but it got rid of the link I wanted to keep as well as the link I wanted to remove.

What I did instead was to create a new collection, and set it to never display in the front office list. Then I created the stand alone page in that collection and it worked as expected - no entry in the site header menu.

Thanks,

David


Form is loading...