Plumi

Change Categories

Portal vocabularies are used to define categories to describe content in Plumi, such as video topics, video genres and submission categories. A vocabulary term is set up for that category, and then a collection is created to reference items with that category. A collection is what was previously known in Plone as a smart folder, a folder that displays dynamic content based on a set of criteria.

There are two methods available for adding a new video topic (also known as video category), video genre or callout category (also known as submission category). You can either set these up BEFORE or AFTER installation of Plumi. Setting these up before installing is a little easier, but both methods are listed below.

Before Installation

  1. Checkout the Plumi buildout as per the instructions in the installation chapter. Before running the buildout, execute the following process (between steps 2 and 3).
  2. Edit the vocabs.py file via the shell:
    $ vi plumi-buildout/src/plumi.app/plumi/app/vocabs.py 
    
  3. Here you can view the dictionary vocab_set.
    from zope.i18nmessageid import MessageFactory
    _ = MessageFactory("plumi")
    
    vocab_set = {}
    
    taxonomy_sub_folder={'topic':'video_categories','genre':'video_genre','callouts':'submission_categories','countries':''}
    
    vocab_set['video_categories'] = (
             ('poverty', _(u'Poverty / Development')),
             ('indigenous', _(u'Indigenous')),
             ('refugee', _(u'Refugee / Migration')),
             ('health', _(u'Health')),
             ('corporations', _(u'Corporations / Privatisation')),
             ('globalisation', _(u'Globalisation')),
             ('law', _(u'Law / Justice')),
             ('work', _(u'Work')),
             ('consumerism', _(u'Consumerism')),
             ('war', _(u'War / Peace')),
             ('human', _(u'Human Rights')),
             ('disability', _(u'Disability Rights')),
             ('gender', _(u'Gender / Sexuality')),
             ('race', _(u'Race')),
             ('religion', _(u'Religion')),
             ('art', _(u'Art / Culture')),
             ('internet', _(u'Internet')),
             ('media', _(u'Media')),
             ('activism', _(u'Activism')),
             ('politics', _(u'Politics')),
             ('education', _(u'Education')),
             ('biodiversity', _(u'Biodiversity')),
             ('climate', _(u'Climate Change')),
             ('conservation', _(u'Forests / Conservation')),
             ('nuclear', _(u'Nuclear')),
             ('sustainablity', _(u'Sustainability')),
             ('animal', _(u'Animal Rights')),
             ('water', _(u'Water')),
             ('biotech', _(u'Biotech')),
             ('civillib',_(u'Civil Liberties')),
            )
    vocab_set['video_genre'] = (
             ('documentary', _(u'Documentary')),
             ('experimental', _(u'Experimental')),
             ('fiction', _(u'Fiction')),
             ('animation', _(u'Animation')),
             ('music', _(u'Music')),
             ('newsreport', _(u'News Report')),
            )
    vocab_set['submission_categories'] = (
             ('festival', _(u'Festival')),
             ('screening', _(u'Screening')),
             ('dvd', _(u'DVD')),
             ('production', _(u'Production')),
             ('conference', _(u'Conference')),
             ('workshop', _(u'Workshop')),
             ('crew', _(u'Crew')),
             ('competition', _(u'Competition')),
             ('artprize', _(u'Art Prize')),
             ('exhibition',_(u'Exhibition')),
             ('other', _(u'Other')),
            )
    
  4. Video categories correspond to video topics. Video genres correspond to video genres. Submission categories correspond to callout categories.
  5. To delete a submission category, video category or video genre, just delete the line corresponding to that entry.
  6. To add an entry just enter a new line e.g.
             ('newtopic', _(u'New Topic')),
    
  7. Save the file.
  8. Continue the installation process from Step 3. When you install Plumi, the categories/genres you have defined will be created.

After Installation

To make changes to the portal vocabularies, you must log into your Plumi site using the Admin account, or any user with the Manager role. Modifying the portal vocabularies after you have already installed Plumi requires a little more work.

Note: configuration of vocabulary terms and collections happens in special places within the normal Plone (Plumi) user interface, not in the ZMI (Zope Management Interface) and not in site setup.

Also note: an easier way to do this quickly would be to edit (or copy and paste) an existing vocabulary term, and an existing collection. In particular, setting collections up with criteria can be confusing at first, so in some way editing (or copying and pasting) an existing collection could be simpler, and give you greater chance of success. Please read through the full process below to get an idea of how these are set up, and then choose to edit existing items if you prefer.

This is the broad outline of what you need to do:

  1. Go to /portal_vocabularies, select category/genre/submission and add simple vocabulary term.
  2. Go to:
      /taxonomy/genre for 'video genre'
      /taxonomy/topic for 'video topic'
      /taxonomy/callouts for 'submission category'
  3. Add a new collection, give the title of your desired vocabulary term, publish and set criteria.

This is the in-depth process, using the example of adding a new video category:

  1. Visit this page (replace example details in bold with your own):
    http://www.mysite.com/portal_vocabularies/video_categories

  2. Click add simple vocabulary term.



  3. Give your vocabulary term a key and a Value(name) and click Save.

    portalvocabularies2.jpg

  4. Visit this page(replace example details in bold with your own):
    http://www.mysite.com/taxonomy/topic
  5. Select Collection from the add new... drop-down menu.



  6. Give your Collection a title.



    and click Save.



  7. Select publish from the state: drop-down menu.

    portalvocab6.jpg

  8. Click the criteria tab.



  9. Insert the following criterias: Video categories with Criteria type of Text, Item Type with Criteria type of Select content types, and State with Criteria Type of List of values. E.g. to add Video categories with Criteria type of Text, select Video categories from the Field Name drop-down menu.



    Select Text from the Criteria Type drop-down menu.

    portalvocab9.jpg

    Click add criteria button.



    Repeat process, adding Item Type with Criteria type of Select content types, and State with Criteria Type of List of values.

  10. Choose Plumi Video from Item Type, enter your new vocabulary term (MAKE SURE YOU USE THE KEY YOU ENTERED EARLIER, NOT THE VALUE/NAME) into Video Categories, and enter published in State. Click Save button.


Warning! - Don't Delete Term Already Associated With Item

If you're going to delete a vocabulary term, make sure no video has been assigned with this term. For example, if you delete a video genre, and visit a video that is of this video genre, then you will have an error! First change the video genres of that video to remove references to the genre you wish to delete,  and then delete that video genre.