Taxonomy Has Terms bug? - orchardcms

I use Orchard 1.10.1. I created a Content-Type called product(include 2 taxonomy).
The taxonomy are Category(book,toy,clothing) and color(red,blue,black).
When Filters taxonomy term in the dashboard,
I choose Has Terms and Category with is one of(filters Category,not color).
but, The filters display all(Category,color) Content Items.
why! please help,Thanks.
enter image description here
enter image description here

Related

BreadCrumb doesn't show the correct url of taxonomies

In orchard CMS I have a taxonomies menu.I have added a alias breadcrumb menu.When I chose a taxonomy menu,the alias is correct.(Home->product->adidas->shoes)
but when I click one of shoes post,the url is changed to(Home->shoes1).
How can I fixed it to (Home->product->adidas->shoes->shoes1)?
I think u need to edit the content type of shoe and modify the Autoroute content part setting and give it a new default pattern url that matches your sample (Home->product->adidas->shoes)

How to change orchard blog home page list view/summary view

I have Orchard 1.7 setup with blog recipe.
The home screen display a list of blog posts.
I want to override the way the content is displayed in summary view. I could do this for each parts. But my styling is such that I need to wrap title, body, and meta tags with a special div when ever the display type is summary.
The problem is:
After shape tracing I understood that the template used in the home page (summary) is same as the detailed one.
Content.cshtml
For detail view I want to use the default core-> Views/Content.cshtml but for summary I need to supply my own. How can I do this?
OR
How to write a driver/widget to the home page. I know how I can do this for parts/fields/modules but I don't have an idea on how to create a driver for Blog home page.
Whenever I add a widget to the homepage the default blog post list still get displayed.
Just create a file called Content.Summary.cshtml in your theme. This will target all summary views, so if you have more than just blog posts on your site you will probably want to have Content-BlogPost.Summary.cshtml.
I wrote a small blog post on Item templates in Orchard if you are interested... http://arkleseizure.net/what-the-hell-is-an-item-template

Display image with Projection in Orchard 1.7

how to display image with with Projection in Orchard 1.7.
i have try but not able to get image its sow me ID with select html layout and custom display html.
can some on help me to get image with orchard projection/query
==Updated Post
I have one Query to select all company name (input text) , detail (input text) and company image, i want to show a list of all company name with image thumb on front site with projection and query ...list is coming but how to get image that is the problem.
thanks
If you're using ImagePart you should be able to access to MediaPart. MediaPart has FolderPath and FileName property. Just do something like this: Image.As.FolderPath to access to it in your shape.
If you are not using ImagePart, be more specific (e.g. showing some code)

Modify Orchard CMS search results

Is it possible to modify the search results of Orchard, not to display parts (image gallery and contact form).
I created a site, added an image gallery. When doing searches the image gallery is displayed within the search results. The same with contact forms, they are also displayed in the search results.
Added Place Parts_ContactForm="-"/ to my placement.info (in Orchard.Search folder). See http://docs.orchardproject.net/Documentation/Understanding-placement-info#OverridingPlacement
In /Admin/ContentTypes, Edit the content type (ex : contact form), then uncheck the checkbox 'Index this content type for the search'

Orchard CMS create theme view for my content type

I am using orchard cms with the bootstrap theme.
I have created a content type: House
it contains FIELDS
image (media picker field)
Property Type (taxonomy field)
Location (taxonomy field)
It has PARTS
common
body
publish later
Title
Autoroute
I want queries of houses and be able to choose the view/ layout for them
e.g. layout called HouseList (for sidebars mainly) which will render: title, image and link to house, possible location and type but with out the links as defaulted. And then a fullDetails layout and a image only layout (so i can show a jquery image reel a widget say in a quadzone) How can i do all this please, i have tried in view Content-House.cshtml etc but i cant access the details model.content to choose what to display.
Im sure when i get the idea of how to do 1 i should be able to sort the rest. I have read documentation etc but there are so many different ways, ie placement file, change the parts, contents, create classes to handle display etc. sureley i am missing something simple like create a view for each list i want eg. houue-list, house-details, house-imageONly and then manipulate content.
Please help i have been trying different things for getting this site running for weeks and not getting very far. Examples would be fantastic but i have searched google for hours and found similar but nothing with enough details for a meer beginer.
Thanks
The standard way of doing that is placement to move things around and alternate templates for the different parts and fields. You can specialize placement and alternates with the display type, which is Summary when rendering in a list such as what a projection returns, and Detail for the detail view. More info on placement can be found here: http://docs.orchardproject.net/Documentation/Understanding-placement-info and on alternates here: http://docs.orchardproject.net/Documentation/Alternates
Now if you prefer to completely take over the rendering and do without placement, here are a few posts that may help:
http://weblogs.asp.net/bleroy/archive/2011/07/31/so-you-don-t-want-to-use-placement-info.aspx
http://weblogs.asp.net/bleroy/archive/2011/03/27/taking-over-list-rendering-in-orchard.aspx

Resources