[SF] Version 3.4.1: Pipes disallowed, "no autofocus" for #forminput, etc.

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[SF] Version 3.4.1: Pipes disallowed, "no autofocus" for #forminput, etc.

Yaron Koren-2
Hi everyone,

Version 3.4.1 of Semantic Forms has been released. This version has the
following changes and additions:

- Pipes ("|") are now disallowed in user "field" inputs, except within
links, template calls and parser function calls. Pipes have been a problem
in Semantic Forms since almost the beginning, since placing a pipe within
ordinary text (like "abc|def") causes everything after the pipe to get
ignored when the resulting page is displayed; this is not a Semantic Forms
issue, it's a MediaWiki issue. The most common case where people were
adding in pipes was to try to put tables (in wikitext) inside textarea
inputs. Doing this now leads to a validation error, and the form will not
save. (Just to be clear, this only applies to template field inputs, not
the free text or page section inputs.)

- The "no autofocus" parameter was added to the #forminput parser function.
By default, #forminput gets the "focus" on the page, meaning that the
cursor goes right into that input when the page is loaded. This can cause
the page to jump if one or more #forminput calls are lower down the page.
So now you can add "|no autofocus" to remove that functionality.

- Speaking of #forminput - when it was first added to SF, it had unnamed
parameters, instead of named parameters like "form="; it handled both types
for a long time, but now #forminput no longer supports unnamed parameters -
so if you have any old-style #forminput calls, you'll have to change them.

- For the "checkbox" input type, the setting of whether it was checked or
not was messed up in some non-English languages, due to a change in version
3.4. This has been fixed.

- The "tree" input type did not work correctly in multiple-instance
templates; this has been fixed.

- The "random number" feature for page-name formulas was improved: if the
code tries a bunch of numbers but keeps failing to find a page name that
hasn't been taken yet, it increases the number of digits in the numbers it
tries until a match is found.

- The hook 'sfAddJavascriptFiles' was replaced with
'sfAddResourceLoaderModules', which, as you might imagine, uses
ResourceLoader modules instead of JS files.

- The popup window that shows up for form-based file uploads was fixed to
work better with MW 1.25+; thanks to Robert Vogel for the fix.

- There was a fix for the "mapping template" feature, if the template
contains extra spaces; thanks to Cindy Cicalese for the fix.

- There was a bug with sections (i.e., the {{{section}} tag), where, if the
last section on the page was empty, it led to messed up formatting. This
has been fixed; thanks to Niklas Laxström for the fix.

- There were various fixes for the handling of the Cargo extension, and the
combination of the Page Schemas and Cargo extensions.

- There was also a fix for the handling of templates that use neither SMW
nor Cargo (they sometimes led to a warning message before, due to some
recent-ish changes).

- There were a variety of code improvements to Semantic Forms' special
pages, and some of its JavaScript; thanks to Niklas for some of these.

- There were some other, more minor bug fixes.

As always, you can read more about Semantic Forms, and get the latest
version, here:

https://www.mediawiki.org/wiki/Extension:Semantic_Forms

-Yaron
------------------------------------------------------------------------------
Go from Idea to Many App Stores Faster with Intel(R) XDK
Give your users amazing mobile app experiences with Intel(R) XDK.
Use one codebase in this all-in-one HTML5 development environment.
Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.
http://pubads.g.doubleclick.net/gampad/clk?id=254741551&iu=/4140
_______________________________________________
Semediawiki-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/semediawiki-user
Reply | Threaded
Open this post in threaded view
|

Property URL and Image

m_ART_in
Hello!

I use a property Logo (type URL) to display external images. (in
LocalSettings $wgAllowExternalImages=true). Everything fine so far in my
template:

[[Logo::{{{Logo|}}}]]

the images are displayed.

My next step was to give a fixed size, too:
how can I do this?
Something like
  [[Logo::{{{Logo|}}} | 100px]] is of course not working.

Any ideas? Thanks for help, Martin

------------------------------------------------------------------------------
Go from Idea to Many App Stores Faster with Intel(R) XDK
Give your users amazing mobile app experiences with Intel(R) XDK.
Use one codebase in this all-in-one HTML5 development environment.
Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.
http://pubads.g.doubleclick.net/gampad/clk?id=254741551&iu=/4140
_______________________________________________
Semediawiki-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/semediawiki-user