This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
Cumul
Hi all,
I'm using the Static Pages plugin to make snippets from partials with properties. When i use my editor to set the properties in the viewbag like:
[viewBag]
snippetCode = "testsnippet"
snippetName = "A test snippet from a partial"
snippetProperties[mypropery|type] = "string"
snippetProperties[mypropery|title] = "A string"
everything works fine. But when i add the properties in the CMS partial-page (in the properties table) and save the partial, the snippet-properties in the viewbag wont get saved...
Am i missing something?
Many thanks in advance
Last updated
Mr Hound
Hi, Maybe this code will help :
[viewBag]
snippetCode = "testsnippet"
snippetName = "A test snippet from a partial"
snippetProperties[mypropery][type] = "string"
snippetProperties[mypropery][title] = "A string"
snippetProperties[mydropdown][title] = "Choose a value"
snippetProperties[mydropdown][type] = "dropdown"
snippetProperties[mydropdown][1] = "Defaut"
snippetProperties[mydropdown][options][1] = "Option 1"
snippetProperties[mydropdown][options][2] = "Option 2"
Last updated
1-2 of 2