Conditional
Role and Profile
@role
Will be show on this (or list of) role(s) only.
@profile
Will be show on this (or list of) profile(s) only.
<?xml version="1.0" encoding="UTF-8"?>
−
<bs:carousel role="1 2 9" profile="3 6" xmlns:bs="http://www.bootstrap-cms.org">
<bs:seat/>
</bs:carousel>
[1 lines]
State and Task
@state
Show on this (or list of) state(s).
May be set as query parameter &state=1, but will not get preserved as query parameter on page navigation.
@task
Show on this (or list of) task(s).
May be set as a query parameter &task=2, and will be preserved as query parameter on page navigation.
<?xml version="1.0" encoding="UTF-8"?>
−
<bs:carousel state="2" tast="1" xmlns:bs="http://www.bootstrap-cms.org">
<bs:seat/>
</bs:carousel>
[1 lines]
Language & Region
@lang
Shown on this language code only.
@region
Shown on this region code only
<?xml version="1.0" encoding="UTF-8"?>
−
<bs:carousel lang="da" region="DK" xmlns:bs="http://www.bootstrap-cms.org">
<bs:seat/>
</bs:carousel>
[1 lines]
Data Access
@access
Show/hide/enable/disable the control based on the database privilege to the row
| Value | Description |
|---|---|
| 0 | hidden if privilege is 0 |
| 1 or 2 or 3 | shown as readonly if privilege is same or higher. |
| 4 or 5 | shown and enabled if privilege is 4 (or higher) or 5 |
<?xml version="1.0" encoding="UTF-8"?>
−
<bs:carousel access="1" xmlns:bs="http://www.bootstrap-cms.org">
<bs:seat/>
</bs:carousel>
[1 lines]
Version
@version
Version number (or list of version numbers) for showing the content.
<?xml version="1.0" encoding="UTF-8"?>
−
<bs:carousel version="2" xmlns:bs="http://www.bootstrap-cms.org">
<bs:seat/>
</bs:carousel>
[1 lines]
Publishing
@publish
DateTime for showing the content.
@deadline
Will be readOnly if dateTime for has been exceeded.
@expiry
DateTime for removing the content.
<?xml version="1.0" encoding="UTF-8"?>
−
<bs:carousel publish="2024-04-01" expiry="2024-05-01" xmlns:bs="http://www.bootstrap-cms.org">
<bs:seat/>
</bs:carousel>
[1 lines]
Performance
@p
Set as query parameter &p=2
| Value | Description |
|---|---|
| 0 | Show load time |
| 1 | JS debugging to browser console |
| 2 | Dump temp files |
| 3 | PHP debugging |
<?xml version="1.0" encoding="UTF-8"?>
−
<bs:carousel p="2" xmlns:bs="http://www.bootstrap-cms.org">
<bs:seat/>
</bs:carousel>
[1 lines]
Privacy
@privacy
Will be shown only if has this (or list of) privacy (gdpr or others) and it is still valid.
Condition
@condition
Editing
@editor
If @editor="true", then only visible in editor mode (query parameter &editor=true)
@editable
If @editable="true", then the element - and any descendant of the element - will be editable.
@contenteditable
If @contenteditable="true", then the text on this element will be editable
@noedit
If @noedit="true", then the element - and any descendant of the element - will NOT be editable even if an ancestor is set to @editable="true".
<?xml version="1.0" encoding="UTF-8"?>
−
<bs:carousel editor="true" editable="true" xmlns:bs="http://www.bootstrap-cms.org">
<bs:seat/>
</bs:carousel>
[1 lines]
<?xml version="1.0" encoding="UTF-8"?>
<bs:h1 contenteditable="true" xmlns:bs="http://www.bootstrap-cms.org">Hello</bs:h1>
Hello
Conditional Attributes
Use can easily add consitional Attributes.
<?xml version="1.0" encoding="UTF-8"?>
−
<bs:input xmlns:bs="http://www.bootstrap-cms.org">
<bs:attribute name="value" role="3">123</bs:attribute>
</bs:input>
[1 lines]
123