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.
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
Use Website / Content / Webpages to update your Splash page and use this to list the categories:
<?php $this->include_namespace('ecom','catlist'); $this->globals('ecom.disable_breadcrumbs',1); ?>
Offline
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
You found it - ecom_cat.splashdisp. If they're in the menu, then they are main categories. I forgot you need a parameter:
<?php $this->include_namespace('ecom','catlist',array('type'=>'SPLASH')); $this->globals('ecom.disable_breadcrumbs',1); ?>
Offline
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
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
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
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:
.kcatlistitemname {display:none;}
Offline
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
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.
Offline