ForestForTrees
Well-known member
Hello,
I've done a little modification on my test forum that seems to be working, and I'd love to get some feedback to see if there might be some unintended consequences from it.
Basically, I added a pair of extra columns to a table provided by the XenTag Addon. These two columns store a link and some anchor text for each tag. These fields are accessed via the following XF Template code:
The end result looks something like this:
From my perspective, the code works great. It's super simple, which I really like, and it allows me to add links to wiki pages from our tag pages - something that I've wanted for a while. I just wanted to get feedback from some more experienced developers about whether there might be some unintended consequences to making this change.
I'm aware of some serious shortcomings of this approach. Most notably, there is no way to add either the link or the link_text from within the XF software - I'll have to access MySQL some other way. I don't mind this, though, and would probably put all of the links in in a half hour using phpMyAdmin, so I'm not looking for feedback on that.
Basically, the code is running on my test forum and does exactly what I want it to. I'm just wondering if there is a serious problem that I haven't thought of. My gut says that if I am altering tables directly, that is something I should do only very carefully.
I've done a little modification on my test forum that seems to be working, and I'd love to get some feedback to see if there might be some unintended consequences from it.
Basically, I added a pair of extra columns to a table provided by the XenTag Addon. These two columns store a link and some anchor text for each tag. These fields are accessed via the following XF Template code:
Code:
<xen:if is="{$tag.link} AND {$tag.link_text}">
<p>For more information, visit the following wiki page: <a href="{$tag.link}">{$tag.link_text}</a></p>
</xen:if>
From my perspective, the code works great. It's super simple, which I really like, and it allows me to add links to wiki pages from our tag pages - something that I've wanted for a while. I just wanted to get feedback from some more experienced developers about whether there might be some unintended consequences to making this change.
I'm aware of some serious shortcomings of this approach. Most notably, there is no way to add either the link or the link_text from within the XF software - I'll have to access MySQL some other way. I don't mind this, though, and would probably put all of the links in in a half hour using phpMyAdmin, so I'm not looking for feedback on that.
Basically, the code is running on my test forum and does exactly what I want it to. I'm just wondering if there is a serious problem that I haven't thought of. My gut says that if I am altering tables directly, that is something I should do only very carefully.
Last edited: