Jump to content

custom page (not CMS) to appearance of columns


prcwest

Recommended Posts

Hello
 
i created a custom page (not cms) what i be able to call for example: prestashop.com/technical-page.
is it possible to add this page to "appearance of columns" in Themes > Edit: default-bootstrap > Theme to display columns left or right?

 

best regards

Link to comment
Share on other sites

I was just working on this same issue yesterday. :)

 

I ended up adding the following to the install() function of my module:

        $meta = new Meta();
        $meta->page = 'module-gallerync-gallery';
        $meta->add();

        $meta = new Meta();
        $meta->page = 'module-gallerync-image';
        $meta->add();

and this to the uninstall() function of my module:

        Db::getInstance()->Execute(
            'DELETE FROM `'._DB_PREFIX_.'meta`
            WHERE `page` = "module-gallerync-gallery" OR `page` = "module-gallerync-image"'
        );

This added "module-gallerync-gallery" and "module-gallerync-image" to the list of layouts. Change these values with the folder name of your module and the controller name.

  • Like 1
Link to comment
Share on other sites

Hello and thank you very much reply.

 

Im sorry for the late response but i was working away.

As i have just a simple own created page and not a complete module i really don't know exactly where to putt this code.As i explained before i want my page to show up in Themes > Edit: default-bootstrap > Theme display columns left or right. 

if you would have a better explanation for me would be grateful appreciated

 

 best regards

 

 

I was just working on this same issue yesterday. :)

 

I ended up adding the following to the install() function of my module:

        $meta = new Meta();
        $meta->page = 'module-gallerync-gallery';
        $meta->add();

        $meta = new Meta();
        $meta->page = 'module-gallerync-image';
        $meta->add();

and this to the uninstall() function of my module:

        Db::getInstance()->Execute(
            'DELETE FROM `'._DB_PREFIX_.'meta`
            WHERE `page` = "module-gallerync-gallery" OR `page` = "module-gallerync-image"'
        );

This added "module-gallerync-gallery" and "module-gallerync-image" to the list of layouts. Change these values with the folder name of your module and the controller name.

Link to comment
Share on other sites

Have you tried going to Preferences > SEO & URLs, clicking the "Add a new page" button, then looking for your controller in the "Page" dropdown? If it's there, you can add the page there. If not, you can try manually adding it to the ps_meta and ps_meta_lang tables. If that doesn't work, then I guess you'll have to write a module around your controller.

  • Like 1
Link to comment
Share on other sites

 

Just use this code:

{capture name=path}

here's your breadcrumbs

{/capture}

 

Krystian

Awesome i will try this too. Thank you!

 

now i ran in another problem. I created the non cms page https://www.eastcoastpuncturesafe.com/unit-calculator.

since i have this page running, I have on the index page 4 products in a row with slider left but there should be only 3. 

any help with this would be appreciated. 

Edited by prcwest (see edit history)
Link to comment
Share on other sites

  • 6 months later...

Have you tried going to Preferences > SEO & URLs, clicking the "Add a new page" button, then looking for your controller in the "Page" dropdown? If it's there, you can add the page there. If not, you can try manually adding it to the ps_meta and ps_meta_lang tables. If that doesn't work, then I guess you'll have to write a module around your controller

 

This method works well. Thank you sooo much Rocky.

  • Like 1
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...