Modify Orchard CMS search results - orchardcms

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'

Related

Taxonomy Has Terms bug?

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

How do I set up page tags for Google search results?

As title suggests, how do I enter page titles into the CMS of V9 kentico so that they are reflected in the Google search for my busines?
By default Kentico uses the site name and the page's name as the page title. If you want to set these separate then you can go to the page you want to modify, General>Meta data and edit it there.

How to link to an individual web content item in Liferay?

Let's say that I am using an AUI Carousel to display a news item slideshow.
This is a typical slideshow - a series of images with overlay text and each image/overlay text links to a web content article for the site's news.
It seems that with Liferay 6.2, it's only possible to link to a page containing the article rather than the article itself.
How does one link to an individual article?
The solution here is to use a Display Page; starting with Liferay 6.1, there is the concept of Canonical URLs (see here).
In order to use this, you need two things:
an asset publisher page (in my example here, the page is called News)
when creating the web content item, set the Display Page to the above (News)
Now the content item can be referred to via: http(s)://<site-url>/-/<web-content-item-url-title>
So, if I have a web content item with the name Come Join Us For Lunch, and a site url of http://my-site.com/, the canonical URL for this web content item will be http://my-site.com/-/come-join-us-for-lunch
However, you should always get the actual url-title from
JournalArticle.getUrlTitle()

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

Orchard breadcrumbs not working with Taxonomies

I'm using Orchard 1.6 and I'm trying to get my breadcrumb widget working for all pages and taxonomies.
For the pages, when a page is selected, the breadcrumbs work as expected:
Home > My Page > My Sub Page
However, as part of this menu (the main menu, as set up by the 'Default' Orchard recipe), I have added some Taxonomy terms (by adding the 'Menu' part to my taxonomy term content type).
When I view the term page (front end), the breadcrumbs don't render as breadcrumbs, but the full menu instead.
What I would like to know is: How do I make the breadcrumbs recognise the taxonomies and render correctly?
Is there a part I need to add to a specific content type?
For now I need to use the dirty, dirty work-around of using a HTML widget; naturally I would prefer an actual solution.
Thanks in advance!

Resources