Login

Username

Password





Register   Reset password

This is a read-only archive of the forum.

# zero3d 3/17/2006 11:19 AM
I am new to Cuyahoga, and I am trying to create a new template. I can install the template without any problems. But when trying to view the page I get an error:

500 An error occured: Object reference not set to an instance of an object

I have tried both copying an existing Templete to a new folder and tried to create one of my own. I get the error every time. All the preinstalled templates works without any problem.

Does anyone have an ide what could be the problem?

Thanks for a great product!

Joakim
# martijnb 3/18/2006 5:17 AM
Could you perhaps turn on logging in the web.config by uncommenting the log4net section? This gives some more detailed error messages. From the current error message, it's nearly impossible to determine what's wrong.

One thing that comes to mind though: did you inherit the template user control from the base template class?
<%@ Control Language="c#" AutoEventWireup="false" Inherits="Cuyahoga.Web.UI.BaseTemplate" %>
# zero3d 3/18/2006 1:52 PM
I've got it working again. I don't have any ide what was wrong. I started with one of the excisting templates and changed it to my liking. Then I renamed it and it worked this time. Maybe I did something wrong the first time, but the strange thing was that I copied an excisting template to a new folder and I got the error when using it. I get back to you if I have the error again.

An other question is if there is or will be a possibility to as new pages at editorview. For example it would be very usefull if an editor could create a new page without going into admin mode.

And a third question if there is a possibility to change the layout of a selected menuitem in the NavigationLevelZeroOne.ascx menu. I would for example like to have the background change to a different color for the selected menuitem.

Thank again for a great program!!
# martijnb 3/19/2006 5:20 AM
zero3dAn other question is if there is or will be a possibility to as new pages at editorview. For example it would be very usefull if an editor could create a new page without going into admin mode.

Would be nice. We're going to reorganize some of the admin stuff and probably this will fit somewhere.
And a third question if there is a possibility to change the layout of a selected menuitem in the NavigationLevelZeroOne.ascx menu. I would for example like to have the background change to a different color for the selected menuitem.

Yes, this is perfectly possible. A selected item gets a css class called 'selected':
<a href="..." class="selected">
You can design your css so that this class receives a different background color.
# zero3d 3/19/2006 1:57 PM
Now I almost got it working with the menus. Unfortunately the "first page" doesn't get a selected marking. This may depent on the fact that it is not included in the repeater. I have also tried to create a "first page" that is not supposed to be shown in the menu by unchecking the Show in navigation option. I am not sure if that means that its not supposed to show in the menu, but it didnt work anyways. So now I am wondering how to create a menu where all the items get the selected marking?
# martijnb 3/20/2006 1:14 PM
Maybe the HierarchicalMenu will do? It highlights every active item, including the first item.

An alternative is to build your own menu control that does everything to your liking. It's really not that difficult. Just take a look at the existing controls and use that as a base for your own control.
# zero3d 3/20/2006 1:40 PM
Ok I will try this. Than you very much for your help!