i've added bing maps to my orchard project.
I'm then displaying it from my 'AsideSecond' widget. My Q being I have added an about page and a blog page. Why does the bing maps appear on every page? main menu, about, and blog page.
How can I set it to only appear on one page...about page for example
You need to add a widget layer that is shown only on your about page, using the url(...) layer rule syntax. You can then assign your widget to the AsideSecond zone on that layer.
See Adding a Layer.
Related
I am buiding a landing page in Sharepoint 2019. I am using the 'News' component and I have succesfully created news that are shown in that component.
Now I want to create another webpart in the landing page displaying 'Announcements' with the same list design as the 'News'. But when I insert the 'News' component again it shows the same news as in the first component and I have no possibilities of selecting a different source for that component.
I can't use the classic 'Announcements' app as it can be referenced from the modern list.
How can I go about this?
When you go to the WebPart Properties, you can change the source, Add PageLinks and if necessary, you can filter the content.
Working on a custom theme for Orchard 1.6. I've got my top navigation & recent blogs rendering exactly how I want it. However I want to create a footer that shows the navigation & recent blog posts in a different way. I'm using four zones across the footer and want to add widgets to them (navigation, recent blog posts), however I want the rendering to be different.
I can't figure out how to create a view that is used for these widgets JUST within these zones. The template override options shown in the Shape Tracing tool aren't specific to the zone I'm in so they'd apply to the ones in the body of the site (which I've already implemented).
Is what I'm trying to do even possible w/o some custom code (not just a view but some type of a new component) which I'm trying to avoid?
If you enable Widget Alternates, you'll get additional alternates that you can use, in particular depending on the zone name.
I am currently working on an Orchard module. This module contains an MVC application including the views. I would like to make the module as configurable as possible. One of the items that I would like the customer to configure is the way the MVC views from the module look. Part of it will be determined by the theme. But not everything. Consider the following scenario:
The module contains a view for placing an order. The view displays a form in ´normal view way´. That is field labels and input labels. But at the head of the form each customer must be able to define his own set of instructions to display. Or maybe the customer wants to put there a message for pointing the customer to some other actions.
In the most ideal way I would have a content page where the customer can put all kind of content and one specific block that is the result of the view of the module. Kind like a web part. I can´t find out if it is possible and how that is achieved.
Edit for clarification
Module creates a page like this:
TITLE
FORM
So both title and form are outputted by the module controller.
I have managed to create a layer with the condition that the url matches the page with my form.
I have added a HTML widget to this layer in the content zone with position 1 (tried 0 to).
However the pages looks like this:
TITLE
FORM
WIDGET
instead of
WIDGET
TITLE
FORM
Returning a ShapeResult from your controller action will ensure that your view is themed and benefits from widgets, which are your "kind like a web part" thingies in Orchard.
Hi I was wondering which Layout I could use to get the search box in the top right hand corner. I used (Welcome Page) Blank Web Part Page) as the page layout but its missing the search box in the top right corner.
Also another question: How can I add my own layouts to the list in the Create Page, page. Thank you.
The search box is defined in your master page. Ususally default.master, it would not matter which layout you choose the elements defined in the master page will still be in the same place. In your case it would appear that the search box does not exist on your master and would need to be added in again.
You would need to amend the master page for your site and add the appropriate SP control for search into the appropriate place on your page. This will ensure that a SP search box is rendered in that location for every page.
To define your own page layout have a look at Link 1 and Link 2.
As for the search box, it is defined as part of the Site Template. Try creating a Site using the Collaboration Site template.
I have a page layout for my MOSS '07 site that I want put a MultipleLookupField in. The field will point to a multiple lookup column in my custom content type that points back to the pages library so I can have a "Related Articles" field.
I've gotten the field to show up correctly--it's even editable when the page is in edit mode! But when you click on the link that shows up there, it display the page's properties view instead of the page itself.
There's lots of properties on the control, but there's little documentation at MSFT as to what they do.
Does anyone know how to change the link's URL to the actual page instead of the properties view?
Here's the tag I'm using:
<SharePointWebControls:MultipleLookupField
ID="MultipleLookupField1"
FieldName="RelatedIssues"
runat="server"></SharePointWebControls:MultipleLookupField>
The link takes me to here: /Pages/Forms/DispForm.aspx?ID=6&RootFolder=*
I want it to take me here: /Pages/faq1.aspx
Unfortunately the lookup control is designed to be compatible with generic lists and does not understand that the document libraries have a file with a specific url associated.
You will probably have to find a custom lookup control on the web or roll your own.