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
Watch
GitHub Core
Show your support for Zikula! Sign up at Github account and watch the Core project!
GitHub Modules
- rgasch created topic »Using PageUtil::addVar() to load script code« 11:48 AM
- michiel responded to »password problem« 10:01 AM
- mazdev responded to »Hide "Register new account" and change template to 3 col« 07:50 AM
- mesteele101 created topic »Zikula 1.3.3 - Site Search 1.5.2 - Unable to turn off plug-ins« 07:48 AM
- mesteele101 responded to »ERR (3): E_USER_ERROR: Smarty error: [in pagesvar:pagesitem2en line XXX]…« 25. May
- mazdev responded to »Pages 2.5.0 and updating - Page not found« 25. May
- mesteele101 responded to »Zikula 1.3.3 - Selecting a category in Pages not working« 25. May
Zikula Blog
- Anatomy of Open Source Projects on Mar 07
- Continuous Review on Mar 01
- Not Invented Here on Feb 24
- How to Contribute Your Code at Github on Jan 13
- 10 Steps to Coding-Nirvana: Tips for Successful Module Writing on Nov 12
- Submitting Bug Report Tickets That Get Results on Aug 17
- Cozi Tricks #1: Syntax Highlighting on Aug 07
Login
pagemaster output publication
-
- Rank: Registered User
- Registered: Oct 13, 2010
- Last visit:
- Posts: 5
-
- Rank: Team Member
- Registered: Sep 06, 2006
- Last visit: May 09, 2010
- Posts: 2446
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 -
- Rank: Registered User
- Registered: Oct 13, 2010
- Last visit:
- Posts: 5
great idea, thx big thx, i'll try
where read about hook creation?
--
BathRoom- my test workable project -
- Rank: Team Member
- Registered: Sep 06, 2006
- Last visit: May 09, 2010
- Posts: 2446
Well,
there are some docs on the Wiki
but they may get deprecated with Zikula 1.3's Events
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 -
- Rank: Registered User
- Registered: Oct 13, 2010
- Last visit:
- Posts: 5
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 -
- Rank: Team Member
- Registered: Sep 06, 2006
- Last visit: May 09, 2010
- Posts: 2446
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 -
- Rank: Developer
- Registered: Jun 16, 2003
- Last visit: May 29, 2010
- Posts: 1966
Hooks != Events
Hooks (as they were implemented in the past) are still implemented in 1.3. And still useful.
- Moderated by:
- Support
