Kryptronic Software Support Forum

You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.

#1 12-04-2020 19:46:57

Graham
Member
Registered: 09-30-2004
Posts: 958
Website

Show yourdomain/store content on the Splash page

I want to be able to show the yourdomain/store content (ie the grid of categories) on the splash page, ie the one that shows when someone goes to wwwyourdomain

Is there a way of doing this without having to figure out an .htaccess redirect?

Offline

 

#2 12-07-2020 11:29:52

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19639
Website

Re: Show yourdomain/store content on the Splash page

Use Website / Content / Webpages to update your Splash page and use this to list the categories:

Code:

<?php $this->include_namespace('ecom','catlist'); 
$this->globals('ecom.disable_breadcrumbs',1); ?>

Nick Hendler

Offline

 

#3 12-07-2020 12:47:50

Graham
Member
Registered: 09-30-2004
Posts: 958
Website

Re: Show yourdomain/store content on the Splash page

I've added that, but it doesn't seem to have any effect.

Offline

 

#4 12-08-2020 08:11:18

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19639
Website

Re: Show yourdomain/store content on the Splash page

It should have.  Assuming you have categories set to display on the splash page.


Nick Hendler

Offline

 

#5 12-08-2020 08:19:19

Graham
Member
Registered: 09-30-2004
Posts: 958
Website

Re: Show yourdomain/store content on the Splash page

Where do I set that?

I've looked in Store/ Component/ Settings/ Categories - Standard View and Categories: Feature Grid View but it doesn't seem to be in those.

In ecom_cat there's a field "splashdisp" and the categories I want on the Splash Page are marked "True" (1), but they only appear in the navigation bar at the top.

Last edited by Graham (12-08-2020 20:35:05)

Offline

 

#6 12-09-2020 10:24:46

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19639
Website

Re: Show yourdomain/store content on the Splash page

You found it - ecom_cat.splashdisp.  If they're in the menu, then they are main categories.  I forgot you need a parameter:

Code:

<?php $this->include_namespace('ecom','catlist',array('type'=>'SPLASH')); 
$this->globals('ecom.disable_breadcrumbs',1); ?>

Nick Hendler

Offline

 

#7 12-09-2020 14:42:17

Graham
Member
Registered: 09-30-2004
Posts: 958
Website

Re: Show yourdomain/store content on the Splash page

Thank you, that works properly now.

Offline

 

#8 12-09-2020 19:52:27

Graham
Member
Registered: 09-30-2004
Posts: 958
Website

Re: Show yourdomain/store content on the Splash page

A follow up to this.

Currently the grid of categories has the name of the category below the image I've chosed to represent the category.

I'd like to move the category name to above the image instead.

Please can you let me know how to do this.

Offline

 

#9 12-10-2020 09:28:25

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19639
Website

Re: Show yourdomain/store content on the Splash page

I'd recommend doing it with CSS.


Nick Hendler

Offline

 

#10 12-10-2020 15:19:38

Graham
Member
Registered: 09-30-2004
Posts: 958
Website

Re: Show yourdomain/store content on the Splash page

Ok, please can you tell me which CSS file I should modify and where I can find it.

Offline

 

#11 12-11-2020 09:33:10

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19639
Website

Re: Show yourdomain/store content on the Splash page

Always change CSS by altering your active skin's all.css file ({public/skins/ACTIVE-SKIN/css/all.css).


Nick Hendler

Offline

 

#12 12-11-2020 12:55:55

Graham
Member
Registered: 09-30-2004
Posts: 958
Website

Re: Show yourdomain/store content on the Splash page

Do you mean all.min.css? That's the only CSS file I can see in there and that only seems to deal with colours and sizes.

Alternatively, can I just switch off the display of the category name and, instead, I'll just include it in the image which would probably be simpler.

Offline

 

#13 12-16-2020 07:20:37

Graham
Member
Registered: 09-30-2004
Posts: 958
Website

Re: Show yourdomain/store content on the Splash page

Can I just switch off the display of the category name and, instead, I'll just include it in the image which would probably be simpler.

Offline

 

#14 12-16-2020 09:31:48

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19639
Website

Re: Show yourdomain/store content on the Splash page

Sure, you can hide the category name (or anything else you might want to hide) by using CSS.


Nick Hendler

Offline

 

#15 12-16-2020 10:37:55

Graham
Member
Registered: 09-30-2004
Posts: 958
Website

Re: Show yourdomain/store content on the Splash page

In post #11 you said I should change the css in public/skins/ACTIVE-SKIN/css/all.css

However, as I said in post #12, the only css file I can see in there is all.min.css which only seems to deal with colours and sizes.

If this is the right file, please can you tell me what I am supposed to modify.

If it isn't, please tell me which one I am supposed to change and what needs changing.

Offline

 

#16 12-17-2020 08:32:57

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19639
Website

Re: Show yourdomain/store content on the Splash page

Yes, that's the right file.  I should have remembered it was all.min.css, not all.css.  That's a CSS file used by your skin that you can edit to change any display you want across your entire site.  If you're using the Flex skin, that file has the layout for the skin in it, and a few color overrides.  Do whatever you like in there. In post #13 you said you wanted to hide the category name.  So do it there by adding/editing a node for the category name class and setting display:none.  Ie:

Code:

.kcatlistitemname {display:none;}

Nick Hendler

Offline

 

#17 12-17-2020 16:05:16

Graham
Member
Registered: 09-30-2004
Posts: 958
Website

Re: Show yourdomain/store content on the Splash page

Thanks for that.

If I wanted to just move the category name above the category image instead, how would I do that?

I can't see .kcatlistitemname in the all.min.css file, nor in skin.php

Offline

 

#18 12-18-2020 09:35:44

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19639
Website

Re: Show yourdomain/store content on the Splash page

You could position the wrapper div relatively, then position the name absolutely, then use a margin on the image.  As far as it not being there, add it.  All the base CSS is here, for your reference:

{public}/media/skins/css/all.min.css

Just use that for reference, override it in your active skin's all.min.css file.  Maybe you should review a couple of online CSS tutorials.


Nick Hendler

Offline

 

#19 12-18-2020 11:54:04

Graham
Member
Registered: 09-30-2004
Posts: 958
Website

Re: Show yourdomain/store content on the Splash page

Thank you for that.

It would be helpful if the program documentation actually held this information so it was simple to find.

Offline

 

Board footer