I want to add a path like (product->adidas->shoes->shoe1) in autoroute in blogpost in Orchard CMS.How can I create this path?
I use this path
{Content.Fields.BlogPost.Category.TermPathSlug}/{Content.Slug}
it shows only products/adidas and not show the full path.How can Generate the full path?
{Content.Fields.BlogPost.Category.TermPathSlug}/{Content.Slug}
I use this path and now it's correct.But it shows product->adidas->shoes->shoe1.
Don't show the title of article.How can I show the title?
product->adidas->shoes->shoe1->The shoe name
Related
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)
I use Orchard CMS. I have added a taxonomies menu and a Alias Breadcrumb Link that shows sitemap of site.When I choose a blog post from taxonomies menu(Pet->Rabbit) the breadcrumb shows only this url(home->Rabbit).How can I solve this problem?
As the description of "Alias Breadcrumb Link" says it uses the alias, to create the breadcrumb links. So if your blogpost is under the [sitename]/blogpostname url, the alias breadcrumb link will create the Home/blogpostname pattern.
In order to show the right pattern you want, you need to set up the url (Permalink) of your content item (blogpost) to "Pet/Rabbit", so this way the alias breadcrumb link will create the Home/Pet/Rabbit pattern for you.
In addition you need to put down as many "Alias Breadcrumb Link" to your breadcrumb menu as deeply you want to show the hierarchy.
Suppose that I have created a content part in Admin UI with name "aaa" and attached it to an existing content type with name "bbb".
Now I want to add a .cshtml file in View folder of TheThemeMachine for displaying and customizing view of this part, not the type.
I know I can add Content-bbb.cshtml for the ContentType but it isn't what I want because there may be several types use this part and I have to add single file for all of them.
What should I name the cshtml file?
I have been tested below names:
Parts.aaa, Parts-aaa, Parts_aaa, Parts.aaa-bbb, Parts.bbb-aaa,
Parts.aaa.bbb, Parts.bbb.aaa
and many more
I do appreciate for any help.
This is the link of this question in codeplex:
https://orchard.codeplex.com/discussions/581243
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
Looking to remove the Url field on a blog in orchard.comments modal. The problem is that the URL get linked to the username and i do not want my site linking to explicit sites or other content. I have tried display:none on the css but it would not take a genius just to display:block it.
Thanks in advance.
Edit the content type and disable Allow custom patterns in the autoroute section.
Of you just dont want to display the field, download Designer Tools and use Shape Tracing to generate the view and then customize it as you need.