[CWB] [cwb:bugs] #65 Feature Request: Embed-page function

Hardie, Andrew a.hardie at lancaster.ac.uk
Sat Jun 1 15:33:02 CEST 2019


Well that took an unexpectedly large quantity of javascript hacking.

But as of next commit, properly-formed embedded page relative URLs will bypass the browser’s built-in validation of fields whose type is declared as “url”.

(Which is what this was – a browser feature – not something I coded)

Andrew.

From: Scott Sadowsky <ssadowsky at gmail.com>
Sent: 01 June 2019 09:45
To: Hardie, Andrew <a.hardie at lancaster.ac.uk>
Cc: Open source development of the Corpus WorkBench <cwb at sslmit.unibo.it>
Subject: Re: [CWB] [cwb:bugs] #65 Feature Request: Embed-page function

When I try to do that for the various tagsets in the Annotation Metadata page, I get an error box saying "Please enter a URL". I'm using the relative URLs (e.g. index.php?ui=embed&id=5), and the box on this page says "External URL", so that appears to be a mismatch.

I can manually create an absolute URL by pasting the relative (html file) URL to the end of the corpus base URL, but is there a better way to do this?

(This is a fabulous feature, by the way!).

Cheers,
Scott

On Sat, Jun 1, 2019 at 4:32 AM Hardie, Andrew <a.hardie at lancaster.ac.uk<mailto:a.hardie at lancaster.ac.uk>> wrote:
>>>Where do the user-created page links appear, by the way?

The relative URL is given alongside each registered embed in the manage-embedded-pages UI.

Just copy that URL into the input slot for whatever documentation-link you wish.

Andrew.

From: cwb-bounces at sslmit.unibo.it<mailto:cwb-bounces at sslmit.unibo.it> <cwb-bounces at sslmit.unibo.it<mailto:cwb-bounces at sslmit.unibo.it>> On Behalf Of Scott Sadowsky
Sent: 01 June 2019 03:26
To: Open source development of the Corpus WorkBench <cwb at sslmit.unibo.it<mailto:cwb at sslmit.unibo.it>>
Subject: Re: [CWB] [cwb:bugs] #65 Feature Request: Embed-page function

On Fri, May 31, 2019 at 9:58 PM Hardie, Andrew <a.hardie at lancaster.ac.uk<mailto:a.hardie at lancaster.ac.uk>> wrote:

Hi Andrew,

>> Error # 1146: Table 'cqpweb.embedded_pages' doesn't exist

I suspect you did not run upgrade-database after updating.

Yup! Problem solved.

Where do the user-created page links appear, by the way?


 >> One of the main reasons I'd like to have this is to provide help in languages other than English.

Any chance you’d be willing to push these back upstream?

Absolutely!

Cheers,
Scott


--
Dr. Scott Sadowsky
Profesor Asistente de Lingüística
Pontificia Universidad Católica de Chile

ssadowsky gmail com
scsadowsky uc cl
http://sadowsky.cl/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://liste.sslmit.unibo.it/pipermail/cwb/attachments/20190601/da1f1fc0/attachment.html>


More information about the CWB mailing list