Skip to content

sqlpage pseudo-function to get the current path #114

Closed
@lovasoa

Description

@lovasoa

It would be nice to have a sqlpage.path() pseudo-function that returns the current page path.

Discussed in #110

Originally posted by lukavia October 23, 2023
I'm trying to a navigation to my app. Going through the docs and examples it seams the most elegant solution is to create a table with the entries and then use tab component.

select 'tab' as component;
select title, file as link from nav; 

However I would like the current page to be active so I want to add a column like IF(sqlpage.url = file, true, false) as active

My question is how to get the current page (sqlpage.url if you will) ?

Thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions