Forum Activity for @elric

elric
@elric
10/16/14 10:43:53PM
81 posts

JR Video Player on index.tpl or any other skin template


Jamroom Developers

Michael! Thank you. You just helped make a really bad day a much better.

Cheers,
~E
elric
@elric
10/16/14 10:25:24PM
81 posts

JR Video Player on index.tpl or any other skin template


Jamroom Developers

I get this error:
Quote: jrCore_media_player: invalid type parameter
with this code:
{jrCore_media_player module="jrVideo" search="video_genre = rock"}


Chances are I'm misunderstanding implementation. Is this literally a copy and paste to work index.tpl?
updated by @elric: 10/16/14 10:27:37PM
elric
@elric
10/16/14 10:19:01PM
81 posts

JR Video Player on index.tpl or any other skin template


Jamroom Developers

Repost from the documentation comments:

elric
15 Oct 2014 05:44:01PM @elric:
Hello, I've been looking for a way to use this to embed the dark player for video on my index.tpl, and have it play all videos on my site with a specific genre as a play list. Sort of like the old Jamroom 4.x with the admin video play list...Any suggestions?

Cheers,
~E

michael
16 Oct 2014 02:09:08AM @michael:
Better to ask questions in the forums, I almost missed this one. The code you want is:
{jrCore_media_player module="jrVideo" search="video_genre = rock"}

To play all videos in the 'rock' genre.

The other way to do it is to use the {jrCore_list} function to create the list of items, then pass that into the player.

{jrCore_list module="jrVideo" search="video_genre = rock" template="playlist.tpl"}

Then in playlist.tpl
{jrCore_media_player module="jrVideo" items=$_items}

Both ways will work.
- See more at: https://www.jamroom.net/the-jamroom-network/documentation/development/788/jrcore-media-player#sthash.0THyaCkE.dpuf
updated by @elric: 12/10/14 04:40:13PM
elric
@elric
08/13/14 11:11:27AM
81 posts

Subpages in Custom Aparna Modules?


Design and Skin Customization

Macallan! I'm a big fan... ;-) 18 if I can find it!!!
elric
@elric
08/12/14 11:07:34PM
81 posts

Subpages in Custom Aparna Modules?


Design and Skin Customization

BOTH! This works brilliantly, Michael. You're the bee's knees. Marked this as solved!

Cheers,
~E
elric
@elric
08/12/14 10:01:56PM
81 posts

Subpages in Custom Aparna Modules?


Design and Skin Customization

As would I! Highland or Islay?
elric
@elric
08/12/14 09:08:44AM
81 posts

Subpages in Custom Aparna Modules?


Design and Skin Customization

You, sir, are a ninja. THANK YOU. Wish you were local, I would buy the first round of Single Malt.

Cheers,
~E
elric
@elric
08/11/14 08:14:19PM
81 posts

Subpages in Custom Aparna Modules?


Design and Skin Customization

In other words, how do I navigate to custom sub template of a module?
elric
@elric
08/11/14 08:12:59PM
81 posts

Subpages in Custom Aparna Modules?


Design and Skin Customization

michael:


function view_jrFeed_default($_post, $_user, $_conf)
{ // do a search for whatever your wanting, perhaps the news category //send those items out to a custom template return jrCore_parse_template('rss.tpl', $_rt, '(your module name here)'); }

So then you can do all your processing in php for whatever you want out to the template.

Yup, I have that module, and the URL for my custom module is currently mysite.com/local

I have a custom list template setup for that:


    <div class="block_content">
<h2 class="news_category_title">Local News</h2>
        {jrCore_list module="dnNews" order_by="_item_id numerical_desc" pagebreak="10" page=$_post.p pager=true  search1="news_category = Local News"}
    </div>

    <div class="block_content">
<h2 class="news_category_title">U.S. News</h2>
        {jrCore_list module="dnNews" order_by="_item_id numerical_desc" pagebreak="10" page=$_post.p pager=true  search1="news_category = U.S. News"}
    </div>

    <div class="block_content">
<h2 class="news_category_title">World News</h2>
        {jrCore_list module="dnNews" order_by="_item_id numerical_desc" pagebreak="10" page=$_post.p pager=true  search1="news_category = World News"}
    </div>


This shows 10 most recent stories in each category. I then have a list template for each category: Local News, U.S. News, World News that only shows relevant content. What I'm trying to do is figure out how to set the url for those sub categories - something along the lines of:

mysite.com/news/index.php?news_category=Local News
mysite.com/news/index.php?news_category=U.S. News
mysite.com/news/index.php?news_category=World News

Perhaps I'm looking at the problem from the wrong solution?
elric
@elric
08/11/14 05:04:34PM
81 posts

Subpages in Custom Aparna Modules?


Design and Skin Customization

The new version of Aparna is fantastic! I've been looking through for any documentation on how to handle 'sub-pages' using Aparna, and can't find anything...

Example:

1. Created a new module called "News", and the url is mysite.com/news/
2. Created a news_category field in the form designer, and use search1="news_category = Local News" = World News, etc. to group displays on the Jamroom\modules\dnNews\templates\index.tpl

Now, I would like to create sub pages of News, but not sure how to proceed here? In other words, I would like users to be able to click a link for "Local News" and see only Local News stories, with perhaps a URL like mysite.com/news/local using a template like

Local News
{jrCore_list module="dnNews" order_by="_item_id numerical_desc" pagebreak="10" page=$_post.p pager=true search1="news_category = Local News"}


How do we do this with an Aparna created module?

Cheers!
~E
updated by @elric: 09/21/14 10:23:39AM
  7