Thanks,
I'm Modding a sidebar template from WidgetFramework and I only have access to nodeID and need to create links to the forums, this is gonna help.
Problem remains that it does not create a FURL, it just creates forums/$forumid
But XF rewrites this to the FURL so in the meantime, it's better than nothing...
Is there no way to create a FURL link with inly the nodeid ?
I was confused because the term "FURL" isn't used very often (or at all) in the context of URLs... Unless it's File Uniform Resource Locator but they all start with file:// so I presume it's not that you want...
Do you mean "full" URL?
In that case you want probably Jake's suggestion, with a small change:
I'm inside a loop in a template, and the underlying query does not bring me the forum name, only the nodeid... I thought there might be a way to transform this node/forum ID into a "full friendly url" with some sort of magical trick
No basically as per my post, the only way for it to show the friendly name is if you tell it what the friendly name is. The link builder requires the node ID and the node name. Usually this information is available because you'd pass the entire $forum variable (which contains the name and ID).
If that information isn't available, you can actually type it in yourself manually but it's no longer "dynamic" in the sense that if the node name ever changes, the link you build below will always stay the same. So something like this should work, but it has drawbacks:
Code:
{xen:link 'full:forums', {xen:array 'node_id=2', 'node_title=How are you'}}
Well in fact I believe the solution to my problem is to modify the WidgetTemplate renderer to bring me more info ( the full $forum variable for each $thread, instead of just the $thread.node_id I have access to at the moment. I don't seem to have a $thread.forumname. )