Difference between revisions of "ArticleView Options"

From Lianjapedia
Jump to: navigation, search
(ArticleView Section options)
(ArticleView Section options)
Line 43: Line 43:
 
===Editable===
 
===Editable===
 
The '''Editable''' Attribute determines whether the [[#File|file specified above]] is editable (based on [[Users and Roles|user roles and permissions]]).
 
The '''Editable''' Attribute determines whether the [[#File|file specified above]] is editable (based on [[Users and Roles|user roles and permissions]]).
 +
 +
===Merge data===
 +
The '''Merge data''' Attribute determines whether HTML content should be merged.  Use {macros} in the HTML.
 +
 +
See the example_datamerge App for an example.  From v9.3.
  
 
[[Category:Attribute Categories]]
 
[[Category:Attribute Categories]]
Line 49: Line 54:
 
[[Category:Lianja v8.0]]
 
[[Category:Lianja v8.0]]
 
[[Category:Lianja v9.0]]
 
[[Category:Lianja v9.0]]
 +
[[Category:Lianja v9.3]]

Revision as of 10:37, 21 September 2023

See Also

ArticleView Section Attributes, Attachments Options, DocumentView Options

Overview

ArticleView Sections are used to display HTML pages with a default bootstrap theme. From v5.3.

ArticleView Section


From v8.0, click the Edit Article button to open the HTML file in the WYSIWYG HTML editor in place:

ArticleView Section


ArticleView Section


example_component

The example_component App includes an ArticleView Section (section3). Find the example_component App listed under 'Examples|General' in the App Names explorer panel in the Apps Workspace.

ArticleView Section options

The following ArticleView Section section-specific options are available:

Database

The Database Attribute defines the database name for the data source for data-bound ArticleView Sections.

Table

The Table Attribute defines the table name for the data source for data-bound ArticleView Sections.

Data source

The Data source Attribute defines the varchar/memo column name for data-bound ArticleView Sections.

File

The File Attribute defines the HTML file to be displayed in the Section. In the example_component App, this is:

barrytest.html

As shown in the screenshot above, clicking on the keyboard icon in the Section header opens the file in the HTML Editor.

CSS stylesheet

The CSS stylesheet Attribute defines the custom CSS stylesheet for the article. From v9.0.

Note that ArticleView sections include bootstrap by default. See the articleview.rsp Lianja Server Pages script file for included stylesheets.

Editable

The Editable Attribute determines whether the file specified above is editable (based on user roles and permissions).

Merge data

The Merge data Attribute determines whether HTML content should be merged. Use {macros} in the HTML.

See the example_datamerge App for an example. From v9.3.