Jump to content
  • 0
Sign in to follow this  
timo0o

Flux CP: CMS Problems (Adding new Pages)

Question

Hi there.

I want to add some Pages to my website (FluxCP).

The Pages-Site is Showing up and I can Add a new page:

 

AddNew.thumb.JPG.4d8893dfa4878616c9e91042009eacea.JPG

 

When I click "Add" I've got the message that the page was successfully added, but it's not showing up and was not created as you can see here:

Added.thumb.JPG.93bddfd0803d056dbb37dfab73f46608.JPG

 

And when I now want to add a page manually (for example add the rules.php to the "pages" folder), i can open it with

....its even showing up with the content, but only in the left upper of the site and not in the content field:

 

image.thumb.png.9316060b17a8b5b157d1c8b98d333775.png

 

the rules.php looks like the other php-site files:

 

<?php
if (!defined('FLUX_ROOT')) exit;
?>
<h2>TEST RULES</h2>
Hi!

I'm using the "hurtfreev2" theme and the fluxcp with build-in cms addon etc. from here: https://github.com/rathena/FluxCP/

But the problem is also there with the default theme!!!

 

Whats wrong with my fluxCP and how can I fix this?

 

Thank you 🙂

Edited by timo0o

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

FluxCP needs a page in both modules\page\index.php and themes\<theme name>\page\index.php

You need to do it for every theme that can be used. You can also put it in the add-ons folder which bypasses this I believe.

Edited by bWolfie

Share this post


Link to post
Share on other sites
  • 0
4 hours ago, bWolfie said:

FluxCP needs a page in both modules\page\index.php and themes\<theme name>\page\index.php

You need to do it for every theme that can be used. You can also put it in the add-ons folder which bypasses this I believe.

Hey bWolfie,

thanks for your answer. But that dosen't resolve the Problem.

Even when I add the php-files to both folder the page is showing up as the screenshot in my first post shows. 😞

 

 

EDIT: Ah! I've done a mistake..!

Here's the solution!!!


1. Add index.php file to the /fluxcp/modules/<pagename>/index.php with the code:

<?php
if (!defined('FLUX_ROOT')) exit;
?>

2. Add the index.php file to the /fluxcp/themes/<themename>/<pagename>/ folder and add your content:

<h2>TEST RULES</h2>
Hi!

3. Now if you want to add the rules like me, you have to name the folder "Rules" for example.

So the index.php's are in: /fluxcp/modules/rules/index.php and /fluxcp/themes/<themename>/rules/ index.php

 

4. The Page can now be opened with the URL: https://myro.net/?module=rules

>>>> If you name the folder something other (exp. "Download"), then you can open the page with /?module=download instead of "rules".

>>>> If you rename the php file or add some others (it must not be the "index.php and can be named as you want) you need to add the &action=<phpfilename> to the URL

Example: PHP Namefile in the folders (test123.php in both folders as discribed in 1 and 2), then the URL must be https://myro.net/?module=rules&action=test123

 

That's easy if you know what to do.

 

THANK YOU!!!!!

Edited by timo0o

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.