Opened 11 years ago

Closed 11 years ago

#1212 closed enhancement (no action needed)

Unable to override create link functionality

Reported by: guest Owned by: gogo
Priority: normal Milestone: 0.96
Component: Xinha Core Version: trunk
Severity: normal Keywords:
Cc:

Description

I am unable to override the create link functionality without modifying the Xinha source code. In my case I want to add a selector into the window that will allow the user to select a page instead of typing a URL. I could write my own plug-in or module, but the link creation module is losely integrated into the main JS file and can not be easily overridded.

Please modify the integration of create link so that it can be easily overridden without touching the sources of Xinha.

( I would do it, but I am a terrible JS programmer )

Change History (3)

comment:1 Changed 11 years ago by guest

I believe that using the style mentioned in ticket #1195 I can create a plugin with the name CreateLink? that will override the original.

{ plugin : CreateLink? , url : "/url/to/my/custom/link.ext"} in loadPlugins.

comment:2 Changed 11 years ago by guest

The linker module overrides CreateLink?, one could either use the Linker plugin or create a plugin with a similar interface and set the variable Linker to true.

( you can close the ticket )

comment:3 Changed 11 years ago by ray

  • Resolution set to no action needed
  • Status changed from new to closed

OK

Note: See TracTickets for help on using tickets.