Forum Activity for @dobmat

alt=
@dobmat
07/26/14 02:58:03AM
93 posts

Sorting the $_items array according some field


Jamroom Developers

I didn't use the jrAparna module to write my module. I deleted my module from my Jamroom install, changed the datastore field names and tested again. I gave order by as venue_title in ascending order, but still its sorting according to item ID. Please see the attachment below.

Thanks.
- 103KB

updated by @dobmat: 07/26/14 03:07:24AM
alt=
@dobmat
07/25/14 04:42:32PM
93 posts

Sorting the $_items array according some field


Jamroom Developers

I'm getting 'You do not have the proper privileges to perform that action!' if I click on the link you gave. Seems its not working for any field in my module's item.

Thanks.
alt=
@dobmat
07/25/14 01:14:11PM
93 posts

Sorting the $_items array according some field


Jamroom Developers

The field name is correct and it is there for every item of my venue module. I removed ASC and tried, still no difference. Does it only work for numerical fields and not for text strings? Please let me know how I can put a support ticket.

Thanks.
alt=
@dobmat
07/25/14 12:28:22PM
93 posts

Sorting the $_items array according some field


Jamroom Developers

I tried with single space. Its not working as expected. The items are still sorted in order of their time of creation and not in alphabetical order of venue name.

Thanks.
updated by @dobmat: 07/25/14 12:28:56PM
alt=
@dobmat
07/25/14 08:49:45AM
93 posts

Sorting the $_items array according some field


Jamroom Developers

I tried it in the 'item_index' template. I does not work. This is what I put in 'item_index' template.

<div class="block_content">
        {jrCore_list module="gsVenue" profile_id=$_profile_id 
	 order_by="venues_title  ASC" pagebreak="6" page=$_post.p pager=true}
</div>

Thanks.
updated by @dobmat: 07/25/14 08:51:44AM
alt=
@dobmat
07/25/14 06:54:33AM
93 posts

Sorting the $_items array according some field


Jamroom Developers

I'm not able to determine where I should put the above code. I tried several places but the template is showing blank page. Please help me here. Below is my item_list template.

{if isset($_items)}
 {foreach from=$_items item="item"}
  {if isset($item.venues_image_name)}
   <div class="item">
    <div class="container">
     <div class="row">
      <div class="col2">
       <div class="block_image">
        <a href="{jrProfile_item_url module="gsVenue"
        profile_url=$item.profile_url item_id=$item._item_id 
        title=$item.venues_title}">{jrCore_module_function 
        function="jrImage_display" module="gsVenue"
        type="venues_image" class="iloutline" item_id=$item._item_id 
        size="xsmall" crop="auto" alt=$item.user_name}</a>
       </div>
      </div>
     <div class="col10 last">
      <div class="p5">
       <h3><a href="{jrProfile_item_url module="gsVenue" 
       profile_url=$item.profile_url 
       item_id=$item._item_id title=$item.venues_title}">
       {$item.venues_title}</a></h3><br>
       <span class="normal">{$item.venues_text|
        jrCore_format_string:$item.profile_quota_id|
	strip_tags|truncate:180}</span>
      </div>
     </div>
    </div>
   </div>
  </div>
 {/if}
 {/foreach}
{/if}

Thanks.
updated by @dobmat: 07/25/14 07:10:20AM
alt=
@dobmat
07/25/14 04:25:50AM
93 posts

Sorting the $_items array according some field


Jamroom Developers

Sorry, I meant item_list instead of item_detail template. I want the items of a modules to be displayed in alphabetical order rather than in the order of creation time as it is happening now for all modules.

Thanks.
alt=
@dobmat
07/25/14 03:05:45AM
93 posts

Sorting the $_items array according some field


Jamroom Developers

Hi

Is there a way to sort the $_items array in item_display.tpl. Is it a good idea to sort it inside the template code?

Thanks.
updated by @dobmat: 08/25/14 09:29:12PM
alt=
@dobmat
07/24/14 03:28:44PM
93 posts

Adding image to help text in a form field


Jamroom Developers

Hi

Is it possible to add image in help text for a field such as user login fields?
I tried adding img tag in index.php, but t doesn't seem to work.

Thanks.
updated by @dobmat: 08/24/14 04:18:55AM
alt=
@dobmat
07/23/14 09:01:37AM
93 posts

Customize Register Page


Installation and Configuration

The custom fields are for the user and not for the module items. I can see the user_name, user_email and other default fields in the $_user array. But the custom fields that I created for user registration such as user_fullname, user_company are not in the $_user array. Hence I cannot display those information in module item detail page.

Thanks.
1