plomino / Plomino

Powerful and flexible web-based application builder
33 stars 37 forks source link

Adding an internal link to a plomino document #333

Open richardtc opened 11 years ago

richardtc commented 11 years ago

Hi,

I'm using CKEditor and would like to add an internal link to a Plomino doument. Maybe this is an issue with CKEditor, but I'm unable to browse into a PlominoDatabase to identify a plominodocument to link.

I can insert a relative link by manually adding, but would like to be able to browse and simply select/add.

Do you think this is an issue of CKEditor? Should it be possible to browse to plominodocuments?

Cheers, Richard

ebrehault commented 11 years ago

It is not a CKEditor bug. The Add link tool uses th Plone portal_catalog, where PlominoDocuments are not necessarily indexed (that's an option to enable). Maybe if you enable "Index document in portal catalog" and re-index the docs it will work. Have a try.

richardtc commented 11 years ago

I reindexed dcuments in portal catalogue (under Design tab in plomino database) and can see plominodocuments listed in portal-catalog and can also search the items in the site search.

However, I cannot see any plominodocuments listed under the plominodatabase within CKEditor, though I can see forms and views...

richardtc commented 11 years ago

I've also tried TinyMCE (@@tinymce-controlpanel) - adding PlominoDatabase to the 'Contains Objects' field, and PlominoDocument to the 'Linkable Objects' field.

I'm still unable to browse beneath the PlominoDatabase content item to insert a link to a PlominoDocument. I can add links to PlominoViews and Forms.

It therefore appears not to be an editor issue and PlominoDocs are catalogued in ZMI.

richardtc commented 11 years ago

Further investigation shows that with TinyMCE I can locate and link to a PlominoDocument by searching for its title in the editor window. However, this does not work in FCKeditor.

ebrehault commented 11 years ago

With TinyMCE, I can locate it by searching too but then I cannot select it, can you ?

I guess that's because PlominoDocument are just CMF object (not Archetypes or Dexterity). We need to have a deep look in the way plonebrowser works to understand the problem.

richardtc commented 11 years ago

With TinyMCE, I can locate it by searching too but then I cannot select it, can you ?

Yes, I can insert link into text using TinyMCE.

richardtc commented 11 years ago

Not sure what happened here ... issue should still be open?