Skip to content

redomino.advancedkeyword aims to improve the keyword mechanism provided by Plone introducing hierarchy among keywords.

Notifications You must be signed in to change notification settings

dpollino/redomino.advancedkeyword

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Index
-----
.. toctree::
   :maxdepth: 2

redomino.advancedkeyword
========================

The ``redomino.advancedkeyword`` plugin aims to improve the keyword mechanism provided by Plone introducing *hierarchy* among keywords. 
All the customizations introduced by redomino.advancedkeyword are made with backward compatibility in mind. 
You can also use this plugin without pain when you need to migrate your contents: redomino.advancedkeyword still uses the standard ``subject`` field and the main work was made at frontend level
using javascript.

Note: You can use redomino.advancedkeyword also without having javascript enabled.

What are the main problems of the old keyword management?
---------------------------------------------------------

Here is a list of problems:

* all the keywords are listed as a long long plain list
* keywords are not semantically grouped

Here you can see the standard keyword widget how it is prompted to :

.. figure::  resources/keywordold.png
   :align:   center

   Old keywords widgets.

As you can imagine the above edit widget is hard to use and difficult to manage.

How can advancedkeyword help you
--------------------------------

And now the advanced keyword widget with hierarchical management:

.. figure::  resources/keywordtree.png
   :align:   center

   Keywords widget powered by redomino.advancedkeyword

The above image let the keyword editor to collapse/expand semantic groups of keywords and it is more indicated to manage large
sets of keywords as you can find in a large intranet.

You can also search for existing keywords through the existing tags.


How it works?
=============

Hierarchy is introduced using the ``.`` (dot) character: it will be used as a keyword separator.
Why we are using the dot character and not another one? Because it is little used in keywords and it is easy to type.

Edit view
---------

If you use correctly the . separator you will be able to construct a keyword tree similar to the following one:

::

    [+] what [v]
        [+] what.doors [v]
            [+] what.doors.flat
            [+] what.doors.profiled
        [+] what.furniture
    [-] technology [v]
    ...

Clicking on the collapse or expand controls you can open or close keyword nodes.
If you click on a keyword that is a leaf, all its parents will be selected automatically; if you unselect a node, all the sub keywords selected are automatically unselected.
So the keyword editor will be able to select leafs or internal nodes.

You can add new keywords using the standard Plone control: nothing has changed. If you want to add one or more keywords type something of similar:

* what.furniture.outdoor
* etc

How keywords are shown on tagged contents
-----------------------------------------

If you choose the following keywords on a particular object:

* what.doors.flat
* technology.combined systems

The customized keywords viewlet will prompt the following links:

* what (clicking on this item you will be able to see all the products)
* what.doors (clicking on this item you will be able to see all the door related products)
* what.doors.flat (clicking on this item you will be able all the flat doors related products)
* technology
* technology.combined systems

This works because we provide a customized catalog indexer for keywords.

In next releases will be provided a mechanism for changing the shown keywords (useful for example if you don't like to show "technology.combinened systems").

How to use advancedkeyword on an existing site
----------------------------------------------

At first you will see the javascript plugin with a plain keywords list, you should add the hierarchy level grouping them with dots characters: the Plone plugin named KeywordManager is you friend!

Other features
==============

Keyword map
-----------

You can see the keywords map in order to see the site arguments structure.

How to see the arguments map of the site:

* portal_url/@@keywordsmap

Keywords portlet
----------------

This product adds a new portlet: Keyword Portlet. In order to assign a new
instance of this portlet you will have to choose a "supertag" (or a namespace
tag). This supertag will be used to browse a list of all tags that are "first
child" of this tag. For ex. if your portal has these two contents::

    >>> doc1.Subjects()
    ['supertag','supertag1','supertag.subtag1','supertag1.subtag2']
    >>> doc2.Subjects()
    ['supertag','supertag1','supertag.subtag3','supertag1.subtag4']

and if you choose 'supertag1' as parent tag, the results list will show this:

* subtag2
* subtag4

These are link to the search page with a search parameter set to
'supertag.subtagX'.

Here you can see the keyword portlet:

.. figure::  resources/keywordportlet.png
   :align:   center

   Keywords portlet powered by redomino.advancedkeyword (it shows a subset of existing keywords)


How to launch tests
===================
Type the following command:

::

$ ./bin/test -m redomino.advancedkeyword

Authors
=======

* Davide Moro (davidemoro) <[email protected]> (idea, concept, design and implementation)
* Giacomo Spettoli <[email protected]>
* Maurizio Lupo (sithmel) <[email protected]>

About

redomino.advancedkeyword aims to improve the keyword mechanism provided by Plone introducing hierarchy among keywords.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 53.3%
  • JavaScript 45.9%
  • Shell 0.8%