Am going to use Kentico to create more than one store (Site) and assign user for each store to add/modify/delete his products, i've created 2 stores the first one with domain localhost:8080 and second one is storeone.localhost:8080 as documentation said in Kentico Doc URL, i can open first site with no problem but when i tried to switch to second Site it gives me Bad Request - Invalid Hostname .. can any one help me in this?? .. also i would appreciate it if any one help me on how to extract product data using Kentico API's as documentation provide me only with updating/modifying/removing data from database and i want to know how to display it with it's attachments like images pdf that i've uploaded it.
相关问题
- Copy a LIVE Kentico instance and its database to m
- kentico add new form field via API
- Server Error in Application Kentico 7.31
- How to find Kentico hotfix when KIM is not install
- How do I disable products in Kentico 10?
相关文章
- Kentico ASCX改造页面类型属性(Kentico ASCX transformation p
- Server Error in Application Kentico 7.31
- How to find Kentico hotfix when KIM is not install
- How do I disable products in Kentico 10?
- How to use custom page type class for current docu
- Kentico Admin - Re-arrange Order of checkboxes
- Kentico v9 how can i detect when a user is in CMS
- Server Error in '/KenticoCMS' Application.
The best approach is to use two different ports. The reason for this is IIS is by default bound to port 80. So what I'd do is leave one site at 80 and do another at say 2. Make these bindings in IIS then go to Kentico and add your second site at localhost:2 vs. :8080. There's a conflict with port numbers. Kentico and IIS are "confused" and don't know which one to serve up. The only way it will work with the same port is to start and stop sites within Kentico.
Brenden is correct - there cannot be 2 sites running on same domain. What you need to do is configure IIS bindings. What I often do is that I configure my hosts file (C:\Windows\System32\drivers\etc) and add a few more rules like:
And then I can use bind my Kentico sites to these domains. Don't forget to also change the domain names in Kentico -> Sites app.
As for your second question:
It depends whether you want to get only SKUInfo object or page object where the custom data (page type fields) are stored. If you just need SKUInfo you can use something like:
If you need to get the product with all custom fields you need to use the Pages API as you would with any other page. A simple example:
For the purpose of retrieving pages I would highly recommend to check this documentation article which contains a lot of examples.