Page 2 of 4
					
				Re: FCKeditorX 1.0 RC1
				Posted: Wed Feb 01, 2006 1:33 pm
				by megabob3
				Patricia wrote:
Bob, I didn't try but did you set anything to use the config rewrite ? and if yes, any hardcoded shtml (as it was the defautl)?
Russ, I can have a look at that later tonight when I'm at home
Cheers
Sincerely i do not understood very well.
"set anything to use the config rewrite"??? No i don't think.
:/
Sorry.
 
			 
			
					
				Re: FCKeditorX 1.0 RC1
				Posted: Wed Feb 01, 2006 2:40 pm
				by alby
				megabob3 wrote:
Patricia wrote:
Bob, I didn't try but did you set anything to use the config rewrite ? and if yes, any hardcoded shtml (as it was the defautl)?
"set anything to use the config rewrite"??? No i don't think.
 
Is clean url, in config.php there is:
$config['assume_mod_rewrite'] = false;
if you have mod_rewrite module of Apache, sets the item to true and with .htaccess (example in doc directory) in root path, you have a "rewrite url": .../index.php?page=3 -> .../home.html
Al
 
			 
			
					
				Re: FCKeditorX 1.0 RC1
				Posted: Wed Feb 01, 2006 2:57 pm
				by megabob3
				alby wrote:
megabob3 wrote:
Patricia wrote:
Bob, I didn't try but did you set anything to use the config rewrite ? and if yes, any hardcoded shtml (as it was the defautl)?
"set anything to use the config rewrite"??? No i don't think.
 
Is clean url, in config.php there is:
$config['assume_mod_rewrite'] = false;
if you have mod_rewrite module of Apache, sets the item to true and with .htaccess (example in doc directory) in root path, you have a "rewrite url": .../index.php?page=3 -> .../home.html
Al
 
ooohhhh   really i never tried mod_rewrite :/
nothing to say
 
			 
			
					
				Re: FCKeditorX 1.0 RC1
				Posted: Wed Feb 01, 2006 3:49 pm
				by melix
				Hi MegaBob,
