solved Changing or adding templates sitebuilder

alt=
@tettlingen
8 years ago
93 posts
Hi!

If I wanted to change the jrEmbedd itemlist or copy it to a custom tpl file and change that -

What file is this and what is the best praxis here, (so I don´t kill the system if I do something wrong.? ;)

Basicly what I want to do is this:

* Shrink the row a a bit in height,
* add a "buy now" and "add to play list" buttons instead of EMBEDD (Maybye the entire row with edit buttons aswell)
* Add one or two custom form field/s and reduce the size of the play button.

I´m using the celebrity skin.

If its too complicated I´m open for suggestions regarding custom work, if its not too pricey.

Kindest regards

updated by @tettlingen: 09/19/16 12:37:45PM
brian
@brian
8 years ago
10,148 posts
The easiest way is to go into ACP -> Modules -> Editor Embedded Media -> Templates and make your changes there. Don't forget to "activate" your changes when done by checking the "active" box and saving.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
alt=
@tettlingen
8 years ago
93 posts
Hi! OK!

When I access the module, I find these templates-

tab_pager.tpl
tab_search.tpl
tabs.tpl

How can I access the row structure of this template? See pic

Regards
Skärmklipp.JPG.jpg
Skärmklipp.JPG.jpg  •  21KB

editor.jpg
editor.jpg  •  29KB

brian
@brian
8 years ago
10,148 posts
It looks like you are trying to embed a VIDEO - so how it works in JR is that each module provides it;s own "embed" template - so in this case you want to modify the ACP -> Modules -> Profiles -> Video -> Templates -> item_embed.tpl

Let me know if that helps.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
alt=
@tettlingen
8 years ago
93 posts
Hi! No :)

I want the audio module to play a song when you hit the play button, (To the left)

And I like to have the LAYOUT of this template throu site builder (Custom template) and make it easy for my customers to add the song to their playlists or to the cart. without have to LEAVING the LIST or visit the audio singel item page or the artists profile page.

I was thinking that I like this layout (JrEmbedd itemlist) and It would be perfekt if I could just add the "add to cart" and "add to playlist" buttons to the right INSTEAD of the "embed button".

So I´m not trying to embedd anything, no videos, I just like the look of this template and I like to use that look when I make lists with audio with site builder. ) As a starting point for an NEW template.

Kinda like this pic. see included

Make sence? :)
Thanks
Regards
editor2.jpg
editor2.jpg  •  40KB

alt=
@tettlingen
8 years ago
93 posts
If I could make a suggestion for you.

I would really LOVE if you could make this as a default template in site builder, a smaller, more compact template for MANY songs on the same pager instead of just a few songs with BIG pictures and a kinda of a bulky apperance before the pager. And the possibility to make it easier for the potential buyer to just buy songs on the fly, instead of have to visit the profile page as an unessesairy step on the way. Make it more commercial... in a way.

And include the add to cart button all the way, on all pages, including all song related pages on the profile page aswell.

I guess that this is kind of easy for you guys´to make, and would make a lot of difference for us that need jamroom to be more of a ecommerce shop for digital downloads instead of a community site.

Thanks.
michael
@michael
8 years ago
7,714 posts
You're probably using the "Item List" widget to pick and choose what you want. You'll see at the bottom of that widget is displayed code that looks like this:
{jrCore_list module="jrAudio"}

That code is template code.

There is also a template code widget where you can paste that exact code in to get back the same results. Only its even more flexible, because you can use any of the {jrCore_list} functions:

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

if you put this in your template code widget:
{jrCore_list module="jrAudio" template="some-template.tpl"}
Then instead of using the default jrAudio item_list template found at
/modules/jrAudio/templates/item_list.tpl

It will do whatever you tell it to do by altering the code at
/skins/(YOUR SKIN)/some-template.tpl

So you can make it look however you like.
alt=
@tettlingen
8 years ago
93 posts
Hi. Great, still trying to get my head around jamroom. Ill give it a go with the item list template code approach.

Thanks Michael and Brian
alt=
@tettlingen
8 years ago
93 posts
One followup:

How does one write in code when a CHECKBOX is checked - to echo this in a search result?

EX: design field: audio_free
CHECKBOX YES (Checked)

= All free songs listed in a template that is checked with checkboxes

Kindest regards
michael
@michael
8 years ago
7,714 posts
a checkbox will store an "off" or "on" value. So if you stored it on 'audio_free' then
{if $audio_free == "on"}
The audio checkbox is checked.
{/if}

If you don't know what variables are available to you, then {debug}

Docs: "{debug}"
https://www.jamroom.net/the-jamroom-network/documentation/development/1477/debug
alt=
@tettlingen
8 years ago
93 posts
Thanks! :)

Tags