how to add product's tags in the prestashop 1.7 - admin

I am sorry for the nub question but where I can add tags into product. Prestashop 1.7 software.
in their docs it should be simple http://doc.prestashop.com/display/PS17/Tags but I dont see them

When editing the product, it's in the Options tab.
Add them seperated by a comma, like they mention.
Edit:
I was trying on a 1.7 local installation and it looks like they have a bug. They are not a "language field", and do not save the input.
Edit2:
It's not very intuitive, but if someone whats to use only one tag, it still needs to input the comma. Or on other words, it's not separated by a comma, but a comma after every word. then it will save.

Related

How do I filter a Sitefinity form paragraph text box to disallow URLs?

My company is getting a few (3-5) spam emails per day through a customer contact form. The reCaptcha we are using isn't blocking them for some reason, but they are so few perhaps there is an actual human involved.
One thing they have in common is some kind of URL link in the paragraph text box meant for additional comments. There isn't any reason for actual customers to be posting URLs, so we figured we could just set the validation to exclude them and call it a day. But, I can't get it to work.
When editing the text box, I've gone to Advanced > Model > ValidatorDefinition so I can enter my custom regular expression code for disallowing anything with http/https/ftp:
^(?!((http[s]?|ftp):\/)?\/?)
But I'm having trouble determining what field to enter this in and what other fields I need to change to make sure this works properly. From this article, it seems the ExpectedFormat field should be Custom, but where does my regular expression code go? Putting it in the RegularExpression field is activating the RegularExpressionViolationMessage for any content whatsoever, not just for URLs, so I suspect my regular expressions may be wrong even if I have it in the right place.
I cannot really speak into the configuration part. The linked docs look pretty clear.
If you are in a dynamic module, this post might help:
You can find a regex field in the ModuleBuilder module -> Your module
-> Your module type -> Click on the desired field for the regex validation -> select "limitation" tab (example).
Regarding the regex itself, try it like this (demo)
^((?!(?:(https?|ftp)(?::\/\/))).)*$
You might need to add a (?s) single line flag: (?s)^((?!(?:(https?|ftp)(?::\/\/))).)*$

which django authocomplete should I use?

I have a form which has input as name. It search the lastname and firstname field in a database. I need to autocomplete when users type the name.
I see there's several django autocomplete package. Which one should I use?
Is django-autocomplete-light a easy one?
I followed that tutorial, but has error even at the beginning, and it seems hard to understand. Thanks for any suggestion!
Here is my answer to how to set up the bootstrap autocomplete, its not to dificult to set up:
How to autocomplete a search form?

Split form into tabs in Django

I'm developing a Django app which has database driven form fields. I've followed this guide which seems to work so far.
I'm using Twitter Bootstrap and would like to split my fields into tabs. What would be the Django way to do this? Should I append the group label to the id of the form fields and somehow do the magic in the template? Should I use multiple forms in the same view (seems complicated)?
The end result HTML wise is to enclose the input fields in the correct div elements with the group's id like so.
I recently required the very same thing.
After some research, I used django-crispy-forms, which worked quite well. A more detailed instructions about the tabs (and the need of .js file for animation) can be found here, in the 'tabs' section.

How to display multi-word app names properly (i.e. with spaces) in Django admin?

I'm struggling to find a way to get multi-word app names to display properly in Django admin.
I've tried CamelCasing, hyphens and underscores, but in each case the app name just displays in admin exactly as it's named in the project. I've searched around for the answer but oddly can't seem to find one.
I'm sure I must be missing something obvious...
unfortunately, afik, django doesn't really support the notion of "verbose names" for apps. The admin just does app_name.title(). So to get want you want, some more trickery is needed. Haven't tried (never needed this) but this solution may just work.
I know this thread is super old but it was the first one I came across when searching for this. There is a way to use verbose_name as you can find in the answer here:
Can you give a django app a verbose name for use through the admin

Organizing django-tagging tags or assigning properties to tags?

I'd like to categorize my tags. Here's an example of the tags I have now:
css, internet-explorer, firefox, floats
Each of those are separate tags ( 4 in total obviously ). I would like to mark the internet-explorer and firefox tags as browsers. Does django-tagging offer some sort of way for doing this or do I have to manually edit the schema?
I really don't care if I have to either tag tags or add a new column to the tags table, whichever is the easiest way in accordance with the plugin.
Interesting, I came across this problem as well and solved it like this.
I don't want to mess with the django-tagging code because it will be a pain if I wish to upgrade afterwards, so I made a new module called taggingtools. Taggingtools is for grouping tags and autocompletion in the admin interface. For the grouping I made a new model named TagGroup, this model just has a name. (for Example browsers). I also added some functions to return the tags for that group. I then added the tags for Browsers to the Browsers TagGroup. This way I can say I want all the browser tags for a certain database object. It's easy to make this, but if you can wait I can check if I can opensource it so you and others don't have to build it yourself.