-
AuthorPosts
-
September 19, 2007 at 9:15 am #122785
When editing articles in the front end, the editor and the right column collides. How can this be fixed?
September 20, 2007 at 2:09 pm #229726Hi, if you edit the index.php file and wrap the definition of the right column into following code it should do the trick.
<?php if ($this->countModules(‘right’) && $_REQUEST[‘task’] != ‘edit’) { ?>
<!– BEGIN: RIGHT COLUMN –>
<!– END: RIGHT COLUMN –>
<?php } ?>Hope this helps
September 20, 2007 at 2:36 pm #229728I don’t quite understand if I should delete what is there, or combine the code. And how do I combine them?
Now I have:
<?php if ($ja_right) { ?>
<!– BEGIN: RIGHT COLUMN –>
<div id=”ja-col2″>
<div class=”ja-innerpad”>
<?php echo mosLoadModules ( ‘right’,-2 );?>
</div>
</div><br />
<!– END: RIGHT COLUMN –>
<?php } ?>So what exactly shoulc be there instead?
If I delete this, and add your code, the site doesn’t work properly, and says:
Fatal error: Using $this when not in object context in /bla bla bla/templates/ja_mageia/index.php on line 209ErikThorsen FriendErikThorsen
- Join date:
- December 2005
- Posts:
- 1098
- Downloads:
- 0
- Uploads:
- 7
- Thanks:
- 22
- Thanked:
- 10 times in 1 posts
September 21, 2007 at 10:03 pm #229797You can go to mambots and edit the mambot for your html editor ( default is tinymce ) In the parameters in the settings of this mambot you can choose the width of the editor. ( for example 500 pixels wide. ) Set this to perhaps 400 or try a number to see how big it can be. 🙂
October 2, 2007 at 2:30 pm #230354This code should replace the one from your post
<?php if ($ja_right && $_REQUEST[‘task’] != ‘edit’) { ?>
<!– BEGIN: RIGHT COLUMN –>
<div id=”ja-col2″>
<div class=”ja-innerpad”>
<?php echo mosLoadModules ( ‘right’,-2 );?>
</div>
</div><br />
<!– END: RIGHT COLUMN –>
<?php } ?>October 2, 2007 at 3:00 pm #230357Thank you very much. Is there any way to do the same if the ‘task’ is ‘new’ as well?
(I guess I could just choose to not show the right modules when being on that menu item, but this solution seems a lot better.)
November 3, 2007 at 1:01 pm #232077I tried this code on JA Rochea, and when using “<?php if ($ja_right && $_REQUEST[‘task’] != ‘edit’) { ?>” and being logged in to the front end, I get the following message:
<blockquote>Notice: Undefined index: task in /home/web28764/domains/djurrattsalliansen.se/public_html/templates/ja_rochea/index.php on line 267</blockquote>
When using the “<?php if ($this->countModules(‘right’) && $_REQUEST[‘task’] != ‘edit’) { ?>” I get the following:
<blockquote>Fatal error: Using $this when not in object context in /home/web28764/domains/djurrattsalliansen.se/public_html/templates/ja_rochea/index.php on line 267</blockquote>
It would be really good to be able to edit articles in the front end, so how can I fix this?
November 3, 2007 at 1:13 pm #232080<em>@ErikThorsen 28036 wrote:</em><blockquote>You can go to mambots and edit the mambot for your html editor ( default is tinymce ) In the parameters in the settings of this mambot you can choose the width of the editor. ( for example 500 pixels wide. ) Set this to perhaps 400 or try a number to see how big it can be. :-)</blockquote>
I use JCE Editor and it doesn’t work like that, I think it’s 585 pixels wide, and only the white field where I write text changes if I change width. Other editors often work in the same way – the tools field in the top of the editors are in a width that often can’t be changed properly.
ddrinkal Friendddrinkal
- Join date:
- May 2007
- Posts:
- 44
- Downloads:
- 0
- Uploads:
- 0
- Thanks:
- 4
- Thanked:
- 7 times in 1 posts
November 8, 2007 at 1:16 am #232453I have had the editor problem on a few sites and my solution was to edit the button layout at the top of the editor which was causeing the minimum width to be too wide for the template … I deleted a few rarely used icons and made it 5 shorter rows of buttons … that worked for me
-
AuthorPosts
This topic contains 9 replies, has 4 voices, and was last updated by ddrinkal 17 years ago.
We moved to new unified forum. Please post all new support queries in our New Forum