Your selection

You do not have any extensions in your selection yet.

Rating

  • Currently 5/5 Stars.

Share

Stats

  • 3236 views
  • 1913 downloads

Zikula / Plugins

Many to many relation ship for pagemaster 1.1

Extension type: Plugin
Extension originally created by mumuri on Apr 05, 2009

Description
This plugin is a workaround to handle many-to-many relationship in pagemaster.

Requirement

It's not possible at the moment to create automatic many-to-many relationship with pagemaster, so first you will have to create 1 more pubtype to link 2 existing pubtype.

See schema for details

- Book is the main pubtype

- Author is an external pubtype

- LinkBookAuthor is the pubtype which link "Book" and "author"

LinkBookAuthor have only 2 "publication" fields (one for the "book", the other for the "author")

Sample use

With the above sample string tid_link id of the linked "type of publication"

 * @param       string    tid_link    id of the linked "type of publication"
 * @param        string    tid_link    id of the linked "type of publication"
 * @param         string    tid_pub        id of the pub "type of publication"
 * @param         string    fid_join    field of the linked table to join the linked and external table
 * @param         string    fid_look    field of the linked table to join the linked and current table
 * @param         string    fid_look_value    value of fid look


<!--[ getmanytomanypubs tid_link=9 tid_pub=3 fid_join=author fid_look=book fid_look_value=$core_pid assign=items ]-->
<pre>
<!--[ $items|@print_r ]-->
</pre>

Notes : in order to improve perfomances, you should add indexes on joined field
see http://code.zikula.org/pagemaster/ticket/100#comment:3 for details
Screenshots


TargetGroup
All
Status
Normal

Many to many relation ship for pagemaster 1.1

Version created by mumuri on Sep 27, 2009
Core support
(not supported)
(not supported)
(not supported)
(not supported)
Changelog
broken link
Status
Normal
Dependencies
PageMaster (Required, Versions: all )

Comments

Write us your opinion about Many to many relation ship for pagemaster. Bug reports and feature request should be submitted at the project's tracker though.

 Feed for the comments to Many to many relation ship for pagemaster

Comment by:
mumuri's Avatar
mumuri
27 Sep 2009 - 04:39AM
[Version: 1.1]
direct download link for manytomany
http://code.zikula.org/pagemaster/ticket/109

Note

Only registered users are allowed to add reviews.
Register an account or Log in.

Reviews

You tried Many to many relation ship for pagemaster out or are using it? Share your experience and create a review about Many to many relation ship for pagemaster.

Note

Only registered users are allowed to add reviews.
Register an account or Log in.

History

This graph shows how views and downloads developed. It also contains several events in form of vertical bars. Thereby are local events, as a new version or a comment, and global events, like for example new core releases or other appointments.

Powered by ModuleStudio 0.4.10