{% extends "WallabagCoreBundle::layout.html.twig" %} {% block title %}{% trans %}config{% endtrans %}{% endblock %} {% block content %}
{{ form_start(form.config) }} {{ form_errors(form.config) }}
{{ form_errors(form.config.theme) }} {{ form_widget(form.config.theme) }}
{{ form_label(form.config.items_per_page) }} {{ form_errors(form.config.items_per_page) }} {{ form_widget(form.config.items_per_page) }}
{{ form_label(form.config.language) }} {{ form_errors(form.config.language) }} {{ form_widget(form.config.language) }}
{{ form_start(form.rss) }} {{ form_errors(form.rss) }}
{% trans %}RSS feeds provided by wallabag allow you to read your saved articles with your favourite RSS reader. You need to generate a token first.{% endtrans %}
{% if rss.token %} {{ rss.token }} {% else %} {% trans %}No token{% endtrans %} {% endif %} – {% if rss.token %}{% trans %}Reset your token{% endtrans %}{% else %}{% trans %}Create your token{% endtrans %}{% endif %}
{% if rss.token %} {% endif %}
{{ form_label(form.rss.rss_limit) }} {{ form_errors(form.rss.rss_limit) }} {{ form_widget(form.rss.rss_limit) }}
{{ form_start(form.user) }} {{ form_errors(form.user) }}
{{ form_label(form.user.name) }} {{ form_errors(form.user.name) }} {{ form_widget(form.user.name) }}
{{ form_label(form.user.email) }} {{ form_errors(form.user.email) }} {{ form_widget(form.user.email) }}
{% if twofactor_auth %}
{% trans %}Enabling two factor authentication means you'll receive an email with a code on every new untrusted connexion{% endtrans %}
{{ form_widget(form.user.twoFactorAuthentication) }} {{ form_label(form.user.twoFactorAuthentication) }} {{ form_errors(form.user.twoFactorAuthentication) }}
{% endif %}
{{ form_start(form.pwd) }} {{ form_errors(form.pwd) }}
{{ form_label(form.pwd.old_password) }} {{ form_errors(form.pwd.old_password) }} {{ form_widget(form.pwd.old_password) }}
{{ form_label(form.pwd.new_password.first) }} {{ form_errors(form.pwd.new_password.first) }} {{ form_widget(form.pwd.new_password.first) }}
{{ form_label(form.pwd.new_password.second) }} {{ form_errors(form.pwd.new_password.second) }} {{ form_widget(form.pwd.new_password.second) }}
    {% for tagging_rule in app.user.config.taggingRules %}
  • if « {{ tagging_rule.rule }} » then tag as « {{ tagging_rule.tags|join(', ') }} »
  • {% endfor %}
{{ form_start(form.new_tagging_rule) }} {{ form_errors(form.new_tagging_rule) }}
{{ form_label(form.new_tagging_rule.rule) }} {{ form_errors(form.new_tagging_rule.rule) }} {{ form_widget(form.new_tagging_rule.rule) }}
{{ form_label(form.new_tagging_rule.tags) }} {{ form_errors(form.new_tagging_rule.tags) }} {{ form_widget(form.new_tagging_rule.tags) }}

{% trans %}FAQ{% endtrans %}

{% trans %}What does « tagging rules » mean?{% endtrans %}

{% trans %} They are rules used by Wallabag to automatically tag new entries.
Each time a new entry is added, all the tagging rules will be used to add the tags you configured, thus saving you the trouble to manually classify your entries. {% endtrans %}

{% trans %}How do I use them?{% endtrans %}

{% trans %} Let assume you want to tag new entries as « short reading » when the reading time is inferior to 3 minutes.
In that case, you should put « readingTime <= 3 » in the Rule field and « short reading » in the Tags field.
Several tags can added simultaneously by separating them by a comma: « short reading, must read »
Complex rules can be written by using predefined operators: if « readingTime >= 5 AND domainName = "github.com" » then tag as « long reading, github » {% endtrans %}

{% trans %}Which variables and operators can I use to write rules?{% endtrans %}

{% trans %}The following variables and operators can be used to create tagging rules:{% endtrans %}
{% trans %}Variable{% endtrans %} {% trans %}Meaning{% endtrans %} {% trans %}Operator{% endtrans %} {% trans %}Meaning{% endtrans %}
title {% trans %}Title of the entry{% endtrans %} <= {% trans %}Less than…{% endtrans %}
url {% trans %}URL of the entry{% endtrans %} < {% trans %}Strictly less than…{% endtrans %}
isArchived {% trans %}Whether the entry is archived or not{% endtrans %} => {% trans %}Greater than…{% endtrans %}
isStarred {% trans %}Whether the entry is starred or not{% endtrans %} > {% trans %}Strictly greater than…{% endtrans %}
content {% trans %}The entry's content{% endtrans %} = {% trans %}Equal to…{% endtrans %}
language {% trans %}The entry's language{% endtrans %} != {% trans %}Not equal to…{% endtrans %}
mimetype {% trans %}The entry's mime-type{% endtrans %} OR {% trans %}One rule or another{% endtrans %}
readingTime {% trans %}The estimated entry's reading time, in minutes{% endtrans %} AND {% trans %}One rule and another{% endtrans %}
domainName {% trans %}The domain name of the entry{% endtrans %} matches {% trans %} Tests that a subject is matches a search (case-insensitive).
Example: title matches "football" {% endtrans %}

{% if is_granted('ROLE_SUPER_ADMIN') %}
{{ form_start(form.new_user) }} {{ form_errors(form.new_user) }}
{{ form_label(form.new_user.username) }} {{ form_errors(form.new_user.username) }} {{ form_widget(form.new_user.username) }}
{{ form_label(form.new_user.plainPassword.first) }} {{ form_errors(form.new_user.plainPassword.first) }} {{ form_widget(form.new_user.plainPassword.first) }}
{{ form_label(form.new_user.plainPassword.second) }} {{ form_errors(form.new_user.plainPassword.second) }} {{ form_widget(form.new_user.plainPassword.second) }}
{{ form_label(form.new_user.email) }} {{ form_errors(form.new_user.email) }} {{ form_widget(form.new_user.email) }}
{% endif %}
{% endblock %}