Is there any chance that FCK generates regular {cms_selflink} tags for internal links instead of  ? This is quite important for future (see 
FR #348)
Thanks 

 
			 
			
					
				Re: FCKeditorX 1.0 RC1
				Posted: Wed Feb 01, 2006 3:58 pm
				by megabob3
				melix wrote:
Hi MegaBob,
Is there any chance that FCK generates regular {cms_selflink} tags for internal links instead of  ? This is quite important for future (see 
FR #348)
Thanks 
 
Tell me if i am wrong.
From CMSMSlink you can choose if use {cms_selflink} tags or  , you have to check the option.
Bye 

 
			 
			
					
				Re: FCKeditorX 1.0 RC1
				Posted: Wed Feb 01, 2006 4:04 pm
				by melix
				Got it ! I had to scroll down in order to find the checkbox :p
Is there any way to make it checked by default ?
			 
			
					
				Re: FCKeditorX 1.0 RC1
				Posted: Wed Feb 01, 2006 4:07 pm
				by megabob3
				melix wrote:
Got it ! I had to scroll down in order to find the checkbox :p
Is there any way to make it checked by default ?
I will ADD a setting into FCKeditorX admin panel

 
			 
			
					
				Re: FCKeditorX 1.0 RC1
				Posted: Wed Feb 01, 2006 4:07 pm
				by melix
				Thanks 

 
			 
			
					
				Re: FCKeditorX 1.0 RC1
				Posted: Wed Feb 01, 2006 4:27 pm
				by Russ
				Patricia wrote:
Bob, I didn't try but did you set anything to use the config rewrite ? and if yes, any hardcoded shtml (as it was the defautl)?
Russ, I can have a look at that later tonight when I'm at home
Cheers
Thanks Patricia, I'll have a look as well, although I could not see anything obvious this morning. Somewhere however it must be setting a default 
I'll post back here if I find anything.
Megabob3, is there anywhere in the code where you set the file extension e.g. to '.shtml' ??
Russ
 
			 
			
					
				Re: FCKeditorX 1.0 RC1
				Posted: Wed Feb 01, 2006 4:56 pm
				by megabob3
				Russ wrote:
Patricia wrote:
Bob, I didn't try but did you set anything to use the config rewrite ? and if yes, any hardcoded shtml (as it was the defautl)?
Russ, I can have a look at that later tonight when I'm at home
Cheers
Thanks Patricia, I'll have a look as well, although I could not see anything obvious this morning. Somewhere however it must be setting a default 
I'll post back here if I find anything.
Megabob3, is there anywhere in the code where you set the file extension e.g. to '.shtml' ??
Russ
 
Me no, but maybe FCKeditor use call other pages with it IFRAMEs.

 
			 
			
					
				Re: FCKeditorX 1.0 RC1
				Posted: Thu Feb 02, 2006 9:47 pm
				by Russ
				Patricia did you have any luck? I can confirm that with Mod ReWrite using the .shtml extension it works but with a .html extension set it does not. It will work with other editors with both extensions?? 
I've had a look through the code, even though I don't understand a lot of it 

, but I can't find the solution. Does anyone else have any idea how to fix this? It's getting a bit urgent for me now.
Russ
 
			 
			
					
				Re: FCKeditorX 1.0 RC1
				Posted: Mon Feb 06, 2006 4:55 am
				by iNSiPiD
				Russ,
What setting do you have for $config['page_extension'] in your config file?
If it is set to HTML then try setting it to nothing: $config['page_extension'] = '';
This solved my rewrite problems.
If that doesn't work then the problem is likely to be your rewrite rules. Paste them here so I can see what you're doing.
			 
			
					
				Re: FCKeditorX 1.0 RC1
				Posted: Mon Feb 06, 2006 10:33 am
				by Russ
				Thank you for the advice, I've been ploughing through FCKeditor stuff trying to find the answer for days now.
I tried changing the line in the config.php as you suggested, but now I get pages without extensions that cannot be found. So I guess it does not work yet. You should note that if I have .shtml in the config.php
Code: Select all
$config['page_extension'] = '.shtml'; 
or
Code: Select all
$config['page_extension'] = '.html';
and in the .htaccess 
Code: Select all
RewriteRule ^(.+)\.shtml$ index.php?page=$1 [QSA]
or
Code: Select all
RewriteRule ^(.+)\.html$ index.php?page=$1 [QSA]
everything works as planned **BUT** when I use the '.html' options above I cannot edit pages with FCKEditor, with the '.shtml' option I can edit pages. In both cases the web site works as expected.
My .htaccess files is as follows (for the .hml option):
Code: Select all
#Config for CMS
RewriteEngine On
Options FollowSymLinks
#Rewrites page.shtml as index.php?page
RewriteBase /
RewriteCond % !-f [NC]
RewriteRule ^(.+)\.html$ index.php?page=$1 [QSA]
# Deny Access to .htaccess
<Files .htaccess>
order allow,deny
deny from all
</Files>
I hope it's me because I've wasted way too much time on this. Thanks for your help iNSiPiD 
Russ
 
			 
			
					
				Re: FCKeditorX 1.0 RC1
				Posted: Mon Feb 06, 2006 4:02 pm
				by Russ
				Thank you very much Patricia 
 
Replacing the line you suggested worked. I now have FCKeditor working with a .html extensions. 
http://www.cms.shoesforindustry.net/index.html
Just so everyone is clear, I now have in this site .htaccess file:  
Code: Select all
#Config for CMS
RewriteEngine On
Options FollowSymLinks
#Rewrites page.html as index.php?page
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f [NC]
RewriteRule ^(.+)\.html$ index.php?page=$1 [QSA]
Hope this helps anyone else who gets stuck with the same problem. 
Many thanks to Insipid and especially Patricia. It was not the first time Patricia has helped me out of a big hole and I expect it will not be the last, thank you. 
Russ
 
			 
			
					
				Re: FCKeditorX 1.0 RC1
				Posted: Mon Feb 06, 2006 4:22 pm
				by Russ
				Megabob, you were telling me how to get the styles drop down list box woking in the FCKeditor....
...About styles drop down, you must put styles into TWO zone.
One is STYLES PANEL of FCKeditorX admin section.
And other to CMSMS CSS styles of pages.
I still can't seem to get this to work (browser: Firefox 1.5 latest on Mac OS X). Let me see if I'm getting this right?
1. I have the following in my FCKeditorX Admin settings for Toolbar:
Code: Select all
FCKConfig.ToolbarSets["Default"] = [
	['FontFormat'],
	['Cut','Copy','Paste','PasteText','PasteWord','-','RemoveFormat','-'],
	['Bold','Italic','-'],
	['OrderedList','UnorderedList','-'],
	['CMSContent','Link','Unlink','-'],
	['Image','Rule','SpecialChar'],
	['Style','-','Source']
] ;
3. I paste the css in my FCKeditorX Admin settings for Styles.
Code: Select all
funkystyle {
border: 1px solid red;
color: blue;
}
3. I have a stylesheet attached to the template which has:
Code: Select all
funkystyle {
border: 1px solid red;
color: blue;
}
4. I update everthing and clear all caches etc. Close browser - restart it.
5. On editing I see the Styles drop down listbox but it has won't drop down, well it does a little bit so I hope the attached image will show it more clearly.
Any ideas,
Russ
[attachment deleted by admin]