Creating A Custom Page in SAP Hybris - components

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.

Related

Orchard CMS Manage Content page not showing details

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!

Using custom HTML helpers in orchard CMS driver's editor template

I'm try to create a new content part with custom HTML helper package,
for this i have to bind list of items as value for this control in template page.
My requirement is to render Grid control in custom content part's display template page and get details on editor template page.
In editor template how to get list of items and how to bind this for display template page.
Please share details about this
Thanks,

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

How to use custom WrkTaskIp.aspx page in custom sharepoint workflow?

I have created as custom task edit browser enabled Infopath form which successfully gets open when user clicks on Edit task. But by default it opens up in the WrkTaskIP.aspx page which is available in 12 hive..Layouts folder.
Now the default WrkTaskIP form provides two following options as hyperlinks
1. Delete item, and
2. A link to navigate to the task display form
I want to customize the OOB, WrkTaskIP page and associate that with my workflow.
How exactly can i achieve this ?
Thanks.
Assuming you've got a custom task content type you can create a custom feature with an application page and make the task open the form in this page instead.
Copy the WkrTaskIP.aspx page from the 12 hive, modify the contents as you require and deploy this as an application page.
Then in your taskcontenttype.xml file point to your custom page by setting the Display or Edit values to the deployed location of your custom page:
<FormUrls...>
<Display>_layouts/YourCompany/Workflow/YourWrkTaskIIP.aspx</Display>
<Edit>_layouts/YourCompany/Workflow/YourWrkTaskIIP.aspx</Edit>
</FormUrls>

Resources