Methods
detail
Loads and displays the details of an article.string
The pretty URL of the article to display
boolean
default:false
Whether to render the page for printing
boolean
default:false
If true, returns the rendered view as a string instead of outputting it
- Retrieves general data such as language and login status
- Fetches the article by its pretty URL
- Checks language compatibility and redirects if necessary
- Retrieves related articles
- Prepares SEO data
- Loads module data
- Renders the detail view or returns it as a string
load_view
Loads and renders a view with additional data preparation.string
The name of the view to load
array
An array of data to pass to the view
- Prepares OpenAI-related data
- Sets up SEO and Open Graph data
- Handles cookie warnings
- Prepares menu items and translations
- Loads and renders the specified view along with header and footer
getOpenaiData
Prepares OpenAI-related data for use in views.array
The existing data array to augment with OpenAI data
array
The augmented data array containing OpenAI-related information
- Retrieves page settings for conditional OpenAI display
- Fetches available languages and language lines
- Retrieves and processes OpenAI prompts
- Determines the preselected language
- Gets the last chat ID