Jump to content

edit Homepage


SUNVILLE

Recommended Posts

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

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 by Guest (see edit history)
Link to comment
Share on other sites

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

 

2020-11-15 (2).png

2020-11-15 (3).png

Link to comment
Share on other sites

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

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

  • 3 weeks later...

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...