Resource icon

XF 1 Tip Tutorial Add extra fields to any content using separate table

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
24,438
Points
823

Reputation:

LQD submitted a new resource:

Tutorial Add extra fields to any content using separate table - Add extra fields to any content using separate table

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 social_wiki_post
The first way of course is simpler. But we need prepared...

Read more about this resource...
 
Top