Orchard CMS Manage Content page not showing details - orchardcms

In C# code, I created a custom content type (a RSVP type for replies). When items are created, they do indeed show up in the content item listing on the admin page.
But as you can see below , none of the details are listed like they are for other types like Page. How can I get details like Name (the name of the person RSVP'ing) to show up. I created tokens for use in workflows but that hasn't had any effect in these regards. Thanks!

Related

Creating A Custom Page in SAP Hybris

I am trying to create a unique page.
In general, i create a page template , from that template i create a page(in this case it is content page)
then i create content slot with a component within it and create a content slot name for its position at template or page,
afterwards i relate this slot with template or page.
But this time i am working on a different scenario,
What i am trying to do is making the management of this page much more easier.
The customer will create a bundle promotion page on backoffice but creating process contains too much steps on different locations.
I want to gather all these parameters to the page's administration panel.
For example content page's panel have some attributes but i am using my own component's attributes to fill the content slot.
Content Page Type's attributes : https://imgur.com/hGFMOnT .
I want to make a custom cms page type which will appear after pressing the plus sign,
for example Bundle Promotion Page (similar to content page).
creating page menu : https://imgur.com/4x5yfqO .
selecting page type : https://imgur.com/S3sm4Ay .
It must have a default template, content slot name, content slot with custom component in it.
All these parameters should be manageable from Bundle Promotion Page's administration panel.
Is this kind of concept possible with Hybris Backoffice?
Yes, it is possible.
please check this option in latest Hybris under WCMS menu in backoffice.There are default page types like email,document etc available as acceleratorservice extension. Custom page types can be created by including any custom attributes and content types.

What page should json-ld for LocalBusiness be put on? [duplicate]

I'd like to place a Schema.org Organization item on my website.
Should I place the JSON-LD only on the contact page or can I add it to every page of the website? What is the best solution?
With Schema.org, you would typically provide structured data about what is relevant to the current page.
Assuming that it’s the website of the organization, you could specify your Organization as value for these properties:
publisher
(for WebSite, for every WebPage)
about and mainEntity
(for WebSite, for the WebPage on the homepage, for the AboutPage)
author
(for Article, BlogPosting etc.)
(There are more properties, of course. Simply check the type pages for properties that have Organization, or the parent type Thing, as "Expected Type".)
Note that you don’t have to repeat the data, you could simply refer to it instead. Then it would make sense to provide the full data on the page that is given as url of the Organization, so typically the homepage.
According to Google, Organization Schema should be on only 1 page of a website (usually the homepage of contact page).
Source: https://www.searchenginejournal.com/google-do-not-put-organization-schema-markup-on-every-page/289981/

SharePoint Hosted App 2013: Customize List/AllItems.aspx page

I'm trying to implement permission levels in SharePoint hosted app. I've created a custom list "Permissions" where I'm adding different users with their roles.
I have created a page List.aspx where I'm showing my custom list "Products" as a list view web part. Page List.aspx checks the user's role against "Permissions" list, and page can show or hide content in regards to this role. The problem is, when user tries to navigate to "Lists/Products/Allitems.aspx" or "Lists/Permissions/Allitems.aspx" he can see the list items.
All code check is done in JavaScript and I know there is a security risk, but this will work for my users. I just need to find a way to inject custom JavaScript code to Allitems.aspx, and to check if user has permissions to see it or not.
Everything here is done on App web and there's nothing that I use on host web.
I've found a workaround for this. Basically what I did is that I just hide the list view from direct access. To achieve this, open the Schema.xml of the list and replace "JSLink":
from
<JSLink>clienttemplates.js</JSLink>
to
<JSLink>~site/Scripts/OverrideListView.js</JSLink>
Now, create a new file Scripts/OverrideListView.js and add following code to it:
document.write("<style>body {display:none; };</style>");
Try now to access Lists/Permissions/Allitems.aspx directly. You will get a blank page.
This is basically idea how to insert custom JS code into list view. You could add additional code for checking current user's permissions on site level and in regards to it to unhide this view, or even to redirect him to the homepage if he does not have right role or permissions.

Create a web page in Orchard

I need to create a "custom" web page in Orchard. As I understand it, below are the steps I need to take to do so. Before I go down this somewhat lengthy process, are there any steps I'm missing or that I can skip?
Create a model
Create a content part and content part record which use the above model
Create a driver which implements the Display method which returns the "shape" of the content part
Create a shape template to render the shape returned from the above driver
Create a content type which holds the content part
Create a page which holds the content type
Add the page to my site
This page is "custom", in the sense that it needs to pull data from a web service and display it in an interactive way. When the user makes changes, those changes will need to be sent back to the web service.
Those are really steps for creating a content item. You would want to create a content item if your page should be treated as content - e.g. administrators can create, edit, publish, unpublish, and finally delete your page.
If you just want to create a simple page, then there is nothing to stop you from creating your own ASP MVC controller. You can define routes for it using Orchard's routing, and if you decorate it with a [Themed] attribute, it will even inherit the site's theme.

Email view that does not show buttons and views of other activities

I want to add Emails to navigation so It can be used like any other entity. Editing sitemap is not a problem but it does not work in the expected way.
First, of all it shows all entities, not emails only. And consequently there are filters for other activities which are unwanted.
How do I make email-view that does not show other activities?
Create a new view in CRM showing the records you wish to see
Create a HTML web resource, with an iFrame pointing to the URL of the view you just created. It will look something like this /advancedfind/advfind.aspx?AutoRun=true&QueryId=%7b495B7974-58AC-E234-92D4-EE155D107003%7d&ViewType=4230&etn=email
Point your sitemap to the new web resource

Resources