solved profile_stats function example

SteveX
SteveX
@ultrajam
7 years ago
2,584 posts
Is there an example of a profile_stats function anywhere?

And is there any way to override a profile stat? I'd like to show the number of galleries in jrGallery rather than the number of images.

Thanks!


--
¯\_(ツ)_/¯ 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: 03/31/18 03:20:00AM
michael
@michael
7 years ago
7,715 posts
If its for a profile's side bar or similar, you could use the jrCore_list call with the return_count parameter something like:
{jrCore_list module="jrGallery" profile_id=2 group_by="gallery_title_url" return_count=true}

Will that work for you?
SteveX
SteveX
@ultrajam
7 years ago
2,584 posts
Hi Michael. Yes that will work - simpler than I was thinking, and simplest is definitely best!

Thanks :)


--
¯\_(ツ)_/¯ 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 :)

Tags