Skip to content

How can a query string be read by the destination view? #268

@ChrisPulman

Description

@ChrisPulman

Hi Dave,
I want to pass a query string from a view with a list of for example A B C topics to a view with a list of A by passing a query string in the url i.e. localhost:5080/letter?query=A

I would normally get this from the context however the query string field is null when using Statiq.

  1. Is this supported?
  2. If so how can I use it to filter the topics (topics are views named as per the query string)?

We are using Statiq.Docs V1.0.0-beta.13 to produce an updated documentation website

A little assistance would be greatly appreciated :)

There is an issue also but you may know about this -:

  • if you use dotnet run once then there is a few files which are not generated, if you then use dotnet run -l Debug all the files are then generated the first run it states 0 files already existed the second time it states that all but 6 in my case existed and the site operates as expected.

  • the same applies if you run dotnet run -- preview there is always files missing, then go to any file and add a white space to any file in the input folder, the site is built again and has no issues all the files are generated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions