Sorting a list in Orchard CMS - orchardcms

In Orchard CMS, I made custom content type Event which contains an "Even Date" part (this Event Date is actually a widget i installed from the gallery), and after that I made a list of Events.
How can I sort this list by Event Date as I don't have this field in the "order by" select box in the list properties?

Related

Displaying items with certain custom field value in Netsuite

Is there a way to display or filter (by editing a Template) all the products that match a certain Custom Field parameter (in example "custitem_outlet)"?
I have already added on the Netsuite backend these custom fields as checkboxes.
I would like to show the items on different Lists, in example one list will show the items with "custitem_outlet" checked and the other with "custitem_arrivals" checked.
Thanks in advance!

Listing ordering Orchard CMS

I have made a new content type. Consequently i made a list of it, and created a new widget so to display that list.
The problem is that even by changing the order in the widget properties, the list is ordered by the oldest date descending.
I want to have the newer entries up top, but can't work around it.
Any suggestions?
To put the newest of your new content type at the top:
Create a Query.
In your new Query, add a new Filter selecting for "Content -> Content types". Find your new content type in the dropdown.
Also add a new Sort Criterion that looks at "Common Part Record -> Publication date" and then choose either ascending or descending.
On the Widget page, add a new Projection Widget to the section you want. Set up your widget and choose the Query you just made.
Hope that helps!

How can I display results filtered by creator?

I am using SharePoint 2010 and am adding a data view web part to the DispForm page for a custom list. I want to be able to display a history of list items created by the user (NOT currently logged in user). Example:
"User A" adds a new help desk ticket
"User B" views the list item and sees a DVWP that is filtered to display only the results from the list item's creator
Can I do this dynamically using the "created by" field? How would I filter this so that it displays all items created in this list by "created by"? This is for a help desk system I am developing. Essentially I just want to be able to filter based on the list item's creator.
There will be multiple users who will be adding the ticket.
In the dataview properties you have options to display a toolbar over the dataview web part. There are options to Filter,Sort and Group.
Alternatively you can Sort and Group the dataview in SPD based on 'Created By' field. I think this should be the way to do it. The User B should be able to view all tickets grouped by 'Created By' field.
Thanks!

Content Query WebPart - Grouping by custom column?

We have a LIST of web pages that we use as News items on our Sharepoint 2007 site.
On our main page, we have a Content Query WebPart that queries this list, and nicely displays the name, and a few lines of the content. This is taken from our Pages Library that was created as part of our Publishing Template.
We would like to "Group" items by categoriezing them (Top Stories, Location-Specific Events, etc) and show them using the Content Query WebPart.
We have created a custom column called "News Category" and we would like to group the items inside the Content Query WebPart by this. Unfortunately the Custom Column doesn't show up when sorting through the "Group By" fields..
Is this at all possible, or am I wasting my time? We are not looking to add 3rd party components to our site at this time...
I believe you need to create a Site Column instead of a custom column within the list. You would then need to add that site column to your list. Here's how:
Select Site Actions->Site Settings.
In the Galleries column, select "Site Columns"
Click "Create"
Enter in the relevant information.
In your list, goto Settings -> List Settings.
Select "Add from existing site columns"
Add your column to the list.
In your list, add data to the column as needed.
Back on the page showing your CQWP, modify the shared part.
Select Presentation. Under Group items by, select your site column.
You need to change the CommonViewFields property of your CQWP

Unwanted SharePoint context menu

I created a custom lookup field type which works fine. However, there is a context menu for every item in columns of this type.
I didn't do anything on purpose to add this context menu.
How to get rid of it?
If you go to View -> Modify this View, you can select from the fields you'd like to have visible in the default view. There should be several options for some fields, and the one you likely have by default will be something like medium city (linked to document with edit menu). Choose medium city on its own and you should be good to go!
I solved the problem.
The source list "Cities" had three columns - "Name of the city", "Name of the city (linked to item)" and "Name of the city (linked to item with edit menu)".
When I was creating the "medium city" column in the "Customers" list, I chose "Name of the city" from the drop-down list. I was positive it was the 1st column but it turned out it was the 3rd one.
I modified the code filling the drop-down list with data so it contains no linked to item columns and it's working fine now.

Resources