XF 2.0 How can I create a new add-on with xenForo 2.0

SyTry

Well-known member
Hi, I read the following documentation :
And on this part :
I do not know how to start.
The first thing we need to do is create the add-on, for this we need to open a command prompt / shell / terminal window, change the directory to your XF installation root (where cmd.php is located)

Where is the command prompt / shell / terminal window in xenForo 2 ? Thank you for your future answers even though the question may seem silly.
 
Do you have to use the command line to create addons in XF2 now?
Seems a little absurd.
IMHO, it seems absurd not to use it. ;)

But, you don't have to. Just create the directory in /src/addons/ and place a valid addon.json inside.

Then you should be able to install the new blank add-on in your backend.
 
If you are using xampp, click on the Shell button.

1607793105738.webp

Then cd to the directory where XF is installed - in my case it's htdocs/xf.

1607793160399.webp
 
Thank you. That worked. Just a confirmation please, if I want to only create template modifications with the add-on, I can skip all the steps after "Create the add-on" right? For example, "Creating the Setup class" and onwards?
 
Yep, you don't need a setup class for template modifications only. You may want to reference the development tools section for other command line commands for building and creating new versions of your add on and the addon structure section for ensuring your addon.json is correct.
 
Back
Top Bottom