Fork me on GitHub

pagemaster output publication  Bottom

  • i have publication in pagemaster. Section in online store. How to make this publication will be displayed when the user enters the store section, below the list of items.

    Can I get a published articles with a hook, where to read about the creation of hooks and how it works



    Edited by eugeniy on Oct 14, 2010 - 03:21 AM.

    --
    BathRoom- my test workable project
  • Well
    I guess that Hooks are not the solution here because PageMaster doesn't offer hooks in this way, and in Zikula 1.3 the things may be different.

    So, I recommend you to customize the webstore templates to invoke the publication list below the list of items. Something like this:

    Code

    ... list of store items finishes
    <!--[/foreach]-->

    <!--[pnmodfunc modname='PageMaster' func='main' tid=X template='storelist']-->

    Where X is your pubtype ID and also using a custom template (storelist = output/publist_storelist.htm) where you can adapt what to show, etc.

    You can also use a itemsperpage limit, and even a custom filter.
    Greetings

    --
    - Mateo T. -
    Mis principios... son mis fines
  • great idea, thx big thx, i'll try

    where read about hook creation?

    --
    BathRoom- my test workable project
  • Well,
    there are some docs on the Wiki
    but they may get deprecated with Zikula 1.3's Events icon_wink

    IMO would be more hassle to learn Hooks instead the upcoming Events.
    Docs and examples are already available on the Zikula 1.3 CI package
    (/docs/en and /docs/examples/Event* folders)

    Greetings

    --
    - Mateo T. -
    Mis principios... son mis fines
  • Code

    <!--[if $item_cat_id==10036]-->
        <!--[pnmodfunc modname='pagemaster' func='viewpub' tid='1' pid='5' template='my_template']-->
    <!--[/if]-->


    template did not work out, the template is loaded by default
    I tried and and specify the path and put the template in the templates directory of the module and a directory of templates pagemaster

    i try
    template='my_template'
    template='/modules/store/pntemplates/my_template.htm'
    template='/modules/pagemaster/pntemplates/my_template.htm'
    template='/modules/pagemaster/pntemplates/ouput/my_template.htm'



    Edited by eugeniy on Oct 15, 2010 - 06:23 PM.

    --
    BathRoom- my test workable project
  • Be care with the case sensitive,
    'pagemaster' doesn't work with 0.4.2, 'PageMaster' does.

    Try it, also with your folder names.

    --
    - Mateo T. -
    Mis principios... son mis fines
  • Hooks != Events

    Hooks (as they were implemented in the past) are still implemented in 1.3. And still useful.

This list is based on users active over the last 60 minutes.