xF1 Add extra fields to any content using separate table

  • Downloading from our site will require you to have a paid membership. Upgrade to a Premium Membership today!

    Dont forget read our Rules! Also anyone caught Sharing this content will be banned. By using this site you are agreeing to our rules so read them. Saying I did not know is simply not an excuse! You have been warned.

Radio

    ven0m

    Administrator
    Staff member
    Administrator
    Moderator
    Platinum
    xenForo 2.x.x
    xenForo 1.x.x
    Contributor
    vBulletin All Access Pass
    The Chest
    Verified
    Ultra Platinum VIP
    Platinum VIP
    Gold VIP
    Silver VIP
    Premium
    Member
    Jul 17, 2005
    20,503
    7,742
    321
    localhost
    Heisenberg submitted a new resource:

    - Extending DataWriter and Model to work with joined table.

    I would like to share my experience of adding extra fields to any built-in content. Let's consider the wiki addon. Its articles and comments are extended posts in some pre defined node. So there is a following problem: we need to generate prepared version of post with added table of contents and autolinking since onfly processing of that would kill performance.

    We need extra field message_prepared for that.
    There are 2 ways to add it:
    1. Alter xf_post table
    2. Join another table...

     
    Last edited: