Comments (2)
Another point worth considering, is making certain fields default in the macro using the XML configuration but allow for the possibility for the user to override the visible fields.
For example: on one page the user may wish to show, name, email and phone number and on a different page they may want to show name, department, manager. This could be done as a comma separated list of field ID's similar to the JIRA issue macro.
from adam.
Now it is able to define new views in the configuration; example:
<view id="default">
<element id="fullName" />
<element id="email" />
<element id="telephone" />
<element id="mobile" />
<element id="company" />
<element id="department" />
<element id="position" />
</view>
<view id="contact">
<localization locale="en_US" title="Contact" />
<localization locale="de_DE" title="Kontakt" />
<access>
<administrator view="allowed" />
<group name="employees" view="allowed" />
<default view="forbidden" />
</access>
<element id="fullName" />
<element id="email" />
<element id="telephone" />
<element id="mobile" />
</view>
<view id="compact">
<element id="fullName" />
<element id="email" />
</view>
By default the default view has the id id
. This could be changed by adding the defaultView
parameter to the configuration root element. The same is handled by the hoverView
attribute. This will handle the look of the user name hovers; example:
<configuration ... defaultView="default" hoverView="compact" ...>
The default view will be selected as default view for the marco. It is also possible to define more views. There are 3 special views:
default
It will select by default all possible fields.compact
It will be normally used by the user hover popup and contains thefullName
andemail
fields.all
will only be present of the fields ofdefault
does not contain all possible fields and will contain always all fields.
In the macro it is possible to select a view or select the fields manually. If a field in a view is added also all marcos that uses this marco will be updated. If the custom selection of the fields is used this could not work.
from adam.
Related Issues (20)
- NullPointerException when loading file conveyor-config.xml HOT 2
- HowTo get meta data from echocat adam plugin? HOT 1
- Question: API call for user data from echocat ADAM HOT 1
- Position & department not synchronized anymore HOT 8
- Upgrade API to confluence 5.10.7
- Malformed long email address in the compact view HOT 1
- Upgrade API to confluence 6.0.1 HOT 1
- Ability to set sync interval HOT 1
- Upgrade API to confluence 6.0.2
- echocat adam breaks another add-ons actions HOT 14
- point to seperate LDAP resource? HOT 1
- Telephone number not displaying
- Upgrade API to confluence 6.2.1
- Field edit permissions for administrator
- Confluence 6.6 Compatibility HOT 6
- Future of this plugin HOT 7
- Not compatible with Confluence 7 HOT 7
- Warning on sync event listener with Confluence 7.11.1 HOT 5
- With Adam enabled active directory is not synced automatically anymore
- Compatibility with Confluence 7.13.2 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from adam.