asked    Frank     2018-10-12       umbraco       24 view        2 Answers

[SOLVED] How to add custom fields using umbraco cms?

Currently i'm working on project that's built into umbraco cms, now i want to add some functionality like add custom fields using umbraco so is there any way to add custom fields into project using umbraco ?

e.g. i have fields named "text,imageURL and name" now i want to save and (loop)fetch into particular div tag in razor view.

i'd followed this link ''

  2 Answers  

        answered    Eden     2018-10-12      

Is this what you're looking for?

Content fields in Umbraco are called properties, and you define properties per document type - it's very easy to do via the backoffice as you'll see in the link.

The Youtube video you've found is for much more advanced scenarios than I think you're after.



        answered    Mary     2018-10-12      

Custom field type:

For getting value by name

@Model.Content.GetPropertyValue("text")

refer this razor ,good one:





Your Answer





 2018-10-12         James

Model Popup state

I am displaying a form in Jquery model popup using MVC Partial View. On submit I call my action method to validate user input and if validation fails I need to populate the modal popup again. The problem I face is,on submit it calls the child action method, I'm able to get the ViewData.ModelState.IsValid in my partial view however not been able to auto display the modal popup depends on ModelState value. I tries below jquery code but no luck.Partial View@inherits Umbraco.Web.Mvc.UmbracoViewPage<WebApplicationDemo1.Models.JobAlertModel><script> $(function ...
 javascript                     1 answers                     4 view
 2018-10-12         Una

Umbraco 7 examine JSON search - autocomplete not working

I have a working search box and wanted to add autocomplete functionality. It keeps displaying "No search results."When I type the word "Umbraco" into the input, I do see the following in the console, but it's not autocompleting:[{"id":"http://localhost:33968/explore/our-umbraco/","label":"Our Umbraco","value":"Our Umbraco"},{"id" :"http://localhost:33968/extend/umbraco-forms/","label":"Umbraco Forms","value":"Umbraco Forms"}]HTML<form method="post" action="/results"> <input type="text" id="searchTerm" name="searchTerm" size="21" maxlength="120"> <input ...
 jquery                     1 answers                     5 view
 2018-10-12         Julian

How To Remotely Change the Content In umbraco using Apis

Hello EveryOne I'm New To Umbraco I did Some Simple Umbraco Sites and Im good with so far Based on my Humble .Net background My Question is : How can i Remotely Change the Content of My umbraco form Other Pc or Something like that using Web service or APIs or what ever Im Looking foreword For a Good answerThanks In Advance Depending on your needs, you can create a webapi on top of your Umbraco instance. You'll have to implement the actions yourself.See this reference on how to implement itAnother option is installing Umbraco Rest API. This will add functionality for mana...
 api                     1 answers                     6 view