rogercreagh / joomla-xbRefMan

xbRefMan provides back-end management and front-end views for xbRefs
GNU Affero General Public License v3.0
0 stars 0 forks source link

Hello, plg_xbrefbutton not working #1

Open anatajue opened 1 year ago

anatajue commented 1 year ago

Hello Mr, i love this extension and was adapt to joomla 4.2.3 the code have run smoothly and many error still available in there.

my trouble right now is, plg_xrefbutton not working, i can't insert any reference with button, like the modal was stuck on there.

the minimal i change is in plugins\editors-xtd\xbrefbtn\xbrefbtn.php HTMLHelper::('behavior.modal') to HTMLHelper::('boostrap.modal')

the source like not communicate on iframe with the content.. in media\plg_button_xbrefsbtn\html\xbrefpopup.html

iam sure the mistake is in javascripts, there is space in there

to have onclick="parameter"

if i put the manual tag {xbref}parameter{/xbref} that is run smoothly

so iam still need to have the plg-button

would you mind help me to solve the problem?

thans

rogercreagh commented 1 year ago

Hi, Yes, thanks for this. It seems that xbRefMan is nearly j4 compatible but as you have found the main problem is that the editor button does not work. I confess I haven't looked any further than discovering that it doesn't work as I'm not really interested in J4 (I don't like it, and if J3 ain't broken there is no need to replace it.)

However since this seems to be a fairly simple problem - my guess is that the spec for how an editor button should work has changed slightly in J4 - and since you are the second person to ask, I will take a look at it but probably not immediately. I might get a chance within a couple of weeks, but it could be longer as I am a little busy with non keyboard life at the moment.

As you have found, if you manually insert the appropriate shortcodes it does pretty much work - at least the content plugin which inserts the references in front-end articles does. However there are also a number of non-fatal errors in the back end reference manager and layout which also need fixing to make it robust on J4.

Since I don't have any live J4 sites (and have no plans to create any) testing is something of a problem...

anatajue commented 1 year ago

Hi, Thansk for reply, iwant to know, why you dont like it? ihave a some problem when i learn that, so pure OOP and little doc on that function or namespace,

i think the firstly person that your mean to ask you is also me, iam was give review in joomla site to that plugins..

i have use your extension xbref content maybe arround 2019 for j3, so many article with that, that is (your eks ) the only extension what i want to be my j4 site... my project right now is to serve a data like wiki just with core a j4. cause my j3 has so heavy load on yesterday. the wiki is completely awasome with a reference so with footnoote button so be easy to insert a reference.

but right now, iam not more interesting with the xbref button plug, iam so confused with that and get stuck for a couple of day with no reference to learning and do trial from that code.

iam also have a solution to change how insert that xbref bracket with universal button, there is free and avaiable for j3 and j4 but xbrefman still in my first list to be custom right now.

iam also make my new component like weblink to be comunicate with xbref, but still get stuck on that...

the last i say, your works so amazing and thanks you for your big time to avaiable it in j4.. that save mylife thank's you very much