Page 1 of 1
[Solved] CGUserDirectory - Sort order of Detail template
Posted: Mon Apr 20, 2009 8:14 pm
by JornB
I'm using FEU and CGUserDirectory.
What I'm having problem with is the sort order of the different properties. I would like to have it the same as the order that's done in the different groups created in the FEU, is that doable? How would I go around adding the different properties in an order I would like to have (static) instead of using the foreach loop?
Hopes anyone can help me.
Awesome work on the mods! Keep up the good work.
Re: CGUserDirectory - Sort order of Detail template
Posted: Mon Apr 20, 2009 9:25 pm
by tyman00
JornB wrote:
What I'm having problem with is the sort order of the different properties.
I do not think this is currently an option. I think you are limited to what is listed in the Help for the module.
JornB wrote:
How would I go around adding the different properties in an order I would like to have (static) instead of using the foreach loop?
This should be helpful:
http://calguy1000.com/Blogs/12/60/basic ... kills.html
Also, In the future just specifying the modules you are using
is not enough information. Please specify which versions of the modules and which version of CMSMS you are using.
Re: CGUserDirectory - Sort order of Detail template
Posted: Tue Apr 21, 2009 8:58 pm
by JornB
Thanks for the help, read through it and found some help... made it static with each property written down in the order I wanted it in.
Re: CGUserDirectory - Sort order of Detail template
Posted: Fri Jun 25, 2010 7:51 am
by bob_basli
JornB wrote:
Thanks for the help, read through it and found some help... made it static with each property written down in the order I wanted it in.
@JornB
How did you build this template. I'm a newbee when it comes to smarty so a little help would be appeciated.
Thanks!!
Re: [Solved] CGUserDirectory - Sort order of Detail template
Posted: Fri Aug 13, 2010 5:31 pm
by JornB
I add the different properties in "Frontend Users" that I want to show about the users.
Then in the "CGUserDirectory detail template" I just call the properties:
{$oneuser.properties.#name#}
example:
Code: Select all
{if $oneuser.properties.Position== ""}
{else}
<div class="prop_title">Position:</div>
<div class="prop_text">{$oneuser.properties.Position}</div>
{/if}