solved Vertical Display in jrList

SoftDesigns
SoftDesigns
@softdesigns
7 years ago
242 posts
<div class="blog-index-text" style="margin: 10px 0 0 0;padding-bottom: 10px;{if !jrCore_is_mobile_device()}height:240px;{/if}overflow:hidden;">
   {jrCore_list 
   	module="jrProfile" 
    order_by="_created asc" 
    limit="5" 
    profile_id="2,3,5,7"
    template=$profile_tpl}
</div>

The code above shows a horizontal list.
--
Maybe need to use a different template? : template=$profile_tpl
Where are these templates located for jrList?
--
How can force the jrList code above to show a Vertical Display list?
updated by @softdesigns: 10/02/17 02:05:57AM
SteveX
SteveX
@ultrajam
7 years ago
2,584 posts
$profile_tpl will be captured (or the variable defined) in the same template.


--
¯\_(ツ)_/¯ 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 :)
michael
@michael
7 years ago
7,714 posts
That $profile_tpl is an example of this method:

Docs: "HowTo: Use a CAPTURE to avoid using another file for a jrCore_list call"
https://www.jamroom.net/the-jamroom-network/documentation/module-developer-guide/1637/howto-use-capture-to-avoid-using-another-file-for-jrcore-list-calls

Check that out. normally template="some-file-in-your-skin.tpl" but you can use capture to skip the need to have a file in the filesystem. Good for when you just need a quick structure which you know will never be re-used.
SoftDesigns
SoftDesigns
@softdesigns
7 years ago
242 posts
@michael : Ahh - Got it... Now it all makes sense. We only copied the bottom part of the code, but the CAPTURE template code was above in the top part. We were looking for a physical .tpl file, but there is none.
--
Now we can see CAPTURE is quite powerful, and does not require a physical template file.
--
Great Support - Solved...
updated by @softdesigns: 07/02/17 06:10:04AM

Tags