Can categories for audio and youtube videos be made ?

John Bizley
John Bizley
@john-bizley
10 years ago
251 posts
Is it possible to be able to create categories for your Audio files and YouTube videos ? The user must select a category for the files to go in when adding them. This will make it easier to view the items on a page, a bit like the forums where we have Newest and My Posts etc.

updated by @john-bizley: 01/03/15 06:13:02AM
michael
@michael
10 years ago
7,714 posts
You can add any extra fields you like using the Form Designer

"Using the Form Designer"
https://www.jamroom.net/the-jamroom-network/documentation/getting-started/1275/using-the-form-designer

With that you can add in any fields that you need.

As a rough outline, something like:
* add a field with the Form Designer: audio_category
Make it a "select" type if you want to define the categories they can use. In the options put:
lectures|Lectures
self_improvement|Self Improvement
and whatever other categories you want to add in. the first part should not contain spaces, the second is what the user will see in the drop down list.

If your not so pickey as to what the user adds, then perhaps a "Select and Text" that will show all the previously entered options and allow them to select from that or add their own in.

From there you can use that in any {jrCore_list .....} that you like anywhere.

"{jrCore_list}"
http://www.jamroom.net/the-jamroom-network/documentation/development/89/jrcore-list

For example if you wanted to create a list just containing Self Improvement items, then use:
{jrCore_list module="jrAudio" search="audio_category = self_improvement"}

and you will get a list of those files.

If you want to put that as the default tab on the profiles, then you'll want to over-ride the modules item_index.tpl file.

eg:
The file responsibile for this screen http://1940snetwork.com/founder/audio is:
/modules/jrAudio/templates/item_index.tpl

While the file responsible for this screen http://1940snetwork.com/audio is
/modules/jrAudio/templates/index.tpl

Its the same for all modules.

Inside that each you will find a {jrCore_list ....} call.

If you want to over-ride either of those tempates, do that in your skin. Just copy it to your skin and prefix it with the module name. eg:
To over-ride:
/modules/jrAudio/templates/item_index.tpl

copy it to
/skins/(YOUR SKIN NAME)/jrAudio_item_index.tpl

then alter it however you like.
John Bizley
John Bizley
@john-bizley
10 years ago
251 posts
Thankyou Michael for the great information, really appreciate the time taken to add all the details which helps a lot. :-)

Tags