Blogg
<<  juli 2009  >>
tiontofr
293012345
6789101112
13141516171819
20212223242526
272829303112
3456789
Större Kalender

Senaste poster

Tag Cloud

Blogengine Menu Usercontrol

I have created a Menu Usercontrol for Blogengine.net

The control generates a UL menu, wich is CSS compatible and which you can find stylesheets to everywhere.

It also have sorting variables so that the page can be sorted in different ways (since that is not standard in blogengine)

For custom sorting, the keywords field can be used by putting 1, 2, 3 etc as a keyword depending on how you want the pages sorted

The menu is also put in a sessionvariable the first time, which will speed up subsequent loadings of the page. The refreshtime can also be set in the webcontrol. 

This is how it looks when used 

 



This is a sample on how it looks in Visual Studio

 

 

 

 


And the variables

The code is very straightforward, and instructions are included in the top of the .ascx file

Here's a .zip of the control. Enjoy! 

 

Updated version Sept 11, 2008

Now includes admin links

JC_MenuControl_91108d.rar (3,91 kb)

Cheers!

 - jonah 

 




Just nu värderat 3.9 av 14 människor

  • Currently 3,857142/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Kommentarer

lördagen den 8:e mars 2008 04:18

Joseph

Jonah,

I have not implemented your user control yet but I like the what you have done...I just wanted to point out that when I hover over your Musik menu link as shown in your post that there is an z-index issue with the NOV 8 image in addition to the sub menus having some bleed through issues...I am very interested in implementing this...very cool

Joseph

onsdagen den 26:e mars 2008 18:35

Test examen


Thank you very much, a fantastic tip for my blog.
Best regards

Test examen

onsdagen den 30:e april 2008 00:45

Abdulla

Hi,
I like the idea of having a menu and yours look great. However I have not been successful in implementing your extension in to my theme so far. Could you please provide step by step approach to implement this control to my theme?

regards
abdulla
regards

Abdulla

torsdagen den 15:e maj 2008 15:39

Andre

Wow - looks good. Although it breaked a theme I created recently, it´s a good approach.

Andre

fredagen den 23:e maj 2008 17:15

Bryan Avery

Great add-on

Added it to my site, without any problems.

Also extended it to allow for Logon / Logout to be included

Bryan Avery

lördagen den 14:e juni 2008 20:40

Daniel

gracias por su valiosa información

Daniel

onsdagen den 27:e augusti 2008 16:49

Ryan Mrachek

I like your control and have no problem using it. My question is what theme are you using on your site?

Ryan Mrachek

måndagen den 8:e september 2008 05:10

kabonfootprint

Added it to my site, without any problems. thanks

kabonfootprint

torsdagen den 11:e september 2008 13:05

Nick

Nice control, have implemented it on intranet blog. Do the embedded comments in the List validate for xhtml?

thanks.

Nick

söndagen den 21:e september 2008 14:24

laptop cases



Nice control, have implemented it on intranet blog. Do the embedded comments in the List validate for xhtml?

thanks.

laptop cases

tisdagen den 11:e november 2008 06:02

Web Hosting

Good article, thanks.

Web Hosting

måndagen den 9:e februari 2009 08:58

cod4 hacks

Cool menu, looks great!

cod4 hacks

fredagen den 13:e februari 2009 15:17

Jim

I just tried your user control, and get the following error. Can you help?

Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error:

Line 171: if (Page.User.Identity.IsAuthenticated)
Line 172: {
Line 173: HttpContext.Current.Session.Remove("SessionMenu");
Line 174: }
Line 175:

Jim

fredagen den 13:e februari 2009 15:33

jonah

Jim, make sure you've set EnableSessionState to true in the web.config

jonah

fredagen den 13:e februari 2009 16:20

Jim

Yeah, you beat me to it... I just found it but hadn't gotten back to your Blog to let you know.

Jim

lördagen den 21:e mars 2009 08:23

Mark

This looks great. I'm a .net newbie from php background.

where can i find style sheet?

Mark

tisdagen den 24:e mars 2009 05:51

seo alaminos

graicis amigo, i learn something new about Blogengine Menu Usercontrol

seo alaminos

Kommentarer är stängt
Powered by Blogengine.net