ACA application don't display repo constrain property as dropdown - dropdown

I have defined constrain property in repo like this:
In the ACA application but this property looks like text property without dropdown.
Is there any way how to show this property as dropdown ?
Many thanks

Alfresco 7 will include this feature.

Related

How do I add a custom field to a Sitefinity widget?

I am trying to add a related image field in the news component that is provided by Sitefinity. How do I accomplish this?
Go to: Administration > Module Builder under the tools section of the dropdown. Scroll down to News Items and select it. Once inside it you will want to click on the news items under the modules contains header. From there you can scroll down and select: add a field. Select type related media and you can name it and set certain settings like if it is required.

Accessing Placeholder From Widget MVC Controller Code

I'm using Sitefinity 8.1 in MVC mode. I have an MVC page template with an assortment of placeholders.
I've created an MVC widget designed to be used multiple times on a page. From within the controller code I would like to be able to find out the name of the placeholder the widget is sitting in so that I may make adjustments to the widget on-the-fly.
Is this possible?
Thank you.
Instead of relying on the name of a placeholder, which I think is prone to errors, why not just introduce a public property in the controller?
e.g.
public string Message {get; set;}
Then when you drop the widget in placeholder1 you can edit its properties and put whatever you want in the Message property.
Similarly, when you drop the widget in placeholder2 - you edit its properties and set something else in the Message property.
The controller will do different things depending on the value of the property - this way it is much cleaner than relying on placeholder name.
Do the adjustments need to be server side? If not just make changes based on CSS selectors. If server side I'll have to get back to you.

Display tag ver 1.2

I have an issue with displaytag 1.2 and struts.
I am using pagination of display tag. when i 'go' in page 2 and I click sumbit I lost all the value of the list.
How can I keep track of those values?
I mean, in my action i have only the value of the elements current displayed, I need all the value.
Thanks in advance
Kind regards
If you use the value list pattern as they said at their site then you need to handle partial values from your customized class which will implement the org.displaytag.pagination.PaginatedList interface.
But there is another way too where you don't have to do anything except giving some parameter.
Read this Doc carefully

DNN 7 Custom Profile Property with database validation

I'm using DotNetNuke 7 for my CMS. I created a custom profile property for zip codes. Does anyone know how to add custom validation for the data entry before allowing the user to register.
Thanks
I don't think DNN allows this in custom properties, you'll likely need to wire something up yourself to make this happen. You might be able to add some custom jquery to the registration page that does some webservice calls to check and validate a property, but I haven't tried that before so it would probably be a lot of trial and error until you get it working right.
Click on the pencil next to the property you created if its only one zip code then in the valid expression area put the zipcode ex:08109 of you wanted to have it at two zipcodes lets say 08109 and 08110 then you could use a validation expression something like this:
^[0]{1}[8]{1}[1]{1}[0-1]{1}[0-9]{1}$

Controlling the sort order of property pages in a eclipse property dialog

Currently, when I contribute property pages to Eclipse using the org.eclipse.ui.propertyPages extension point, the individual property pages show up in the property dialog in alphabetical order based on the pages name.
Is there a way to control the order that property pages are listed? I want the basic property page to always show up first, with less important page after it.
I've tried changing the id of the page, but it doesn't appear to have any effect.
Any suggestions?
FWIW: It looks like base eclipse can do it ... in the contributePropertyPage method of RegistryPageContributor, it sets the priority of the PropertyPageNode to -1 if the property page id is "org.eclipse.ui.propertypages.info.file". This is exactly what I want to do.
Figured it out!
What I needed to do is provide my own ContributionComparator in my WorkbenchAdvisor class.
The ContributionComparator has a compare method that allows me to determine the sort order of items in the property page list.
Found the information here.
You could make the less important page a sub-property page of the basic property page.
You could use a hide / show method to put all the properties on the same page.