Skip to content

In using a TextInsert macro as a reference variable, it takes the literal term and not the reference. #26

@Anonymous215025

Description

@Anonymous215025

I will be using the struct plugin as an example, it uses a syntax like so to pull up a table of information:

Page ID = food:chocolate_cake

======Chocolate Cake======
=====Chocolate Cake Recipe=====
---- struct table ----
schema   : recipe
cols     : recipe_ingredients
filter   : food = food:chocolate_cake
----

Where I want to use TextInsert and replace food = #@id@# however it does not work as it takes in the literal string:

filter : food = #@ID@#

I have tried using parameter interpolation from reading this example: #25 (comment)

Macro Name: current_page_id
Macro Definition: %1
Macro Reference:
filter : food = #@current_page_id~#@ID@#~@#

Does not seem to work either as my expected tables to appear does not appear. What are your suggestions?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions