This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

salman24658
salman24658

How to add a new page in OctoberCMS with only FTP access?

I'm not familiar with OctoberCMS at all (more of a WordPress guy). The previous developer who made this site is absconding now and the backend login details have vanished along with him.

So, how can I add a new page to the site with only FTP access? I also need to modify the top navigation menu to include this new page.

Any help will be much appreciated.

Thanks

ndcisiv
ndcisiv

I suppose you could go into your document root, into the themes folder, then into the active theme folder your site is using. From there, you really need to figure out how the theme was designed. Personally, my navigation is handled in a partial so for me I would look into my partials folder for my nav.htm file and edit it accordingly.

As for adding a new page, it would go into the pages directory inside your themes.

If you are not using the backend you will need to make sure your page has everything in it that it needs, for reference you can see here on how that should look.

alxy
alxy

If you are able to access the php files, I do recommend to create a new backend user to gain access to the backend. You just need to create a php file somewhere and call it, or put the script to create the user directly into your index.php or in any plugins boot() method.

salman24658
salman24658

Hi alxy, I have access to all the files. How do I create a new user? Also, I found out the backend url and the two usernames which are already made by the previous developer. One of them is tagged as a superuser.

Meanwhile, I'll try and follow ndcisiv's suggestion.

alxy
alxy

Hi, I cannot provide the entire steps, but it should work somehow like this:

\Backend\Models\User::create([
     'email' => 'your@email.com',
     'login' => 'username',
     'password' => 'foobar123',
     'password_confirmation' => 'foobar123',
     'is_superuser' => true
]);

I would recommend to put this in a plugins boot() method. If it doesnt exist, create it.

1-5 of 5

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.