Suppose I generated my custom extensions via module gen and I created my own product and content catalog how can I use mine catalog instead of out of the box (powertools)?
You can configure it on Base Store Catalogs configuration in backoffice. Also you can use impex for updating it.
Related
I am fairly new to Orchard CMS.
I am going through how a module is created an got a question.
According to the documentation, content definition could be created in two ways:
use admin content definition page
create module project in visual studio
is there any difference?
I created a test content definition and try to find it in the SQL compact database. I can't seem to find it.
Anyone know where that info is stored?
Thanks
You can find the content definition in the following tables in the Orchard database:
Settings_ContentFieldDefinitionRecord
Settings_ContentPartDefinitionRecord
Settings_ContentPartFieldDefinitionRecord
Settings_ContentTypeDefinitionRecord
Settings_ContentTypePartDefinitionRecord
The admin interface uses the same APIs that are used when defining content definition from code, so it's basically the same thing. I tend to define content definition in migrations, as that's the best way to ensure that content definition changes are properly applied on all instances of the application (the migrations automatically run during application startup). The admin interface is intended for users who do not have access to the source code (ex. administrators, not developers).
In Kentico 11, in a custom module you are developing, when using a custom Page Template (portal mode) for the UI Element, where is the appropriate place to host Transformations used by web parts of that template? "Appropriate" meaning the transformations can be bundled with the module for import/export operations or at least grouped with it logically in Kentico admin?
The Kentico Custom Module app doesn't contain a Transformations tab for its Classes.
Repeater web parts used on the UI page template only list Custom Tables and Page Types when looking for transformations. Transformation doesn't seem to be supported for a Custom Class.
I could create a standalone container Page Type to host all transformations for the module, however this would be outside the module. These transformations would use data from Classes in the module (through repeater web parts and query data sources for example). It seems odd to put them outside so I am suspicious of doing this.
Up until now I've only used the out-of-box tab and listing web parts to create custom modules. Now I need to get into more customization, and prefer the portal mode to easily build templates using web parts. Transformations seem to be the missing consideration in this development flow.
Neither can I find Transformations mentioned in the Custom Module documentation. Kentico Documentation I'm referencing is:
Creating custom modules
Manually creating the interface for custom modules
Martin Hejtmanek's Module development articles like this one
I can find a place to put my transformations. I'm looking for thoughts about where to best put them and bundle them with my custom module work.
Your findings are a shortcoming in the module documentation. The documentation talks in great detail on how to build the module and display it within the Kentico UI but talks little to none on how to display that content outside of Kentico on the public facing website.
What you mentioned, using a custom Page Type as a container is a simple easy approach and I believe you can bundle this with your module. Yes it doesn't make sense but using this approach will allow you to have your custom queries to access the module data and display options (transformations).
You have another option to create custom webparts for this and package them with your module but I'd recommend against this because it takes away from the basic usage of Kentico and will require code maintenance and modifications for simple changes.
If you look at page types you will see that Kentico does the custom page types to hold transformations. They have ones like RSS Transformations, E-Commerce Transformations, etc.
That is the way I have always done it also.
I suggest you to take a look at the custom table module as example, i.e. user interface part of it: there is transformation menu item under edit custom table in the interface. Take a look on how it is done and try to clone/modify it for your own custom module. If you check the DB: cms_transformation table has TransformationClassID field. So transformation is attachable to a class - so you custom classes can have transformations attached. Honestly i've never done it, but this is the way how I would approach. I would keep apples with apples, oranges with oranges... yeah sure you can always create "container page type" and it will work, but i would play around with the custom module. You might need to create and extender in this case.
#John,
As per Brenden post, you can achieve this using custom web part with your custom logic.
Refer below URL:
https://docs.kentico.com/k10/developing-websites/defining-website-content-structure
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've read the hybris wiki but I wasn't able to find any related information...I have made a website in one hybris platform on localhost, and now I need to get all the content, products, pages, etc and import it in another platform. Do you have any idea how to do this?
Thanks!
You can export your data by writing Export Script.
Creating Headers for Export
Log into the hybris Management Console.
Navigate to System > Tools > Script Generator.
In the Wizard: Script Generator, click on the Advanced Settings tab.
Clear the Document ID check box.
Switch back to the Script tab.
Select [y] hybris MigrationScriptModifier from the Script modifier drop-down menu.
Click the Generate button.
The Script Generator writes the headers for all types in the hybris Commerce Suite into the Script field.
Copy and paste the list of headers into a text editor.
Remove the headers for the types you do not want to export.
Here are the list of some examples ->
Export CMS Content
Users and Addresses
Catalog Version Content
Classification System
For More Information on How to run Export in different ways, Follow this link Impex - User Guide
Quick and dirty db dump:
If you're not worried about overwriting existing data on the other platform, you could simply copy the database over. More than likely you will also need to copy the hybris/data folder, or you'll have missing media references. If you're using MySQL you can use the mysqldump utility. This is the quick easy way if you just need to stand up a UAT environment, for example.
Impex export
The better way would be by creating impex scripts that will export all the items needed. On the hybris wiki, search for "Data Exporter", which is a page containing a link to an HMC extension called advancedexport. It will allow you to set up your export more easily.
There are two scenarios :
1 - You have made all the website configuration by impex files and therefore you will just need to initialise your system on the new platform
2 - You have done all the website configuration manually
If you are running the exact same Hybris version and code, then exporting / importing the data is possible
If you are not running exactly the same platform, then it becomes tricky, you could either use import export functionality (good examples here) or try to generate Jinja templates for each item type (example here)
Another good option for you here will be to use the Hybris-to-Hybris Synchronization which will allow you to transfer all your data by taking advantage of Data Hub. This is a very good solution in cases where you want to keep a good performance in the origin system, or where you are dealing with different version of hybris. See more information on this here.
I've created a custom list & also added a column in the Announcement List. Question is, how can I include those newly created items when I create a fresh Web Application (like a script, feature or something)?
Additional Info: It's like when you're to deploy from your development machine to a staging or production server. I'd like to have a script or something to update my production server to have the new column i've added to the Announcement List. Just like SQL Server's ALTER TABLE command to update a SQL Server Table.
Is there an equivalent in Sharepoint Lists?
TIA!
Regarding the new custom list, this can be done using features. See How to: Create a Custom List Definition for more information. The Visual Studio Extensions for SharePoint (VS2005 / VS2008) will help you to extract the list definition if you've created it through the SharePoint UI. If you are fortunate enough to be using a custom site definition and don't have any webs created yet, you can set your site definition to create the custom list using feature stapling.
If you are attempting to apply these changes to webs that already exist, you can still use a feature to define your custom list. It will just appear as a type of list that can be created. Then to have the custom list automatically created for existing webs or to modify existing lists such as the Announcements list, you can use a feature receiver. This allows you to run any custom code when the feature is activated. See the MSDN article Feature Events for more information.
Alternatively, you could not use features at all as they can be difficult, time consuming and painful. In fact, this blog post has a good argument against the idea. You could try the tool mentioned on that page or other applications such as DocAve Content Manager and SharePoint Site Migration Manager.
Your question is not very clear but I think you may want to look at Application Templates.
Microsoft provide 40 pre-built templates in the link below and the same technology is available to you. Links from this page should lead you to information showing you how you can crate your own.
Application Templates for Windows SharePoint Services 3.0
http://technet.microsoft.com/en-us/windowsserver/sharepoint/bb407286.aspx