Login

Username

Password





Register   Reset password

This is a read-only archive of the forum.

# gedw99 5/14/2006 9:38 AM
Hey,

Has anyone had any luck getting this to work.
i am using the 1.0 version (asp.nET 1.1), NOT the latest 2.0 stuff in Subversion.

I am working on Cuyahoga.Modules.Articles.AdminArtciles.aspx as an example. and i need the admin stuff where you go in and edit an article to be localised.
I have setup the resource file of course, but am having trouble changing it to allow localisation for this files using the LocalizeControls() mehtod that Cuyahoga provides.
The pages do not inherti from the base class that provides a mthod LocalizeControls() like the normal controls do.
i have tried creaing a UserControl to represent the admin stuff and dropping it inside the AdminArticles page, but it fails with

Source Error:


Line 67: protected override void OnInit(EventArgs e)
Line 68: {
Line 69: if (this.Module.Section.CacheDuration > 0
Line 70: && this.Module.CacheKey != null
Line 71: && ! this.Page.User.Identity.IsAuthenticated


Source File: C:\\Code\project\Web\UI\BaseModuleControl.cs Line: 69

Regards

gedw99
# gedw99 5/15/2006 1:12 AM
I have just read that admin localization is part of the todo list for Cuyahoga 1.1.

Is this still on the agenda Martin (or anyone else), or is this dropped in favour of the 2.0 versin that uses asp.net 2.0?

Gedw99
# martijnb 5/16/2006 3:20 PM
gedw99i have tried creaing a UserControl to represent the admin stuff and dropping it inside the AdminArticles page, but it fails with

[...]

Source File: C:\\Code\project\Web\UI\BaseModuleControl.cs Line: 69

If you are going to inherit a user control for localization features only, it's better to inherit from LocalizedUserControl instead of BaseModuleControl.
# martijnb 5/16/2006 3:23 PM
gedw99Is this still on the agenda Martin (or anyone else), or is this dropped in favour of the 2.0 versin that uses asp.net 2.0?

It's still on the agenda but it's not one of our top priorities. We'll try to account for it in any new admin development though.
# gedw99 5/18/2006 2:10 AM
thMartin,

will give it a try using that base class.

cheers

G