SwissUpLabs Logo

AskIt Use Cases


How to place discussion block on CMS page

CMS Discussion

Please go to Admin > CMS > Pages. After you configured the Page information tab, follow next steps:

  1. At Information tab select Content fieldset.
  2. Press Insert Widget button.
  3. Select Recently Askit discussion from drop down list. Widget
  4. Click on Insert Widget.
  5. Click Save Page at the upper right corner of the page.

Widget

You will have Item Type - Page in Admin > Templates Master > Askit Questions and the name of your CMS page in Item (i.e. About Us).

How to place discussion block on categories pages

Category

  • Please go to Admin > CMS and create static block. Then we recommend to place Askit discussion widget into the CMS static block.

    Widget

  • For example we can name it “categoriesdiscussion”. After that please go to Admin > Catalog > Manage Categories.
  • Click on Display Settings tab and in the CMS Block field select static block with categories, that you have created before.

    Widget

Using code for changing location of discussion block with layout XML file

In order to change, please connect to FTP server and find Magento files. Then follow the app/design/frontend/base/default/layout/tm/askit.xml. Open file to be edited.Search <catalog_product_view> branch and make changes in reference name.

  • One way is for default Magento layout:

     <reference name="product.info.additional">
        <block type="askit/discussion" name="askit" template="tm/askit/empty.phtml" before="-" >
            <action method="setTemplate" ifconfig="askit/general/productBlockView">
                <template>tm/askit/list.phtml</template>
            </action>
        </block>
    </reference>
    
  • Other way is for product tabs:

    <reference name="product.info.tabs">
        <action method="addTab" translate="title" module="askit" ifconfig="askit/general/enabled">
            <alias>askit_tabbed</alias>
            <title>Questions</title>
            <block>askit/list</block>
            <template>tm/askit/list.phtml</template>
        </action>
    </reference>
    

You can also check:

Edit this Page