Jump to content
Sign in to follow this  
roback

Define MainPage w/ TinyMCE addition

Recommended Posts

Okay, I installed the Define MainPage contrib just fine and in the admin it brings up the text box editor. As it should. But as my client knows nothing of HTML, I decided it would be easiest to offer them the TinyMCE WYSIWYG editor. I follow the instructions and when I go back to the admin, it gives me the following error:

 

TEXT_FILE_DOES_NOT_EXIST

 

I went over my steps to ensure it was done correctly and I searched several places for anything that might be causing this and have returned nothing.

 

So if anyone has any idea why this might be doing this please let me know.

 

Thanks

 

Rob

Share this post


Link to post
Share on other sites

I figured it out... the file it was looking for was includes/languages/YOURLANG/mainpage.php, but the file in the package is define_mainpage.php and in the original Define Mainpage you update the catalog/includes/filenames.php to look for define_mainpage.php.

 

So you have to correct it so that everything is looking for the same file and that that file is named correctly.

 

Who would I notify to have this updated on the contrib page?

Share this post


Link to post
Share on other sites
I figured it out... the file it was looking for was includes/languages/YOURLANG/mainpage.php, but the file in the package is define_mainpage.php and in the original Define Mainpage you update the catalog/includes/filenames.php to look for define_mainpage.php.

 

So you have to correct it so that everything is looking for the same file and that that file is named correctly.

 

Who would I notify to have this updated on the contrib page?

 

 

I had the same problem but I fixed it by opening define_mainpage.php and changing all instances of DEFINE_MAINPAGE to DEFINE_MAINPAGE0 and saved the file as define_mainpage0.php. Also had to change the line that reads

$HTTP_GET_VARS['filename'] = 'mainpage.php';

to $HTTP_GET_VARS['filename'] = FILENAME_DEFINE_MAINPAGE0;

 

Then upload to server. It shows up in the admin as rich text editor. So I did a save as for the others (DEFINE_MAINPAGE1 & 2) following the same steps and uploaded it so they all have the rich text editor function now.

 

Hope that helps you.

Share this post


Link to post
Share on other sites

well, i fixed it in a jiff by just changing a singe line in the new define_mainpage.php you upload:

 

from

$HTTP_GET_VARS['filename'] = 'mainpage.php';

to

$HTTP_GET_VARS['filename'] = 'define_mainpage.php';

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×