extension blog page in block builder

ThemeBurn SupportForumsOpenCart ThemesPavilion OpenCart Themeextension blog page in block builder

This topic has been marked as not resolved.

Hello, i’m installing my previous blog extension to have multilingual seo url and import my old posts..

everything is ok, i can use the block builder but just i can’t use the system blocks for the intro..

this extension creates a blog layout, so i selected the system/blog in the intro block builder but adding title and breadcrumps

i tried editing the tpl and adding
slotStart(‘blog/blog.breadcrumbs’); ?>
….
slotStop(); ?>

but of course i got

Fatal error: Call to a member function slotStart() on a non-object

i think i should declare this new layout somewhere ? is it complicated or i could do it ? where ?

thanks for your help !

January 29, 2015 at 2:14 pm #37391

Hi,

1) The easiest thing to do here is to use some simple page as a pattern. Information template (catalog/view/theme/pavilion/template/information/information.tpl) would do the job perfectly.

2) For each of the slots (Breadcrumbs, Page title, Page content) use the content from the original blog page template. Breadcrumbs and Page title code should be the same everywhere. There only thing that is different would be the Page Content slot contents.

3) Change the route for each of the three slots with the route of your blog extension, e.g:

<?php $tbData->slotStart('blog/blog.page_title'); ?>

4) Create a new layout for your blog page from Admin > System > Design > Layouts using the extension route.

5) If you have more than one template (articles listing, blog categories etc), you will need to do the above steps again.

BR,
ThemeBurn team

February 2, 2015 at 11:55 am #37563
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.