How to remove a widget in just one layer in Orchard CMS - orchardcms

I use Orchard CMS 1.10.1. In Dashboard > Widget I assigned two widget on default layer and I created a Blog layer with rule url("~/blog*"). What I want is to disable one of the widgets in this blog layer only. How Can I achieve this?

Related

Hybris SmartEdit or Spartacus approach?

I need clarity on the best use of SmartEdit and Spartacus Storefront.
e.g. If I have to create an Offer page (new page template) and add two different banner components, should I update SmartEdit CMS or Spartacus code?
You need to define the CMS in backend (SAP Commerce) and frontend (Spartacus). Then, you use SmartEdit as a WYSIWYG editor.
In SAP Commerce, you define the CMS (template, page, components).
In Spartacus, you get the page/CMS via OCC (web services) and display/render the CMS. If you created new CMS types and did not reuse existing CMS types (e.g. CMSParagraphComponent), then you need to customize Spartacus to render the new components properly.

Orchard 1.8.1 Containable/Container Layouts

I am using Orchard 1.8.1 and one of the sections of the site I'm building is for a standard photo gallery. Since all the modules involving photo galleries are ancient, I opted to stay native and try using custom content types to build it instead. The way I accomplished this is with a Photo Gallery content type that has the Container part associated, then a Photo Gallery Item content type that has the Containable part associated to it.
Using the Shape Tracing tool, I was able to build out the main gallery page that shows all the individual galleries, but when you go inside a single gallery is where I get lost. The attached screenshot probably shows it best, but in the Content zone, I can see there are two individual items contained under Model.ContentItem.ContainerPart.ItemCount, however I can't figure out how to access those individual items to build a template to show them. The point of the gallery page will be implementing the gallery from Galleria, so whenever I view the individual page for the Photo Gallery content type, I need to access all child items underneath it to build this.
Any ideas?
You can use a media library picker field configured for multiple media, and then edit each image to set its caption and title. Then, it's just a matter of customizing a template override in your theme to make it look exactly the way you want.

Orchard CMS: Taxonomy Link Menu Visibility & Placement Issue

I just installed the Forums module to my Orchard site. Also, I created Taxonomy Link menu that serves as categories for the Forum posts.
By adding the Taxonomy menu to the default layer, I could make it appear on all pages. My questions are:
How can I make the Taxonomy menu (i.e., Forums categories) appear only on the Forums page? It would have been simple if the Forums "page" was actually a page in Orchard context as I can just assign a custom layer to the page to control the visibility of the menu. But to my understanding, Forums is just a content type, which is not the same as a page -- in other words, I didn't create a Forums page; I simply created a new Forum with a permanent link to "~/Forums".
I initially assigned the aforementioned Taxonomy menu to the AsideFirst zone but it would not show up for some reason. But it shows up just fine if I assign it to the (for instance) ContentAside zone. Is this a known bug?
Any non-programming solutions and/or workarounds (if any) will be most helpful!
Use a url rule in a new "forums" layer, then put the widget in that layer.
2.Does the AsideFirst zone actually exist in your layer?

Do I need to create an Orchard 'Custom Theme' to Style a site with bespoke HTML/CSS?

I have HTML/CSS complete - conventional stuff.
I now need a CMS for this site. To use Orchard for this do I need to create a Custom Theme? (eg as in this article
http://www.deepcode.co.uk/2011/05/real-world-orchard-cms-part-2-creating.html
Or are custom themes for people that want to make something re-usable?
If there is an easier way to put Orchard CMS in a totally custom design - what is it?
Thx
You definitely need to create your own theme. You could start with an existing theme and modify it, but if you've already got a static HTML/CSS design then you're probably best off starting from scratch.
For more information on theming you can check out:
Writing a new theme - Orchard Documentation
Theming Orchard - A blog post I wrote a while ago
Studying the code of some existing themes can be a nice way to see how a theme is made up.
You should not directly modify the base template files inside Orchard modules. These are made to be overridden in your theme and modifying them directly will make updating Orchard very tricky.

Ordering of webparts inside webzone issue

I have a page layout with a webpart zone in it. As per the requirement there should be 4 custom webparts in that webzone.I have placed the webparts in the order as per the requirement. But when I try to create a new publishing page with this layout, I could see
that the order of webpart I have given in layout is not same as in the newly created page. So once again I have to order these webparts in edit mode .Changed the zone index property for the webparts in layout but it’s still not coming in order in the newly created page.
Ex:
Ordering of webparts in the page layout.
Ordering of webparts after the page is created using the layout.
Any help for fixing this ordering issue will be greatly appreciated.
So you have preloaded the web part zone in the page layout with the four web parts in the order you wish? If so and the order is not correct then you might have to create an event receiver that can trap when the page is being created and then add the web parts manually via code. that would at least ensure the order but seems overkill to me.
If the web parts are included in the web part zones within a page layout though, they should be added in that order when the page is created.

Resources