GuyB
|
Posted Mon 14 Sep 2015
|
Group: Forum Members
Last Active: Sun 31 May 2020
Posts: 25,
Visits: 56
|
Is it possible to locate the site in a sub folder of a site, for example in a /shop location, and then have a higher level site at the root level? Basically have the Kartris site as a component of a larger site.
Currently I have a site developed under shop.domain.com and I now want to move it into www.domain.com/shop and have the shopping site only load if someone start clicking on a "Shop" button/link, to which a frame or child page to a master is displayed with the shop in it.
Is this even possible, with the web.config needing to be at the root level.
I tried copying the site to /shop folder on another site and copying the web.config to the root, however the site does not load, including the admin site.
Have I confused you yet?
Cheers
Guy
|
|
|
Supermac
|
Posted Mon 14 Sep 2015
|
Group: Forum Members
Last Active: Wed 22 Jul 2020
Posts: 153,
Visits: 874
|
In configuration/general you should find a voice general.webshopfolder The value represent "The folder on your web site where the shop is stored - must include with "/" at the end. If the store is on the root of your web, this setting should be left blank." I don't know if that's all but is surely needed for the thing you asked.
|
|
|
Paul
|
Posted Tue 15 Sep 2015
|
Group: Administrators
Last Active: Tue 10 Sep 2024
Posts: 807,
Visits: 2,748
|
Also, IIS lets you create applications within sub folders, so to stop clashes between kartris and the main site (if it is also .NET) you might need to do that, run Kartris as a separate application, with own app pool and so on.
-- If my post solves your issue, can you 'Mark as Answer' so it's easier for other users to find in future.
If you would like to be informed of new features, new releases, developments and occasional special bonuses, please sign up to our mailing list: http://bit.ly/19sKMZb
|
|
|
GuyB
|
Posted Thu 17 Sep 2015
|
Group: Forum Members
Last Active: Sun 31 May 2020
Posts: 25,
Visits: 56
|
Thanks for the replies, they are getting me SO close! I have never used applications before so I started playing and got the admin site up
At the moment I have created a virtual directory under the www.domain.com IIS site and converted it to an application with its own app pool, and pointed the path to the same physical folder as the site I developed in (shop.domain.com) is pointing too.
I have updated these too:
general.webshopfolder = shop/
and
general.webshopurl = http://www.domain.com/
however when I try to browse to http://www.domain.com/shop it gets redirected to http://shop.domain.com/shop and generates a 404.
Any ideas? I did try recycling all app pools.
Thanks in advance
Guy
|
|
|
Supermac
|
Posted Thu 17 Sep 2015
|
Group: Forum Members
Last Active: Wed 22 Jul 2020
Posts: 153,
Visits: 874
|
having the shop already configured as virtual directory shouldn't general.webshopfolder value be left blank?
Thu 17 Sep 2015 by
Supermac
|
|
|
GuyB
|
Posted Thu 17 Sep 2015
|
Group: Forum Members
Last Active: Sun 31 May 2020
Posts: 25,
Visits: 56
|
I've got a feeling it might be a cacheing issue with IE. On the Mac it isn't redirecting, on the PC it is.
Guy
|
|
|
GuyB
|
Posted Thu 17 Sep 2015
|
Group: Forum Members
Last Active: Sun 31 May 2020
Posts: 25,
Visits: 56
|
So close but so far...
So I have got the site running fine in the /shop folder, in the end I copied the site into a /shop folder in the existing site, converted it to an application made its own app pool and this time it seems to have worked, with the URL settings as above. The problem with redirection was just something in the browser cache, clearing temp IE files fixed that.
So now to try step 2. Nesting master pages. I want to nest the Kartris shop off a master page for the whole site. I read up and it is supported:
https://msdn.microsoft.com/en-us/library/x2b3ktt7.aspx?cs-save-lang=1&cs-lang=vb#code-snippet-1 is supported,
So I edited the template.master as such below to reference the sites root level master page MasterPage.master.
<%@ Master Language="VB" CodeFile="Template.master.vb" Inherits="Skin_Kartris_Template" MasterPageFile="/MasterPage.master" %>
However it falls over when loading for with the following error:
Parser Error Message: The virtual path '/MasterPage.master' maps to another application, which is not allowed.
So it seems like the application of the shop site needs to be the same as for the masterpage the Skin references as its master page
I had the main web site on one app pool, and the Kartris /shop application on another. Ok, so I'll try setting the app pool of the main site to the same one as the shop. I still get the same error
Any thoughts. My power has been out for a while now, I'm running on UPS battery! I hope it comes back on soon or it will be a test of all the shutdown processes!
Cheers
Guy
|
|
|
Paul
|
Posted Thu 17 Sep 2015
|
Group: Administrators
Last Active: Tue 10 Sep 2024
Posts: 807,
Visits: 2,748
|
Is the root application in your site also running Kartris? Because the Kartris masterpage is obviously kartris specific in terms of the user controls it uses. So I just wanted to clarify your situation:- Is the root (main) site running Kartris, and then you have a separate kartris running in the subfolder which is now also an application?
- Is the main site running some other CMS, with Kartris running in a subfolder?
Because in the second case, I am not sure you could really share a masterpage between another app and kartris, since the master page has a lot of kartris-specific content on such as user controls and so on.
-- If my post solves your issue, can you 'Mark as Answer' so it's easier for other users to find in future.
If you would like to be informed of new features, new releases, developments and occasional special bonuses, please sign up to our mailing list: http://bit.ly/19sKMZb
|
|
|
GuyB
|
Posted Thu 17 Sep 2015
|
Group: Forum Members
Last Active: Sun 31 May 2020
Posts: 25,
Visits: 56
|
The root of the site is a basic site at the moment, just a few html files, but IIS still assigns it an app pool by default. Kartris exists completely in the /shop folder which is now an application of its own.
I just wanted to be able to have a higher level master page layout so I can add some other content on to the site (really just some static pages for now) and have the Kartris as a shop component. This way I don't have to modify the look of Kartis too much so when it comes to upgrading to future versions its a lot more plug an play.
Perhaps there is another way to do this? What about creating a single higher level master page in Kartris and have this with Kartris at the root of the site. I can keep all my custom content in a different folder so it won't get touched with updates. Good idea or not?
Do you get what I mean?
Guy
|
|
|
Paul
|
Posted Fri 18 Sep 2015
|
Group: Administrators
Last Active: Tue 10 Sep 2024
Posts: 807,
Visits: 2,748
|
If you largely have other general static content, just create 'custom pages' in the back end of Kartris. This is a basic CMS system that lets you create new pages. You can nest them so the breadcrumb trail shows the correct position too. You can then put links on your skin and/or in the web_menu.sitemap file that controls the main site nav menu (need to restart/recycle after that).
This way, you just need to run Kartris on the root and can have other content pages within kartris, that's how our site works.
-- If my post solves your issue, can you 'Mark as Answer' so it's easier for other users to find in future.
If you would like to be informed of new features, new releases, developments and occasional special bonuses, please sign up to our mailing list: http://bit.ly/19sKMZb
|
|
|