Hybris 6.5
My project got an existing B2B storefront (say, sf1) and I created one more B2B storefront (say, sf2) from sf1, by
adding
'meta key="modulegen-name" ...' to sf1's extensioninfo.xml.
I made necessary changes for the new storefront and could access successfully on the browser. The only problem is,
Assisted Service Module (ASM) appears all the time on the top. I would like to show ASM only with query string URL access like ' ?asm=true' .
Is there any way to disable ASM and show it only on '?asm=true' URL access.
The existing storefront doesn't have ASM appearing and it shows only on '?asm=true' URL.
I'm new to Hybris and any help is appreciated.
As far as I know the ASM Module comes through an CMS Component to the site. So if you have 2 different content catalogs you could it handle on this way. Otherwise you have to implement some logic, that this component will only be shown if you set some URL property like '?asm=true'
BR
Related
https://azure.microsoft.com/en-us/updates/new-azure-api-management-developer-portal-is-now-generally-available/
Extensibility—The portal comes built into every API Management instance (excluding the Consumption tier). If you wish to extend the portal’s core functionality (for example, create your own widgets to fetch data from other sources), fork the GitHub repository, implement the code changes, and self-host your own modified version of the portal.
Is it so that we can't do custom widgets on Azure hosted Developer portal? If so, then this is a backstep from the legacy portal as there we could write custom HTML and JS to get custom features.
I believe still there are couple of things you can do.
Home page
The default Home page is filled with dummy content. You can either remove the whole sections with the content or keep the structure and adjust the elements one by one. Replace the generated text and images with your own and make sure the links point to desired locations.
Layouts
Replace the automatically generated logo in the navigation bar with your own image.
Edit the content of the portal, customize the website's look, and publish the changes.
Please refer https://learn.microsoft.com/en-us/azure/api-management/api-management-howto-developer-portal-customize and let me know how it goes
You can submit a pull request to the repository.
If you create a custom widget and this will be useful for many users it can be included in the default set of widgets.
Hi I have done with initial setup of hybris and now I am seeing apparel store. Now could you please someone answer how should I proceed further to completely customize the apparel store site. I wanted to remove all the products and I wanted to add my own products and categories . Also where should I change the URL from apparelstore to my own customized URL?
You need to create your own accelerator module. There is a trail called "commerce trail" on the hybris wiki/help pages that helps you with the initial setup of a module.
I suggest to follow the help section about how to customize the accelerator (e.g: b2c accelerator customization). Generally speaking, you can use the ant modulegen command to generate the extensions for your very own accelerator.
For your own products/categories, you should provide them on impex files. The current data you're seeing is from the apparelstore extension that adds products, categories, site configuration & cms content for the apparel store. So in case you don't want that, you need to remove the apparelstore extension (or don't run projectdata for it) and then provide your own data. You can check that extension also and see how the data is created, to use it as a guide, but also the ant modulegen should generate some impex file templates that you can use. Look in hybris/bin/ext-data/apparelstore/resources/apparelstore/import.
Finally, for your urls, please check the CMSSite url parameters, this are the urls that 'activate' the site for the given request. Also search for properties like website.{siteid}.http= & website.{siteid}.https= that you also need to update for everything to work fine.
I have newly created a b2b accelerator website and included catalog, catalog version, category and products, personalization etc. when I am trying to live edit staged version adding home page into it then it is redirecting me to login prompt and if I login then the page not found message showing. I am new at hybris. I don't know what could be reason of prompting login while attempting to live edit. Even using smartedit editing also has the same manner.
I would be very grateful if anybody can help me regrading this issue. I didn't find any tutorial how to customize b2b accelerator website making configuration.
When you see a generic hybris "page not found message" the url you called will most probably not be registered in your storefront. When you open your cms site in hmc/backoffice there is an attribute called "URL pattern". This attribute holds a list of strings, which are regular expressions. Every request you fire against the storefront has to match at least one of those regular expressions. That way, you can have more than one site on one hybris server.
E.g. there are the sites electronics, apparel, powertools, all available on the same machine but using different urls: http://electronics.local:9001/, http://apparel.local:9001/ and so on.
I Want to Show custom welcome screen when a user logs in to Dynamics CRM 2016. I searched and i just got how to disable welcome screen tour but i couldn't find how to show my own custom screen (message or HTML).
Any help is appreciated.
Thanks
Make a dashboard with a single large HTML web resource.
Place your content inside that HTML web resource.
Set that dashboard as the default for new users. Display a specific dashboard by default for a specific user role
You can also add your welcome page as HTML web resource, add its link to your sitemap and set this sitemap subarea as a default tab for every user.
EDIT (detailed description):
Create custom HTML web resource and publish it in CRM.
Edit your sitemap to contain link to newly created web resource. Sample configuration below:
Sample
In my case my web resource HTML name is "new_welcome.html"
Go to user's personal options and set your new site.map position to be your user's default tab. You may do this with CRM interface (separately for every user :()) or with the tools for personal options mass update (for example with User Settings Utility from XrmToolBox)
Sample results of above mentioned operations:
Solution of you problem is Announcements.
Its easy to configure and easy to circulate the information across all the users.
Follow the below links for more information about Announcement,
https://www.microsoft.com/en-us/dynamics/crm-customer-center/broadcast-announcements-to-an-entire-organization.aspx
I would suggest not to use announcements because of the following reasons:
It is legacy functionality from CRM 2011 version.
It does not support rich text formatting or html components, images, etc.
You still need to create custom web resource to present it to the end user (so from the work effort perspective it also does not make sense)
I have been using Liferay for work for 2 weeks. I noticed that it's a bit difficult to find good documentation and tutorials.
Until now I created pages from the web portal. After I create them, I drag and drop portlets. I don't really like this approach, I would prefer to use a coding approach. Is there a way to create a website or page programmatically by defining a project as I do to create portlets?
Moreover, I am using Liferay with WebLogic 10.3.6. I want to know where liferay puts pages I created via web-portal on the file system. I suppose that a file, or something similar, is created when I declare a new site on the Liferay web-portal.
Thank you all,
Marco
Yes Liferay has it's Database, all data of any Liferay object is stored in the database and / or on the file system depending on your configuration.
However, one of the functionality of Liferay is to let you create pages / sites through the UI. As documented in the Java Portal Specification and Liferay Server Documents your approach to create pages in an alternative way is possible but it is part of Liferay's Portal Services. You can use Liferay's Service (HTTP REST) API to call the related service. To access those APIs you need to configure your Liferay Server.
In case you want to do programmatically you still need to configure, enable and call those external HTTP services from your code. You should not create Liferay Objects from your own code hosted as an extension inside your Liferay Instance as that will result inconsistency in your Liferay Database / filesystem. (As in case of page creation Liferay creates a set of other related objects in it's database / filesystem.)
In your liferay bundle you will find two plugins of interest.
First is resources-importer-web for which description says
The Resources Importer app allows front-end developers to package web
content, portlet configurations, and layouts together in a theme
without saving it as a compiled .LAR file thereby allowing for greater
flexibility in its usage between Liferay Portal versions.This app will automatically create associated content when other
plugins are deployed that are configured to make use of the Resource
Importer app.This app installs as a Liferay service.
Second is welcome-theme which declares resources to be created by resources-importer-web. This on should be example how to create your own. Take a look at
welcome-theme\WEB-INF\src\resources-importer\*
welcome-theme\WEB-INF\liferay-plugin-package.properties
This feature is described at importing-resources-with-themes
As mentioned by gabor_the_kid, Liferay stores all objects in its tables. For example, User related objects would be in user table. Liferay exposed services or API's to change the default/to add new behaviors by program but not easier than achieving it through UI. Also maintenance should be considered for going program way of creating pages or layouts etc.
You can describe your changes using xml and use the Liferay Portal DB Setup core to create the changes in DB.
The library defines the list of available xml configurations.