I am very new in Orchard, and little bit confused on how to customise zones.
When I go to Widgets menu in Orchard Admin - using the 'TheThemeMachine' theme I can see list of Zones available there.
Now, when I create a new theme, following this tutorial: "http://docs.orchardproject.net/Documentation/Writing-a-new-theme" - then go to Widgets, I got following warning:
"Widgets in these zones will not appear anywhere when your currently active theme is applied. They might still appear in selectively applied (e.g. mobile) themes."
I understand that warning, my questions are:
1. How do I remove zones that I don't use? Or do I have to remove the 'TheThemeMachine' theme to also remove the zones?
2. After I created the new theme 'MyFirstTheme', I cannot see any zones listed under Widgets. Do we need to do something else to enable this?
The problem is not to remove zones, the problem is that these zones don't exist, but you still have widgets in them. All you have to do is move those widgets to zones that actually exist, or re-create these zones in your theme. Seems like you forgot to list your zones in the theme.txt manifest file.
Related
I had a custom theme installed in /custom/plugins. That theme was removed recently but it is still listed when changing themes for saleschannels.
The commands plugin:list, plugin:refresh or theme:change do not show the removed theme.
I have checked the theme table and I was able to find it there with the active flag on 1.
Is there any way to remove it safely? There is no sales channel with that theme assigned. Should I just remove it using SQL? Is it a bug, that the removed theme is still in the theme table?
Yes, just remove it in the database. The entity doesn't have any other vital associations other than the sales channel.
As for whether this is a bug: How did you delete it initially? If it was removed via the provided functions in the administration for example, it should've left no remnants.
I need to add a breadcrumb nav to my site, the problem is that the designer laid out the site so that it is among the fields of the content items. I added a Breadcrumb Zone to my theme and called it from the Layout.cshtml file. First I tried creating new zones in Layout.cshtml and moving the fields out of the local content zone into these new zones (using placement.info), but due to the complexity of the site that got too complicated.
Is there a way to place a widget into a local zone? I've been around in circles on this for a few days.
I found the solution and then realized I hadn't posted my question yet. It turns out that the widget zones can be used in local zones! In the local zone, you just put #Display(Layout.ZoneName) where ZoneName is the name of your zone. Simple as that. Source.
I have worked with ModX for a while, but can't seem to sort this issue. When I login as the admin in to the manager, the resources list is incomplete with not all documents displaying. I can however locate the files via the 'search' area just above.
I have done the normal, empty cache, flush permissions etc. without any joy. Interesting enough its always the same files, and they are showing in the front end.
Any help welcome on this one!
Update
When I click the blog (which is an articles resource) only the template variables panel is showing, nothing else. Page looks a little broken...
Update 2
If i remove the blog, (articles) the pages show. And... If I move the articles container higher, all resources show.
Are you using multiple contexts? I've noticed this behaviour a few times when drag and dropping folders with nested resources from one context to folder in another context.
Moving them back to the original context made them re-appear.
If you're familiar with MySQL GUIs like phpMyAdmin you could check and search the *modx_site_content* table and maybe correct the value in the resources' parent field manually. As Mark said it might well be a parent gone MIA.
Typically, parents rarely go MIA and by that I mean once every couple years....
Did you set up ACLs or Resource Groups?
Is your manager user a member of those groups?
Currently on our site we have 4 weblink resources that are displaying in proper order (by the date on the title) on the page, but after adding one more weblink resource, it is added to the page but appears one below the first link, when it should be at the top.
I am not sure where to look to manually re-order these, and there doesn't seem to be any option to do this from the ModX interface or Resource Edit menu (setting the "index" does nothing).
Is there a way to accomplish this? Is it possible that this is custom and I need to find where the ordering is happening? I have looked in the Snippets folder for this page and wasn't able to find anything that looked like it was doing ordering.
Possibly related noob question: If we just want to manually re-order the links via html, how do we modify the source code directly, via ModX?
If you are using a custom snippet to extract the links then modx will not be doing any ordering for you at all, that would need to be written into the snippet itself.
if you are using getResources, [ http://rtfm.modx.com/display/ADDON/getResources ] look up the sortby option in the docs. I'm not 100% sure what the default is.
if you are using WayFinder [ http://rtfm.modx.com/display/ADDON/Wayfinder ] the default sort order will be the order they appear in the resource tree, which I believe is menuindex. I believe WayFinder also has a sorting option. [see the docs]
if you are not seeing changes when moving things around in the resource tree, be sure to clear the cache as changes in the resource tree do not automatically refresh the cache.
to manually add the links into the page/resource, you need to find the chunk/snippet/template that is displaying the links and modify that accordingly.
To manually re-order resources in "Resources Tree" you just need "drag-and-drop" by mouse to change the resources places.
I was having trouble figuring out how to get widgets specific to the error/notfound.cshtml pages I have put into my custom theme.
There is no "url" per se, so it's not like I could create a layer rule for it. Is there a specific way to do it.
Also, while I beleieve I could create a url rule such as url("/LogOn"), my url's for log on are appended with a "?ReturnUrl=%2F". Will that matter, or should I just do url("/LogOn*")?
All the widgets in my "Default" layer appear fine on these pages. But for some parts of pages I don't use "Defualt" because there are different versions of each of those widgets. I want to display some content in these zones that are empty (because they are not "Default" widgets).
Thanks for any help.
Build your own rule, based on the code for the url rule.