SUNVILLE Posted November 15, 2020 Share Posted November 15, 2020 When you go to www.am-studios.be and click on home you see List of pages in Home: I would deleting that part and want a text and pictures inside . Can i do this with this module? It's not a free module, so I can't test it. Custom Block Homepage Module Link to comment Share on other sites More sharing options...
Guest Posted November 15, 2020 Share Posted November 15, 2020 You can use my free module. Link to comment Share on other sites More sharing options...
SUNVILLE Posted November 15, 2020 Author Share Posted November 15, 2020 Thank you, But I want the text here: https://am-studios.be/webshop/nl/content/category/1-home Now you see List of pages in Home: Link to comment Share on other sites More sharing options...
Guest Posted November 15, 2020 Share Posted November 15, 2020 (edited) Oh, so this is a CMS page. You can create your own TPL file eg my-home.tpl (it is actually an HTM file) and save it in ./themes/your-theme/templates/cms/my-home.tpl Then open the ./themes/classic/templates/cms/page.tpl file and insert the condition for loading content from my-home.tpl for example, to insert a link to your tpl file into the cms.tpl file, do the following: {extends file='page.tpl'} {block name='page_title'} {$cms.meta_title} {/block} {block name='page_content_container'} <section id="content" class="page-content page-cms page-cms-{$cms.id}"> {block name='cms_content'} {$cms.content nofilter} {/block} {block name='hook_cms_dispute_information'} {hook h='displayCMSDisputeInformation'} {/block} {block name='hook_cms_print_button'} {hook h='displayCMSPrintButton'} {/block} </section> <!-- my-home.tpl --> {if $cms.id == '1'} {include file='{$tpl_dir}/templates/cms/my-home.tpl'} {/if} <!-- end modify --> {/block} sample my-home.tpl: {block name='my_home_custom_content'} <section id="my-custom-content" class="page-content page-cms"> <p>{l s='hey, here my custom cms page block' d='Shop.Theme.Global'}</p> <div>here my content</div> </section> {/block} Edited November 15, 2020 by Guest (see edit history) Link to comment Share on other sites More sharing options...
SUNVILLE Posted November 15, 2020 Author Share Posted November 15, 2020 I dit the coding, but that don't has effect It is the categorie HOME that you see with a list of pages in it https://am-studios.be/webshop/nl/content/category/1-home That would a Replace with a cms page and set that page as deafault start page, not the shop page as t is now https://am-studios.be/webshop/nl/ Link to comment Share on other sites More sharing options...
ps8modules Posted November 15, 2020 Share Posted November 15, 2020 https://mypresta.eu/modules/front-office-features/cms-on-homepage.html To hide the modules on the main page, just display the positions of the modules and remove them from the displayHome hook. Link to comment Share on other sites More sharing options...
SUNVILLE Posted November 15, 2020 Author Share Posted November 15, 2020 ok, but this is not what I mean, when you open the site www.am-studios.be, then you see the SHOP items and this text : Welkom bij A&M Studio’s etc.... But I want this text when you click on HOME (not the links in submenu) and I want THIS text as HOMEPAGE when you go to the site Now you see under home ths (see picture) I also want the LINKS under HOME away Link to comment Share on other sites More sharing options...
Guest Posted November 15, 2020 Share Posted November 15, 2020 And have you found the menu module yet? In the menu module you set what you need. Now you have a home link to the cms page. In the menu settings you have the option to create a new link at the very bottom. You write Home there and fill in the URL address of your eshop. After saving, you will see your new Home link in the right column. You will double-click on this new link and it will appear in the left column. Then you just move it up. You save and you're done. Link to comment Share on other sites More sharing options...
SUNVILLE Posted November 15, 2020 Author Share Posted November 15, 2020 (edited) ok, that's fixed. still 1 problem, I want HOMEPAGE to be the default page when you open the site and NOT the shop like now When you click on the logo you go to the shop, but it must be HOMEPAGE see www.am-studios.be Edited November 15, 2020 by SUNVILLE (see edit history) Link to comment Share on other sites More sharing options...
Guest Posted November 16, 2020 Share Posted November 16, 2020 (edited) ./themes/your theme/templates/_partials/header.tpl change: <a href="{$urls.base_url}"> to: <a href="https://am-studios.be"> Edited November 16, 2020 by Guest (see edit history) Link to comment Share on other sites More sharing options...
SUNVILLE Posted November 16, 2020 Author Share Posted November 16, 2020 I did, but has ni effect, I tried also :https://am-studios.be/webshop/nl/content/16-homepage but also no effect Link to comment Share on other sites More sharing options...
Guest Posted November 16, 2020 Share Posted November 16, 2020 That is probably not possible! If you have redirection set on the hosting or in the .htacces file of the main domain, you can change what you want and without a result. I will not advise anymore. Good luck. Link to comment Share on other sites More sharing options...
SUNVILLE Posted November 16, 2020 Author Share Posted November 16, 2020 check it out on www.am-studios.be in attachment header.tpl an htaccess header.tpl .htaccess Link to comment Share on other sites More sharing options...
SUNVILLE Posted November 16, 2020 Author Share Posted November 16, 2020 (edited) it may be a cache problem, I cleared the cache and if you now click on the logo you will indeed get to the homepage. So that already works. In cpanel of my hosting I made a redirect for my domain name and that worked problem solved Edited November 16, 2020 by SUNVILLE (see edit history) Link to comment Share on other sites More sharing options...
ClassyDevs Posted December 8, 2020 Share Posted December 8, 2020 Hello, SUNVILLE We have a paid module crazy elements, using that you can build your page nicely and then you can unhook your home page modules and then it helps you to create a nice home page. Redirected to the content cms page is not good. When you want to set other page as home page that time you need to again change in htaccess or other page. Thank you Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now