Implement Bootstrap


https://forum.kartris.com/Topic6151.aspx
Print Topic | Close Window

By Supermac - Tue 1 Sep 2015
Please may someone summarize to me the way to create a skin that implements Bootstrap?
By Mart - Tue 1 Sep 2015
We support Foundation at present. Was there a reason you wanted to use Bootstrap?
By Supermac - Tue 1 Sep 2015
Just because I'm more confident with BS... but I'm actually reading about Foundation's features.
I see that Kartris 2.8004 is equipped with Foundation rel 4.008...
Eventually can I upgrade Foundation to latest release? (only to be able to cut&paste from Foundation's site samples)
By Paul - Thu 3 Sep 2015
The integration with Foundation is primarily via the skin template. You should see that references foundation javascripts and CSS files. What we tend to do is hook up the default foundation files, and then add in a 'custom.css' where we add modifications to override the foundation defaults. This tends to make it easier to modify things without having to go through foundation's huge CSS files looking for changes.

So to use bootstrap instead, you would just edit your template to point to the bootstrap CSS and javascript files, then you may need to make some minor modifications in parts of Kartris where we use Foundation styles and structures to get them to work. For example, foundation's grid and styles like hide-for-small, etc. - bootstrap probably has equivalents of these but with slightly different code required.

Kartris v2.6 was updated to use Foundation 5.2; what we've tried to do from this onwards is to put the javascript files for individual kartris versions into named folders within the root javascript folder, so that you can use older Kartris skins with the latest version. So for example if you have a v2.6 kartris skin, you can use this with Kartris v2.8 and link it in to the 26000 javascript folder rather than 28000.
By Supermac - Mon 7 Sep 2015
Thank you Paul.
By Supermac - Tue 8 Sep 2015
Let's do a practical example:
I'd like to change the aspect of news summary in default page.
Actually they appear in Kartris skin as a simple bulleted list and I'd like to change them like the ones showed here http://zurb.com/building-blocks/event-listing
To do this I've to modify usercontrols/front/sitenews.ascx file changing the code lines inside repeater's itemtemplate.

Do you suggest me to create my new usercontrol and then map it in web.config replacing the original ascx file or to keep and modify the original ascx file?