Joomla! Discussion Forums



It is currently Thu Nov 26, 2009 4:38 am (All times are UTC )

 





Post new topic Reply to topic  [ 15 posts ] 
Author Message
Posted: Thu Jan 17, 2008 1:23 am 
Joomla! Enthusiast
Joomla! Enthusiast
Offline

Joined: Sun Sep 18, 2005 2:18 am
Posts: 140
Joomla really really needs to have the option of linking to an article without having to first find out what the url is and then manually linking to that url. There should be a list of the articles and perhaps a context search to help find the articles..

:)

_________________
Total Web Presence for Good People doing Good Things > cosmicfantasia.net.au
Alternative Media and Progressive Community > cosmicfantasia.com

If you truly love Nature, you will find beauty everywhere - Vincent Van Gogh


Top
  E-mail  
 
Posted: Thu Jan 17, 2008 12:14 pm 
Joomla! Fledgling
Joomla! Fledgling
Offline

Joined: Sun Nov 11, 2007 8:21 am
Posts: 1
I second this request.

It's a time consuming trying to figure out what the URL is, especially when it's an article which isn't linked to a menu item already... etc.

(If anyone knows how to do this easily, please post it somewhere.)


Top
  E-mail  
 
Posted: Thu Jan 17, 2008 11:50 pm 
Joomla! Enthusiast
Joomla! Enthusiast
Offline

Joined: Sun Sep 18, 2005 2:18 am
Posts: 140
The xhtml suite editor does it but isn't for 1.5 yet. Should be core anyway.

Have heard devs talk about it before for a 1.6 release, but saw this forum and thought to post anyway. Can't hurt.

_________________
Total Web Presence for Good People doing Good Things > cosmicfantasia.net.au
Alternative Media and Progressive Community > cosmicfantasia.com

If you truly love Nature, you will find beauty everywhere - Vincent Van Gogh


Top
  E-mail  
 
Posted: Thu Jan 24, 2008 10:30 pm 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast
Offline

Joined: Sun Aug 21, 2005 11:41 pm
Posts: 131
Location: UK
The core 1.5 already does this now for linking internal articles to a menu.
But I nelieve to do the same witin a page using the editor requires functionality to be built into the editor itself, so not really down to core devs, unless they maintain TinyMCE or another as the default Joomla editor?

It could really do with it for sure.

- Vince

_________________
www.hostbaron.com - low price Joomla starter packages.

www.MySQLbackup.info - Automated MySQL Backup script.


Top
  E-mail  
 
Posted: Mon Jan 28, 2008 4:01 am 
I had the same problem but couldn't find a simple solution to it. So I built a Joomla! extension myself. I don't know if its listed in the extensions area yet, but you can check it out at codes.mtlnews.com.

If you find any bugs or problems, ill be glad to look into it.

Frank


Top
   
 
Posted: Tue Jan 29, 2008 5:33 am 
User avatar
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Fri Nov 09, 2007 3:04 am
Posts: 9
Location: New Zealand
Hi mtlnews,

Will be a great plugin. I did a fresh install onto Jv1.5 and got the following error when clicking on the "Link Article" button below the content editor.  I logged out and back into Administrator.  Any ideas?

Quote:
Fatal error: Class 'JModel' not found in /home/kakapo/public_html/administrator/components/com_linkr/models/articles.php on line 11


Top
   
 
Posted: Tue Jan 29, 2008 9:15 am 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast
Offline

Joined: Sun Aug 21, 2005 11:41 pm
Posts: 131
Location: UK
mtlnews wrote:
I had the same problem but couldn't find a simple solution to it. So I built a Joomla! extension myself. I don't know if its listed in the extensions area yet, but you can check it out at codes.mtlnews.com.
If you find any bugs or problems, ill be glad to look into it.
Frank


Hi Frank,
This looks great. I especially like the preview part when selecting the article:
http://codes.mtlnews.com/images/stories/ss/linkr/4.png

I will definately give this a whirl soon.

- Vince

_________________
www.hostbaron.com - low price Joomla starter packages.

www.MySQLbackup.info - Automated MySQL Backup script.


Top
  E-mail  
 
Posted: Tue Jan 29, 2008 5:57 pm 
Joomla! Fledgling
Joomla! Fledgling
Offline

Joined: Mon Jan 28, 2008 5:58 pm
Posts: 3
mtlnews wrote:
I had the same problem but couldn't find a simple solution to it. So I built a Joomla! extension myself. I don't know if its listed in the extensions area yet, but you can check it out at codes.mtlnews.com.

If you find any bugs or problems, ill be glad to look into it.

Frank


Frank,
This extension works great!  The only problem I've had with it, is it replaces the highlighted text/items instead of making them be the link.  So I hacked at it a bit and changed the way it inserts the link.  If you leave the text field blank, it will put the a tags around the highlighted text.  Quick and Dirty hack, but it works well enough for me, and maybe will give you a good starting point for making this be implemented well.

