The Joomla! Forum ™





Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 6 posts ] 
Author Message
PostPosted: Mon Jun 18, 2007 8:22 am 
Joomla! Fledgling
Joomla! Fledgling
Offline

Joined: Mon Jun 18, 2007 8:19 am
Posts: 3
Hello everyone,

I am trying to link to another article from while editing with TinyMCE (as JCE does not work with 1.5).

How do you simply link to another article that is not bound to a menu item? This should actually be a very common task, isn´t it?

Thanks for you help!

Christoph


Top
 Profile  
 
PostPosted: Mon Jun 18, 2007 3:04 pm 
Joomla! Intern
Joomla! Intern
Offline

Joined: Thu Dec 07, 2006 10:17 pm
Posts: 95
I agree this is a very fundemental need? :o


Top
 Profile  
 
PostPosted: Mon Jun 18, 2007 3:33 pm 
Joomla! Intern
Joomla! Intern
Offline

Joined: Thu Dec 07, 2006 10:17 pm
Posts: 95
http://www.cellardoor.za.net/index.php?option=com_joomlaboard&Itemid=&func=view&catid=7&id=4995#4995

seems he is on the job if you read above...worth waiting for, best thought editor around!


Top
 Profile  
 
PostPosted: Tue Jun 19, 2007 4:46 am 
Joomla! Fledgling
Joomla! Fledgling
Offline

Joined: Mon Jun 18, 2007 8:19 am
Posts: 3
Thx for the link! Until then - how do you use Joomla in a good way? I cannot imaging that such a good piece of software is released without such a basic function.


Top
 Profile  
 
PostPosted: Tue Jun 19, 2007 4:24 pm 
Joomla! Intern
Joomla! Intern
Offline

Joined: Thu Dec 07, 2006 10:17 pm
Posts: 95
If i find out I will let you know...i think a major flaw for users! :'(


Top
 Profile  
 
PostPosted: Tue Jun 19, 2007 8:19 pm 
Joomla! Fledgling
Joomla! Fledgling
Offline

Joined: Mon Jun 18, 2007 8:19 am
Posts: 3
I fixed this by myself, but thx for considering this.

TinyMCE has got a function that imports an external javascript-file that is filled with links. I create this javascript-file dynamically by looping through all articles that are published. Put this into your administrator/index.php at about line 50 (after the importPlugin('system'):

Code:
   $txtFileName = "link_list.js";
   $txtFile = fopen($txtFileName, 'w') or die("can't open file");
   $result_mce = mysql_query("select id, title from jos_content where state=1 order by title");
   $num_rows = mysql_num_rows($result_mce);
   fwrite ($txtFile, "var tinyMCELinkList = new Array(");
   if ($num_rows>0)
   {
      $cntr = 0;
      while ($row = mysql_fetch_array($result_mce))
      {
         $cntr++;
         fwrite($txtFile, "\n[\"" . $row['title'] . "\", \"index.php?option=com_content&view=article&id=" . $row['id'] . "\"]");
         if ($cntr<$num_rows)
            fwrite ($txtFile, ", ");
      }
   }
   fwrite ($txtFile, ");");


And add

Code:
external_link_list_url : "link_list.js",


into the plugins/tinymce/index.php-file that configures the editor itself.

Let me know if this helped out at least a bit...

/CChristoph


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 6 posts ] 



Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group