currently I'm developing a new great package for umbraco 7 called mail2cms, which imported emails as umbraco content or media nodes.
I already have developed a very extensive custom section for the settings. I can select a document type or a media type for import of mails from a specific mailbox and assign specific email attributes, such as recipient, sender, subject, body, attachments and others to individual document or media type properties.
My custom propertyType pickers now give me back the id of property type. This value is the id in cmsPropertyType table.
If I import the mails to umbraco I need the propertyTypeAlias ("Alias" in cmsPropertyType table) to save the value of my mail to a specific content or media node with contentService or mediaService.
How get property type alias from property type id
Hi,
how I can get the property type alias from a given property type id with api?
Sören
Hi Sören
I believe you should use the content service API for that - http://our.umbraco.org/documentation/Reference/Management-v6/Services/ContentService
Hope this helps.
/Jan
Hi Jan,
with content service I can get a content type. But I have a property id and need the property type alias. I can't found a method for this.
Sören
Hi Sören
Aaah I see..but what is your scenario? Why do you need to be able to fetch the alias based on an id of a property?
I mean...the alias for a certain property editor can be many different things...Looking forward to hearing from you :)
/Jan
Hi Jan,
currently I'm developing a new great package for umbraco 7 called mail2cms, which imported emails as umbraco content or media nodes.
I already have developed a very extensive custom section for the settings. I can select a document type or a media type for import of mails from a specific mailbox and assign specific email attributes, such as recipient, sender, subject, body, attachments and others to individual document or media type properties.
My custom propertyType pickers now give me back the id of property type. This value is the id in cmsPropertyType table.
If I import the mails to umbraco I need the propertyTypeAlias ("Alias" in cmsPropertyType table) to save the value of my mail to a specific content or media node with contentService or mediaService.
Sören
Hi Jan,
I have solved it with ContentTypeService :-)
Sören
Hi Sören
Very happy that you managed to figure it out and #h5yr for sharing the solution.
Looking forward to your package release indeed! :)
/Jan
is working on a reply...