[Solved] CGUserDirectory - Sort order of Detail template

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
JornB
Forum Members
Forum Members
Posts: 18
Joined: Wed Apr 15, 2009 10:53 am

[Solved] CGUserDirectory - Sort order of Detail template

Post 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.
Last edited by JornB on Tue Apr 21, 2009 8:58 pm, edited 1 time in total.
tyman00
Power Poster
Power Poster
Posts: 906
Joined: Tue Oct 24, 2006 5:59 pm

Re: CGUserDirectory - Sort order of Detail template

Post 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.
If all else fails, use a bigger hammer.
M@rtijn wrote: This is a community. This means that we work together and have the same goal (a beautiful CMS), not that we try to put people down and make their (voluntary) job as difficult as can be.
JornB
Forum Members
Forum Members
Posts: 18
Joined: Wed Apr 15, 2009 10:53 am

Re: CGUserDirectory - Sort order of Detail template

Post 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.
bob_basli
Forum Members
Forum Members
Posts: 189
Joined: Mon Sep 24, 2007 6:18 pm

Re: CGUserDirectory - Sort order of Detail template

Post 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!!
JornB
Forum Members
Forum Members
Posts: 18
Joined: Wed Apr 15, 2009 10:53 am

Re: [Solved] CGUserDirectory - Sort order of Detail template

Post 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} 
Post Reply

Return to “Modules/Add-Ons”