Recent content by alexAlToader

  1. A

    XF 2.2 Nodes - plain vs flattened

    Hi, I dont understand this phrase from the docs: GET nodes/flattened Gets a flattened node tree. Traversing this will return a list of nodes in the expected order. Can someone please explain the difference between plain ian d flattened please? I think this is in nodes and a few other places...
  2. A

    XF 2.2 API Permissions on navigation?

    Hi, I am trying to make an API endpoint to get the navigation. I need to get the active links for which the user has permissions (by his token) Now... in admin, each link has his own "Display condition" But we also have XF permissions which apply to.. nodes My first question is to what else...
  3. A

    XF 2.1 Widget Display Condition

    Hi @Brogan - do we have docs where we can see the available conditions? Or this is pure XF code? Where can we see this code then? Like what objects are available under the $context ? This condition $xf.visitor.user_id means that if the visitor has an user_id it means he is logged I guess.
  4. A

    XF 2.2 How to add a new User state?

    Hi, I need to add a new user_state as we are having a 2 steps registration. We have confirm_email, then we added account_incomplete, then valid. Q1 - Is there an easy way to do this? I saw the advanceState() so it looks like the answer is no. In this case we are we are just saving the new...
  5. A

    XF 2.2 How to commit DB changes for addons?

    Ok so I created the addon, committed in git, a team member pulled the code. What does he need to do to make it work pls? How does he install it?
  6. A

    XF 2.2 How to commit DB changes for addons?

    I am talking about the addon itself - nothing else. It seems you say there is a way to transfer the addon completely from one developer to another through git commit? The content of the xf_addon is not required to make it run?
  7. A

    XF 2.2 How to commit DB changes for addons?

    Thanks @mattrogowski. Not the answer I was hoping for but many thanks for clarifying this.
  8. A

    XF 2.2 How to commit DB changes for addons?

    I did that. I ran the php cmd.php xf-addon:create and added them in the Development section. What another team member needs to do to make it work - this is the question pls? He pulled the addon PHP code from Git but the content of the addons table - how do team members share that? We just send...
  9. A

    XF 2.2 How to commit DB changes for addons?

    Hi, I created an addon on my local env, I committed the code but for my colleague the addon is not called. I think it has to do with the fact that I have saved stuff regarding the addon in the db? How do I commit this pls? Laravel has migrations and seeders.. anything similar for addons in...
  10. A

    XF 2.2 parameterBag vs filters ?

    Hi, Cant find docs on parameterBag vs filters? In my Api I can find the variables only with filters. When should filters be used and when parameterBag ? Ceers!
  11. A

    XF 2.2 How to set multiple route Actions in the same Controller?

    Thanks @Kirby it works. So the docs at https://xenforo.com/docs/dev/routing-basics/#controller-actions Should be something like this: When adding a route in the Admin -> Development -> Routes Route Prefix - is the visible URL part of the route Sub-name - not sure (no docs) - maybe still...
  12. A

    XF 2.2 How to set multiple route Actions in the same Controller?

    The xenforo code: then the Laravel code: and the route definition https://www.awesomescreenshot.com/image/16510192?key=e7a4e2b78843a9404c5a2919862970c4 Thanks for looking into this
  13. A

    XF 2.2 How to set multiple route Actions in the same Controller?

    Ok I see so I could use that endpoint instead of creating a new endpoint - which I was trying to do. However - how can I solve the action issue pls? It is something which I need to clarify. As I said - in that controller, the register -> actionPost works but the register/confirm ->...
  14. A

    XF 2.2 How to set multiple route Actions in the same Controller?

    So Should map to But I am getting: What am I doing wrong pls?
Top Bottom