Main Components / Workflow
Page Creation: Start by creating a new page within the Twidget interface where the path parameters will be utilized.
Path Parameter Configuration: When defining the page URL, incorporate a path parameter, such as
var_1
, which allows real-time data retrieval from the URL.Dynamic Content Integration: Utilize page elements (e.g., text elements) to incorporate the path parameters by referencing them with a syntax that includes
{{$path.parameter_name}}
. This ensures that when the page is published, the content is automatically updated to reflect the value associated with the path parameter in the URL.Visibility and Configuration Settings: Path parameters are accessible not only in page content but also in other element configurations (e.g., visibility settings), allowing for conditional rendering based on the parameter values.
Page Functions: Path parameters can also be leveraged within page functions. For instance, when creating functions that require dynamic data input, the path parameter will be available in the variable dropdown, allowing for further manipulation and display of content based on user interactions.
This structured approach to utilizing path parameters within Twidget enhances the platform's flexibility, enabling developers to create highly personalized user experiences.