Note that there are some explanatory texts on larger screens.

plurals
  1. POManaging a list in umbraco 5
    primarykey
    data
    text
    <p>I have recently started working on an umbraco 5 project and am finding it a bit of a struggle compared with umbraco 4. What I am trying to do is have a list of items that are managed in the content section of the site where users can add items to a list, this list is then used in drop downs and page categories throughout the site.</p> <p>I am looking for the best way to do this, I am currently part way through creating a property editor that manages a list of text boxes but not sure if this is the best way of doing it, and Im currently not entirely sure of how to go about doing even this. I can save one property no problem, but a dynamic list? </p> <p>Can anybody give me some idea of how they would go about doing this with some code examples, theres not a huge amount of resources for 5 out there at the minute.</p> <p>Many thanks to those who contribute.</p> <p>UPDATE</p> <p>I have now copied the multiple textstring property editor from the source code and am looking to update it to have an extra text input. Its using the knockout javascript library of which Im not too familar with, below is the code I have so far, does anyone know how I would update this to save both text values to the database?</p> <pre><code>&lt;ul class="relatedlinks-textstring-inputs" data-bind="template: { name: 'textstringRow', foreach: textstrings }"&gt;&lt;/ul&gt; &lt;script id="textstringRow" type="text/html"&gt; &lt;li style='width: 250px;'&gt;Name&lt;input type="text" data-bind="value: value" /&gt;Url&lt;input type="text" data-bind="value: value" /&gt;&lt;/li&gt; &lt;/script&gt; @Html.HiddenFor(x =&gt; Model.Value, new Dictionary&lt;string, object&gt; { { "data-bind", "value: value" } }) </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload