GuyB
|
Posted Sun 20 Sep 2015
|
Group: Forum Members
Last Active: Sun 31 May 2020
Posts: 25,
Visits: 56
|
At the moment I don't quite get how the custom pages work sorry, maybe if there were some examples out there to look at it would help me but the documentation really is light on WRT creating, implementing and maintaining custom pages through upgrades.
I spend a lot of time working on this yesterday and have worked out how to use nested master pages to seem to keep Kartris working as a nested page and add a new top level masterpage that has a menu on it, that includes a 'shop' link, that displays the guts of Kartris in the body of the page. I've got some questions on Skins now but I will start a new thread for that.
Cheers
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
|
|
|
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 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
|
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
|
|
|
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
|
|
|
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
|
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
|
|
|
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
|
|
|
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.
|
|
|