looking for a recommendation on how to implement this

iLoveHouseMusic
iLoveHouseMusic
@ilovehousemusic
10 years ago
517 posts
In my previous JR4 site. I would create a template (say) soulful.tpl.
In that template, I'd create a variable=soulful and plug that in for song_genre.
As a result, an artist that releases a soulful track/mix could put it on that page by simply using the song_genre=soulful during song creation.

Then, on the .htaccess file, I would use this code to rewrite the URL
RewriteRule ^soulful(/)+$ index.php?t=soulful [E=SEFTAG:soulful,L]

So that someone visiting www.domain.com/soulful would be taken straight to the soulful music charts.

My question is, is the SEFTAG method still valid for JR5?
If not, what can you recommend to achieve the same result?

I'm trying to have a separate page for charting songs/artists for each genre of house music.
Thanks!
updated by @ilovehousemusic: 03/19/14 10:30:05AM
SteveX
SteveX
@ultrajam
10 years ago
2,584 posts
Take a look at ujCategories, I think it will cover some of the things you are looking at. It doesn't work with charts out of the box, but I think it will do what you want with some adjustments.

Let me know if you wnat to try it and I'll get you access to the module.


--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)
iLoveHouseMusic
iLoveHouseMusic
@ilovehousemusic
10 years ago
517 posts
@stevex, yeah man, I just checked out your docs. I think I'd like to take a look at it. Is it available in the marketplace?

Brian
SteveX
SteveX
@ultrajam
10 years ago
2,584 posts
I see an ip address for your site in my licenses tab, so I'll create a license and send an invite for the channel unless you let me know another address. I'll do that tomorrow.


--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)

updated by @ultrajam: 02/11/14 02:46:20PM
SteveX
SteveX
@ultrajam
10 years ago
2,584 posts
I just get "Invalid Domain" error when I try to view the licenses you have installed (using the marketplace license browser). Do you have Together installed? If so, is it working? Can we do support for ujCategories using ujTogether? (I haven't had much chance to test Together yet).


--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)
iLoveHouseMusic
iLoveHouseMusic
@ilovehousemusic
10 years ago
517 posts
@stevex www dot ilovehousemusic dot com
iLoveHouseMusic
iLoveHouseMusic
@ilovehousemusic
10 years ago
517 posts
Have not installed together yet. But yeah that would be a cool test!! Give me a few min...
updated by @ilovehousemusic: 02/11/14 03:07:04PM
iLoveHouseMusic
iLoveHouseMusic
@ilovehousemusic
10 years ago
517 posts
@steve, actually my Filezilla is tied up right now doing a large file xfer (long story). Can you post together and ujCategories using the marketplace and I can download straight into my site?
updated by @ilovehousemusic: 02/11/14 03:09:09PM
SteveX
SteveX
@ultrajam
10 years ago
2,584 posts
I created an invite for the beta channel so you should now be able to install ujCategories once you subscribe (invite sent). ujTogether is in the public channel so you should already have access to that.


--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)

updated by @ultrajam: 02/12/14 03:57:10AM
iLoveHouseMusic
iLoveHouseMusic
@ilovehousemusic
10 years ago
517 posts
@SteveX thanks for that! I got ujTogether installed last night. I will check the invite in a few here and let you know when ujCategories is installed. You're on UK time right?
iLoveHouseMusic
iLoveHouseMusic
@ilovehousemusic
10 years ago
517 posts
@stevex - I got ujCategories installed. I wont be able to work on this till later tonight though (ujTogether)... I'll go over your Category docs and get started at the very least
iLoveHouseMusic
iLoveHouseMusic
@ilovehousemusic
10 years ago
517 posts
So I dug around the JR5 documentation a bit, I figured out I dont need any .htaccess edits. I can simply create a page using this method: How to add a page in Jamroom 5
SteveX
SteveX
@ultrajam
10 years ago
2,584 posts
Yes, UK time - I should be around later today.

I haven't needed to edit the htaccess file at all in JR5 (except to remove ExecCGI on servers which use ISPConfig control panel).

ujCategories will create all the pages for you if you need them within the categories section - /categories/mycat

You put the categories smarty function into a template if you need that to be jsut /mycat


--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)
Developer Networks
Developer Networks
@developer-networks
10 years ago
566 posts
Just create soulful.tpl in your skin directory. This will create www.yoursite.com/soulful

Now create a chart list like this on soulful.tpl when you design the page:

{jrCore_list module="jrAudio" chart_field="audio_file_stream_count" chart_days="7" tpl_dir="jrElastic" template="music_chart_row.tpl" require_image="audio_image"  search1="audio_genre = soulful" pagebreak="12" page=$_post.p}

Thats how you do what your asking. Hope that helps.


updated by @developer-networks: 02/13/14 07:33:18AM
iLoveHouseMusic
iLoveHouseMusic
@ilovehousemusic
10 years ago
517 posts
@B360 thanks man! I did discover the add-a-page video last night, easy peasy! And I started populating that page using the exact code you pasted.

I found the search1 parameter example in this document.
http://www.jamroom.net/the-jamroom-network/documentation/howto/1080/howto-using-jrcore-list-in-a-template-step-by-step

I also started looking at the ProJam and Nova templates for ranking examples.

@SteveX yes I'd be interested in seeing what the ujCategories can do for me. Though, my schedule tonight wont allow for a ujTogether session...
Developer Networks
Developer Networks
@developer-networks
10 years ago
566 posts
I wrote that documentation awhile back. Glad to see it helped. :)

Tags