For the xbCulture components I have the ability to rate an item (film or book etc) with a number of stars (or other symbols). Personally I have long kept paper, and later spreadsheet lists of films I have seen and given them a rating. Initially I was using a 5 point scale, but I used to find this a bit coarse - I would often want to use a half point to fit something between the ok (3 star) and good (4 star) categories.

 

If you want to have a tagging facility for items in a component then it is a good idea to use the inbuilt Joomla tagging system. This does quite a lot of the heavy lifting for you (once you have set things up) and has the big advantage that tags can be shared across components. So if you wish to, you can have tags that can be applied both to articles and to items in your component, which saves having to maintain duplicate lists of tags.

You may come across some limitations in the functionality, especially when it comes to filtering a list of items by tag - but that will be a separate post.

This article is to remind me of the various hoops and enhancements needed to get tagging working in xbBooks 

Tags:
Coding:
Joomla:
Php:

The Joomla subform field type has many uses. For xbBooks and related components I needed to populate a link table joining books and people (people may be authors, editors, mentioned in a book, or fictional characters in a book). Since a person may take on more than one role for a particular book, or between books, the link table needs to have an additional field to hold what role the link represents as well as the two id fields: book_id and person_id.

From the admin point of view the user needs to either be able to specify who the author(s) (a book may have several authors) are when creating/editing the book entry, or be able to specify what books the person is associated with when creating/editing the person entry.

Subfrom fields make this a doddle.

Tags:
Coding:
Joomla:
Php:
Xbbooks:

So since the last post here I have spend most of my tech-time working on a suite of new Joomla Components to replace the flat-file catalogue of books and films that I have read or seen which exists only on my ageing Macbook using a no-longer-supported (or compatible with the latest macos) database app called Bento.

 

Tags:
Joomla: