I am using CKEditor but find that it is inserting a paragraph with a blank at the end of any source code I edit causing my layout to get out of whack. Does tinymce also do this? Thanks
This may well be the reason:
http://drupal.ckeditor.com/troubleshooting#12
Ian
From: support-bounces@drupal.org [mailto:support-bounces@drupal.org] On Behalf Of Anthony Sent: 10 April 2012 19:21 To: support@drupal.org Subject: [support] ckeditor
I am using CKEditor but find that it is inserting a paragraph with a blank at the end of any source code I edit causing my layout to get out of whack. Does tinymce also do this? Thanks
HTML purifier module?
On Tue, Apr 10, 2012 at 4:31 PM, Ian Moran ian@community-technology.comwrote:
This may well be the reason:****
http://drupal.ckeditor.com/troubleshooting#12****
Ian****
*From:* support-bounces@drupal.org [mailto:support-bounces@drupal.org] *On Behalf Of *Anthony *Sent:* 10 April 2012 19:21 *To:* support@drupal.org *Subject:* [support] ckeditor****
I am using CKEditor but find that it is inserting a paragraph with a blank at the end of any source code I edit causing my layout to get out of whack. Does tinymce also do this? Thanks
-- ****
*Anthony Stefan Maciejowski*****
-- [ Drupal support list | http://lists.drupal.org/ ]
Sorry but don't have that one.
On Tue, Apr 10, 2012 at 4:37 PM, Anthony tony@tony-mac.com wrote:
HTML purifier module?
On Tue, Apr 10, 2012 at 4:31 PM, Ian Moran ian@community-technology.comwrote:
This may well be the reason:****
http://drupal.ckeditor.com/troubleshooting#12****
Ian****
*From:* support-bounces@drupal.org [mailto:support-bounces@drupal.org] *On Behalf Of *Anthony *Sent:* 10 April 2012 19:21 *To:* support@drupal.org *Subject:* [support] ckeditor****
I am using CKEditor but find that it is inserting a paragraph with a blank at the end of any source code I edit causing my layout to get out of whack. Does tinymce also do this? Thanks
-- ****
*Anthony Stefan Maciejowski*****
-- [ Drupal support list | http://lists.drupal.org/ ]
--
*Anthony Stefan Maciejowski*
How are you "inserting a paragraph"? From MS Word or by simply typing into the editor and pressing "return" to establish a new paragraph? -K
On Apr 10, 2012, at 16:20 PM, Anthony wrote:
I am using CKEditor but find that it is inserting a paragraph with a blank at the end of any source code I edit causing my layout to get out of whack. Does tinymce also do this? Thanks
-- Anthony Stefan Maciejowski
-- [ Drupal support list | http://lists.drupal.org/ ]
I am changing a block in html source. After the end div tag - after I save - 'something' is inserting a <p> </p> Line. Not always but annoyingly often. I have now disabled the ckeditor and have the html in the block to edit. I have the wysiwyg module enabled. Thanks Tony. tony mac is building web sites.
-----Original Message----- From: Kevin Davison kevin.davison@quevin.com Sender: support-bounces@drupal.org Date: Tue, 10 Apr 2012 17:30:12 To: support@drupal.org Reply-To: support@drupal.org Subject: Re: [support] ckeditor
You might try this: http://www.evernote.com/shard/s9/sh/17c5f660-7c16-46f4-bbc6-f4b3e36e047c/3c0...
And are you using the WYSIWYG module with the CKEditor library and/or the CKEditor module itself?
K
On Apr 10, 2012, at 18:46 PM, Tony MAC wrote:
I am changing a block in html source. After the end div tag - after I save - 'something' is inserting a <p> </p> Line. Not always but annoyingly often. I have now disabled the ckeditor and have the html in the block to edit. I have the wysiwyg module enabled. Thanks Tony. tony mac is building web sites.
-----Original Message----- From: Kevin Davison kevin.davison@quevin.com Sender: support-bounces@drupal.org Date: Tue, 10 Apr 2012 17:30:12 To: support@drupal.org Reply-To: support@drupal.org Subject: Re: [support] ckeditor
-- [ Drupal support list | http://lists.drupal.org/ ]
-- [ Drupal support list | http://lists.drupal.org/ ]
I have navigation Home | News | About Us | Contact | etc. Node menu titles. I need to add a link "Staff" and it should open custom made page http://mysite.com/staff.php
How to do it?
Thanks for any help.
I have done it in the past but I don't remember the details exactly. This is how I remember it vaguely.
1. includes/menu.inc - comment the code and just return TRUE
function menu_path_is_external($path) { /* Updated by BK 12Sep2011 */ // return TRUE; $colonpos = strpos($path, ':'); return $colonpos !== FALSE && !preg_match('![/?#]!', substr($path, 0, $colonpos)) && filter_xss_bad_protocol($path, FALSE) == check_plain($path); }
2. Add the external menu item / link
3. Change the menu.inc code back to where it was earlier.
Hope it helps, sorry if it does not. If time permits I will take a closer look later.
Best, Bala Krishnamurthy eCubeH Research Labs
On Thu, Apr 12, 2012 at 8:53 AM, Afan Pasalic afan@afan.net wrote:
I have navigation Home | News | About Us | Contact | etc. Node menu titles. I need to add a link "Staff" and it should open custom made page http://mysite.com/staff.php
How to do it?
Thanks for any help.
-- [ Drupal support list | http://lists.drupal.org/ ]
This is where I think I picked it from.
http://www.widgetsandburritos.com/drupal-6-menu-relative-paths/
-- Best Regards,* * * Bala Krishnamurthy*
For a Greener Planet --- Switch to Linux & Free Open Source sDevNet Protocol: eCubeH XtsE stream _________________________________________________________________ eCubeH Research Labs* *| Appropriate Technologies for Life Essentials* *G2/258, Gulmohar Colony, Bawadian Kala, Shahapura, Bhopal, MP 462039, India Visit us: sDevNet.org > http://sdevnet.org/
On Thu, Apr 12, 2012 at 9:22 AM, Bala Krishnamurthy bala@ecubeh.com wrote:
I have done it in the past but I don't remember the details exactly. This is how I remember it vaguely.
- includes/menu.inc - comment the code and just return TRUE
function menu_path_is_external($path) { /* Updated by BK 12Sep2011 */ // return TRUE; $colonpos = strpos($path, ':'); return $colonpos !== FALSE && !preg_match('![/?#]!', substr($path, 0, $colonpos)) && filter_xss_bad_protocol($path, FALSE) == check_plain($path); }
Add the external menu item / link
Change the menu.inc code back to where it was earlier.
Hope it helps, sorry if it does not. If time permits I will take a closer look later.
Best, Bala Krishnamurthy eCubeH Research Labs
On Thu, Apr 12, 2012 at 8:53 AM, Afan Pasalic afan@afan.net wrote:
I have navigation Home | News | About Us | Contact | etc. Node menu titles. I need to add a link "Staff" and it should open custom made page http://mysite.com/staff.php
How to do it?
Thanks for any help.
-- [ Drupal support list | http://lists.drupal.org/ ]
To add a menu it em you don't need to do any of this. Rubbish I say. tony mac is building web sites.
-----Original Message----- From: Bala Krishnamurthy bala@ecubeh.com Sender: support-bounces@drupal.org Date: Thu, 12 Apr 2012 09:22:12 To: support@drupal.org Reply-To: support@drupal.org Subject: Re: [support] How to add Link in navigation?
But what do I know?
On Wed, Apr 11, 2012 at 9:18 PM, Tony MAC tony@tony-mac.com wrote:
To add a menu it em you don't need to do any of this. Rubbish I say. tony mac is building web sites.
-----Original Message----- From: Bala Krishnamurthy bala@ecubeh.com Sender: support-bounces@drupal.org Date: Thu, 12 Apr 2012 09:22:12 To: support@drupal.org Reply-To: support@drupal.org Subject: Re: [support] How to add Link in navigation?
-- [ Drupal support list | http://lists.drupal.org/ ]
On Thu, Apr 12, 2012 at 12:18 AM, Tony MAC tony@tony-mac.com wrote:
To add a menu item you don't need to do any of this. Rubbish I say.
Yea, definitely rubbish in the worst way. You admin/structure/menus and choose the add link to the appropriate menu. Use the full URL as Path.
what if you have local relative paths, that need to be accessed by domain Name AND web IP AND intranet IP, AND ..
Not so simple, easy and clean as you make it out to be. I know because I tried it.
-- Best Regards,* * * Bala Krishnamurthy*
On Thu, Apr 12, 2012 at 5:57 PM, Earnie Boyd earnie@users.sourceforge.netwrote:
On Thu, Apr 12, 2012 at 12:18 AM, Tony MAC tony@tony-mac.com wrote:
To add a menu item you don't need to do any of this. Rubbish I say.
Yea, definitely rubbish in the worst way. You admin/structure/menus and choose the add link to the appropriate menu. Use the full URL as Path.
-- Earnie
-- https://sites.google.com/site/earnieboyd
[ Drupal support list | http://lists.drupal.org/ ]
On Thu, Apr 12, 2012 at 8:35 AM, Bala Krishnamurthy bala@ecubeh.com wrote:
what if you have local relative paths, that need to be accessed by domain Name AND web IP AND intranet IP, AND ..
That has nothing to do with adding a menu item and I'm having a difficult time understanding how that relates to Drupal. Give a better example of use.
Not so simple, easy and clean as you make it out to be. I know because I tried it.
If you have a page you want accessed by multiple instances of Drupal simply put the page in the root directory of Drupal. You just need to remember to do it again when you upgrade Drupal.
Phew!
If you don't understand, don't worry about it. Just attend to the guy who asked the question.
-- Best Regards,* * * Bala Krishnamurthy*
On Thu, Apr 12, 2012 at 6:25 PM, Earnie Boyd earnie@users.sourceforge.netwrote:
On Thu, Apr 12, 2012 at 8:35 AM, Bala Krishnamurthy bala@ecubeh.com wrote:
what if you have local relative paths, that need to be accessed by domain Name AND web IP AND intranet IP, AND ..
That has nothing to do with adding a menu item and I'm having a difficult time understanding how that relates to Drupal. Give a better example of use.
Not so simple, easy and clean as you make it out to be. I know because I tried it.
If you have a page you want accessed by multiple instances of Drupal simply put the page in the root directory of Drupal. You just need to remember to do it again when you upgrade Drupal.
-- Earnie
-- https://sites.google.com/site/earnieboyd
[ Drupal support list | http://lists.drupal.org/ ]
On Thu, Apr 12, 2012 at 9:09 AM, Bala Krishnamurthy bala@ecubeh.com wrote:
Phew!
If you don't understand, don't worry about it. Just attend to the guy who asked the question.
Understanding is a goal of communication and getting to a common understanding requires work. Without examples we can not be sure we understand the same. So, if you so choose to not give examples to clarify our understanding it is your choice but you've left many in the dark especially those who find this thread at a later date.
Good luck,
The link I posted early on in the thread describes in some detail the scenario the author was trying to address and the rationale for his hack. No one bothered to read it, I guess.
Here is the problem I was trying to address.
1. Single system running httpd daemon (web server), hosting single drupal site along with multiple non-drupal web apps (many built internally, some external FOSS). With the site as the (single) portal, we needed to provide menu links from within the drupal site to these different non-drupal apps running on the same machine.
Relative paths would be the way to go, but drupal (6.22) does not allow menu links to non-drupal 'nodes'. The author has presented a screenshot of the drupal error when that is tried. Full URLs are ugly, but I would have tried it if it worked. It does not. Why?
2. The drupal site is accessed from many contexts: (a) External: by registered domain name, through public DNS servers translating name to IP (b) External: by IP (c) Internal: LAN: by hostname (this is the way the system, locally running named daemon etc are configured) (d) Internal: by IP (the 192.168 series) (e) Server: localhost (f) Server: 127.0.0.1
and so on and on and on...
A single Full URL will not work in another context, besides having to deal with the ugliness of changing the entire context.
I looked and I saw the author had already solved the problem with the simple hack allowing non-drupal relative paths in the menu. I am hardly a drupal expert, and if someone has better ideas, I would be thrilled to listen.
This is my last post on the thread unless someone has something useful to add.
*--* Best Regards,* * * Bala Krishnamurthy*
Hey! I read it!
tony mac is building web sites.
-----Original Message----- From: Bala Krishnamurthy bala@ecubeh.com Sender: support-bounces@drupal.org Date: Fri, 13 Apr 2012 08:33:37 To: support@drupal.org Reply-To: support@drupal.org Subject: Re: [support] How to add Link in navigation?
On Thu, Apr 12, 2012 at 11:03 PM, Bala Krishnamurthy bala@ecubeh.com wrote:
The link I posted early on in the thread describes in some detail the scenario the author was trying to address and the rationale for his hack. No one bothered to read it, I guess.
Here is the problem I was trying to address.
- Single system running httpd daemon (web server), hosting single drupal
site along with multiple non-drupal web apps (many built internally, some external FOSS). With the site as the (single) portal, we needed to provide menu links from within the drupal site to these different non-drupal apps running on the same machine.
Relative paths would be the way to go, but drupal (6.22) does not allow menu links to non-drupal 'nodes'. The author has presented a screenshot of the drupal error when that is tried. Full URLs are ugly, but I would have tried it if it worked. It does not. Why?
I don't know why it didn't work for you.
- The drupal site is accessed from many contexts:
(a) External: by registered domain name, through public DNS servers translating name to IP (b) External: by IP (c) Internal: LAN: by hostname (this is the way the system, locally running named daemon etc are configured) (d) Internal: by IP (the 192.168 series) (e) Server: localhost (f) Server: 127.0.0.1
and so on and on and on...
I see and understand. I would have just created a block with contents like the following:
<ul class="menu"><li class="leaf first"><a href="/file1.php">File 1</a> </li><li class="leaf"><a href="/file2.php">File 2</a> </li><li class="leaf last"><a href="/fileN.php">File N</a> </li></ul>
A single Full URL will not work in another context, besides having to deal with the ugliness of changing the entire context.
I looked and I saw the author had already solved the problem with the simple hack allowing non-drupal relative paths in the menu. I am hardly a drupal expert, and if someone has better ideas, I would be thrilled to listen.
This is my last post on the thread unless someone has something useful to add.
Was the above useful enough. There are other class items you can use, just review the page source and take a look at the display of the menu items to find what they are or take a look at the system-menus.css file.
Hold on guys. There is no need to fight :-)
Let me try to explain better, exact.
The website I was talking about is http://kesarandcosolicitors.co.uk/. If you click on Staff link on the top navigation you will see the current page (node/4). I plan to make employees as members and the using View create this page better and easier to maintain. But, since I'm novice in Drupal, it will take some time. The owner doesn't like the way it looks like right now and as a temporary solution I made http://kesarandcosolicitors.co.uk/staff.php page (copied Source code and add php/mysql code, doesn't have anything with Drupal) with more/less expander using CSS.
My question is how to add a link "Staff" (instead existing Staff) in top navigation and link it to the new page?
Thanks for any help.
On 4/13/2012 8:21 AM, Earnie Boyd wrote:
On Thu, Apr 12, 2012 at 11:03 PM, Bala Krishnamurthybala@ecubeh.com wrote:
The link I posted early on in the thread describes in some detail the scenario the author was trying to address and the rationale for his hack. No one bothered to read it, I guess.
Here is the problem I was trying to address.
- Single system running httpd daemon (web server), hosting single drupal
site along with multiple non-drupal web apps (many built internally, some external FOSS). With the site as the (single) portal, we needed to provide menu links from within the drupal site to these different non-drupal apps running on the same machine.
Relative paths would be the way to go, but drupal (6.22) does not allow menu links to non-drupal 'nodes'. The author has presented a screenshot of the drupal error when that is tried. Full URLs are ugly, but I would have tried it if it worked. It does not. Why?
I don't know why it didn't work for you.
- The drupal site is accessed from many contexts:
(a) External: by registered domain name, through public DNS servers translating name to IP (b) External: by IP (c) Internal: LAN: by hostname (this is the way the system, locally running named daemon etc are configured) (d) Internal: by IP (the 192.168 series) (e) Server: localhost (f) Server: 127.0.0.1
and so on and on and on...
I see and understand. I would have just created a block with contents like the following:
<ul class="menu"><li class="leaf first"><a href="/file1.php">File 1</a> </li><li class="leaf"><a href="/file2.php">File 2</a> </li><li class="leaf last"><a href="/fileN.php">File N</a> </li></ul>
A single Full URL will not work in another context, besides having to deal with the ugliness of changing the entire context.
I looked and I saw the author had already solved the problem with the simple hack allowing non-drupal relative paths in the menu. I am hardly a drupal expert, and if someone has better ideas, I would be thrilled to listen.
This is my last post on the thread unless someone has something useful to add.
Was the above useful enough. There are other class items you can use, just review the page source and take a look at the display of the menu items to find what they are or take a look at the system-menus.css file.
On Fri, Apr 13, 2012 at 11:30 AM, Afan Pasalic afan@afan.net wrote:
Hold on guys. There is no need to fight :-)
No one was fighting.
Let me try to explain better, exact.
The website I was talking about is http://kesarandcosolicitors.co.uk/. If you click on Staff link on the top navigation you will see the current page (node/4). I plan to make employees as members and the using View create this page better and easier to maintain. But, since I'm novice in Drupal, it will take some time. The owner doesn't like the way it looks like right now and as a temporary solution I made http://kesarandcosolicitors.co.uk/staff.php page (copied Source code and add php/mysql code, doesn't have anything with Drupal) with more/less expander using CSS.
My question is how to add a link "Staff" (instead existing Staff) in top navigation and link it to the new page?
Simply use a path alias.
Alias internal node/4 to staff.php.
You could have created a template file for just node 4 but you've got the work done now in staff.php.
I got it! And don't laugh :-)
I did it log time ago and I forgot: the top navigation is actually block in "header" with hardcoded links.
And I wondered why I can't see any menu links in Primary links!!! :-D
Thanks to all.
On 4/13/2012 11:09 AM, Afan Pasalic wrote:
Simply use a path alias.
Alias internal node/4 to staff.php.
can you please explain a little bit more?