The tutorial gives instructions to add the following to the add article and edit article pages:
echo $this->Form->control('tags._ids', ['options' => $tags]);
This should display a select element to choose the tags to associate with an article. The HTML added to the page is:
<select name="tags[_ids][]" multiple="multiple" id="tags-ids">
<option value="1">first tag</option>
<option value="2">second tag</option>
<option value="3">third tag</option>
</select>
However this is just displaying as a non-editable text box for me.
Firefox Quantum 66.0.3 on Ubuntu 19.04
It’s the same in Chromium version 73.0.3683.103 (Build oficial) snap (64 bits)
Peter
Zuluru
April 24, 2019, 11:41pm
2
It should be a list that you can click multiple items from if you hold down Ctrl.
Thanks. I have a different problem at the moment. I’ll check out what you say when I’ve sorted that - but I’m sure you’re right. Thanks.
Yes. Thanks. Of course. Perhaps not the most explicit of UI presentations, but I should have been able to work it out myself.
Again, thanks for taking the time to put me straight.
Zuluru
April 26, 2019, 9:54pm
5
It’s not particularly user-friendly, but that’s the standard HTML presentation. You might look at https://github.com/ryancramerdesign/jquery-asmSelect and similar JavaScript libraries to improve on the user experience.
Yes. I’m sure I’ll get to that in due course. Baby steps, and all that