[opencms-dev] Category editing
Jane Austen Stardust
stardustja at gmail.com
Mon May 8 11:55:52 CEST 2017
Hello!
I have to edit one category of a blog entry by ugc-blog form.
1.
In org.opencms.apollo/formatters/blog_ugc-form.jsp I have added the select
field:
<div class="form-group">
<label for="categories">Category</label>
<select class="form-control" name="categories">
<option value="location/africa/">Africa</option>
<option value="location/asia/">Asia</option>
<option value="location/europe/">Europe</option>
</select>
</div>
2.
than, in org.opencms.apollo/resources/js/ugc/ugc-blog.js I have added this
code
function myMappings() {
...
ugc.map("categories", "Category[1]", ugc.OPTIONAL);
}
the new select field appares into the form, but category isn't set. What's
wrong?
Thanks at all!
JA
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20170508/942b4243/attachment.htm>
More information about the opencms-dev
mailing list