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.
[Solved] CGUserDirectory - Sort order of Detail template
[Solved] CGUserDirectory - Sort order of Detail template
Last edited by JornB on Tue Apr 21, 2009 8:58 pm, edited 1 time in total.
Re: CGUserDirectory - Sort order of Detail template
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: What I'm having problem with is the sort order of the different properties.
This should be helpful: http://calguy1000.com/Blogs/12/60/basic ... kills.htmlJornB 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?
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.
Re: CGUserDirectory - Sort order of Detail template
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
@JornBJornB 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.
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
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:
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}