Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

"All properties" button missing

Vote:
 

Hi, 

I have a settings pagetype without a render for managing settings on the site we are building. When accessing the page in edit mode I get "Preview is not available for this page" which is fine. But since a couple of hours ago the "all properties" button is missing in the upper right corner in edit mode. There hasn't been any changes on this pagetypes for a couple of days, and it worked fine before. Of course I have tried to debug, create a new instance of the page, creating a new pagetype with the same properties and a new guid, but no... :/

Please help :) 

//Andreas

#86174
May 15, 2014 13:56
Vote:
 

DOJO error?
Do you get any errors in Console or EPi log file?

#86176
May 15, 2014 14:01
Vote:
 

Hm, I managed to reproduce the same behaviour.
If your page inherits ContainerPage but you don't create a controller for your page type, 'All Properties' button won't be displayed.

Is that the case?

#86178
May 15, 2014 14:19
Vote:
 

The only thing i get is 

NetworkError: 404 Not Found - http://myverysecretlocaladress/ClientResources/Styles/Styles.css

#86179
May 15, 2014 14:21
Vote:
 

It inherits PageData. The thing it that it worked before... 

#86180
May 15, 2014 14:22
Vote:
 

Can you set a break point in controller?
I guess that DOJO error will just make the 'All properties' button unclickable (loading animation that never stops), but it won't hide it.
So I vote for controllers :)

#86181
May 15, 2014 14:26
Vote:
 

Controller created and the "All properties" button is visible, but for some reason I still can't load the all properties view.... .

#86184
May 15, 2014 14:33
Vote:
 

Can you send a code snippet or your page class and controller?

Thanks

#86186
May 15, 2014 14:40
Vote:
 

[ContentType(
GUID = "D8C04E85-0C31-494C-88E1-54CC16017C7E",
DisplayName = "Settings page 2",
Description = "Page used for site settings",
GroupName = "Platekompaniet"
)]
public class SettingsPage : PageData
{
[Display(
Name = "Topbar settings",
Description = "Settings for the top bar on the page",
GroupName = CustomTabNames.HeaderSettings,
Order = 10)]
public virtual TopBarSettingsBlock TopMenuSettings { get; set; }

[Display(
Name = "Header settings",
Description = "Header settings",
GroupName = CustomTabNames.HeaderSettings,
Order = 20)]
public virtual HeaderSettingsBlock HeaderSettings { get; set; }

[Display(
Name = "Variant page settings",
Description = "Variant page settings",
GroupName = CustomTabNames.VariantPageSettings,
Order = 30)]
public virtual VariantPageSettingsBlock VariantPageSettings { get; set; }

[Display(
Name = "Page references",
Description = "",
GroupName = CustomTabNames.PageReferenceSettings,
Order = 40)]
public virtual ContentReference TopCategoryFolder { get; set; }

and

public class SettingsPageController : PageController<SettingsPage>
{
public ActionResult Index(SettingsPage currentPage)
{
return Content("");
}
}

Thank you for your help, very appriciated! :)

#86187
May 15, 2014 15:00
Vote:
 

[ContentType(
GUID = "D8C04E85-0C31-494C-88E1-54CC16017C7E",
DisplayName = "Settings page 2",
Description = "Page used for site settings",
GroupName = "Platekompaniet"
)]
public class SettingsPage : PageData
{
[Display(
Name = "Topbar settings",
Description = "Settings for the top bar on the page",
GroupName = CustomTabNames.HeaderSettings,
Order = 10)]
public virtual TopBarSettingsBlock TopMenuSettings { get; set; }

[Display(
Name = "Header settings",
Description = "Header settings",
GroupName = CustomTabNames.HeaderSettings,
Order = 20)]
public virtual HeaderSettingsBlock HeaderSettings { get; set; }

[Display(
Name = "Variant page settings",
Description = "Variant page settings",
GroupName = CustomTabNames.VariantPageSettings,
Order = 30)]
public virtual VariantPageSettingsBlock VariantPageSettings { get; set; }

[Display(
Name = "Page references",
Description = "",
GroupName = CustomTabNames.PageReferenceSettings,
Order = 40)]
public virtual ContentReference TopCategoryFolder { get; set; }

and

public class SettingsPageController : PageController<SettingsPage>
{
public ActionResult Index(SettingsPage currentPage)
{
return Content("");
}
}

Thank you for your help, very appriciated! :)

#86188
May 15, 2014 15:00
Vote:
 

I've imported SettingsPage and SettingsPageController in AlloyTech website and everything works fine :(

I know that this is not an answer to your question, but can you:

1. Create a new tab on start page and set a restriction so that only administrators can open that tab
2. Move all the properties from SettingsPage to StartPage (inside that "special tab")

You then don't need a SettingsPage, because your site settings are easily accessible:

var contentLoader = ServiceLocator.Current.GetInstance<IContentLoader>();
var startPage = contentLoader.Get<StartPage>(ContentReference.StartPage);
            
// do something with startPage.TopMenuSettings
// do something with startPage.HeaderSettings
#86192
May 15, 2014 15:31
Vote:
 

Seems like a proper solution. Thanks for your input!

#86221
May 15, 2014 21:28
Vote:
 

A colleauge of mine removed a property that was not in use. For some reason it now works. 

#86222
May 15, 2014 21:33
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.