In the file:  administrator/components/com_linkr/assessts/helper.js , I changed the link function:
Code:
link:function(){
      t=$('linkText');
      u=$('linkURL');
      x=$('target');
      /*changed by ralig */
      if(t.value.length==0){
         var inst = window.parent.tinyMCE.selectedInstance;
         t.value = inst.selection.getSelectedHTML();
      } /*end changed */
      if(t.value.length==0){
         alert(this.missingText);
         t.focus();


Top
  E-mail  
 
Posted: Wed Jan 30, 2008 12:31 am 
User avatar
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Fri Nov 09, 2007 3:04 am
Posts: 9
Location: New Zealand
Hi the mtlnews,

Last error resolved itself. However another crops up when you select an individual article:
Quote:
Fatal error: Class 'JSite' not found in /home/kakapo/public_html/components/com_content/helpers/route.php on line 99


Any ideas?

// ALL SOLVED. WAS USING 1.5RC3, 1.5 STABLE FIXED ALL PROBS.  NICE WORK, GREAT PLUG IN.


You do not have the required permissions to view the files attached to this post.


Last edited by chopstik on Wed Jan 30, 2008 1:20 am, edited 1 time in total.

Top
   
 
Posted: Wed Jan 30, 2008 3:06 am 
Quote:
The only problem I've had with it, is it replaces the highlighted text/items instead of making them be the link.  So I hacked at it a bit and changed the way it inserts the link.  If you leave the text field blank, it will put the a tags around the highlighted text.  Quick and Dirty hack, but it works well enough for me, and maybe will give you a good starting point for making this be implemented well.


Thanks ralig!


Top
   
 
Posted: Sat Feb 02, 2008 10:04 pm 
Joomla! Fledgling
Joomla! Fledgling
Offline

Joined: Mon Jan 28, 2008 5:58 pm
Posts: 3
OK, 1 problem with the code I gave for putting in the highlighted code:  It only works if you have TinyMCE set as your editor (which isn't so bad, since it is the default editor.)  If there is a different editor, it makes execution freeze, even in the 1.1.1 update.

I can't seem to find a solution to this.  There doesn't seem to be any other joomla editor function wrappers except for jInsertEditorText.  It would be nice if there were a jGetEditorSelected, or something of the sort.


Top
  E-mail  
 
Posted: Mon Feb 04, 2008 7:25 am 
Your right, there isn't a "jGetEditorSelected". so I made a few changes to the code, and the highlighted code can only be used when editing with tinyMCE. The fact is that xstandard doesn't have a similar function already integrated.

That seems like the last bug. Do you know of any other popular editors I should consider considering?

Heres the new code:
Code:
getSelectedText: function()
{
   if (window.parent.tinyMCE) {
      // Thanks to ralig
      var inst=window.parent.tinyMCE.selectedInstance;
      txt=inst.selection.getSelectedHTML();
   } else if ($('xstandard')!=false) {
      txt='';   // There is no way of finding the highlighted text in current version
   } else {
      txt='';
   }
   return txt;
}


To get the "xstandard" editor, we need to use getElementById(), or mootools' $().
I don't know much javascript, but that seems about right. Works for me anyways.

tell me what you think


Top
   
 
Posted: Mon Feb 04, 2008 2:01 pm 
Joomla! Fledgling
Joomla! Fledgling
Offline

Joined: Mon Jan 28, 2008 5:58 pm
Posts: 3
The new code looks great!  That should do the trick nicely.

Quote:
That seems like the last bug. Do you know of any other popular editors I should consider considering?


By looking in the Joomla extension gallery, I found JCE and JoomlaFCK as two popular editors.  I know JoomlaFCK is updated for 1.5, but JCE doesn't appear to be yet.  I haven't looke dthrough the code or documentation for JoomlaFCK yet, so not sure if it has a function to get the selected text.


Top
  E-mail  
 
Posted: Mon Feb 04, 2008 3:25 pm 
ill look into joomlaFCK, then ill try to convert the extension to be joomla 1.0.x compatible.

thanks again.


Top
   
 
Posted: Sat Feb 09, 2008 8:31 pm 
Joomla! Fledgling
Joomla! Fledgling
Offline

Joined: Sat Feb 09, 2008 8:21 pm
Posts: 1
Hi mtlnews,

I am having problems with Linkr.  I installed the component and the plugin on my Joomla! 1.5 site and no errors were reported.  I am running my site in legacy mode for compatibility with docman.  When I attempt to link to another article from within an article there linkr button is missing.  Is there a step or something that I am missing?

Thanks,

Jim


Top
   
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 15 posts ] 

Quick reply

 



Who is online

Users browsing this forum: No registered users and 7 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 © 2000, 2002, 2005, 2007 phpBB Group