mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
[IMP] Merge 'web_widget_prefixed_url'
This commit is contained in:
committed by
Jasmin Solanki
parent
6001ae2433
commit
f62192242a
@@ -1,2 +1,5 @@
|
||||
* Simone Orsi <simone.orsi@camptocamp.com>
|
||||
* Alexey Pelykh <alexey.pelykh@brainbeanapps.com>
|
||||
* Jay Vora <jay.vora@serpentcs.com>
|
||||
* Swapnesh Shah <s.shah.serpentcs@gmail.com>
|
||||
* Joan Sisquella <joan.sisquella@forgeflow.com>
|
||||
|
||||
@@ -1,6 +1,11 @@
|
||||
Extend URL widget features to ease customization of anchor's text.
|
||||
|
||||
By default the URL widget will show the plain URL.
|
||||
You can specify an attribute `text` to provide a static label too.
|
||||
By default, the URL widget will show the plain URL.
|
||||
You can specify an attribute to provide a static label too.
|
||||
|
||||
With this module you can use a field for link's inner text.
|
||||
With this module, you can use a field for link's inner text using attribute
|
||||
'text_field'. You can also add a prefix to the link using attribute
|
||||
'prefix_name'.
|
||||
|
||||
Until 13.0 this functionality was separated in modules 'web_widget_url_advanced'
|
||||
and 'web_widget_prefixed_url'
|
||||
|
||||
@@ -25,3 +25,15 @@ This is going to change the rendering from
|
||||
to
|
||||
|
||||
.. figure:: ../static/description/after.png
|
||||
|
||||
Or user can add any hyperlink text using 'prefix_name' attribute
|
||||
|
||||
.. code-block:: xml
|
||||
|
||||
<field name="skype_name" widget="url" 'prefix_name': 'skype'/>
|
||||
|
||||
both can be applied inside the options attribute too:
|
||||
|
||||
.. code-block:: xml
|
||||
|
||||
<field name="skype_name" widget="url" options="{'prefix_name': 'skype'}"/>
|
||||
|
||||
Reference in New Issue
Block a user