• Hi. I had question to the athor:

    How to add ability to insert more than 1 variable in post/page content?

    For now i can use [pagetitle] variable in post content so it will be replaced with post title – that’s fine.

    But i need define second (or more) variable for eg. [variable1] working with the same rule like [pagetitle] it means: separated by commas in the same order like [pagetitle].

    Example:

    [Pagetitle] textarea: Example pagetitle, Expample pagetitle1
    [Variable1] textarea: example variable1, example variable1
    [Variable2] textarea: example variable2, example variable2

    Page content:

    “Here is page called [pagetitle] and it’s about [Varaible1] and sometimes we writing about [Variable2] too. So visit [pagetitle] regular and look for the [variable2].”

    I hope You get my point ??

    Cheers!

    • This topic was modified 7 years, 3 months ago by kamiljot.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author DaganLev

    (@daganlev)

    Hi Kamil,
    Currently I use the [Pagetitle] as a “placeholder” – that is to be replaced by the Page Title.

    So the problem is what would the variables on the content replace??? i.e. what would the system do for [variable2]? where is the data?

    I hope this makes sense.

    Cheers,
    Dagan

    Thread Starter kamiljot

    (@kamiljot)

    Hi Dagan!

    Tahnks so much for reply!

    I try to explane:

    The data for [variable1], [variable2] should be placed in another textarea like Page Title, maybe it will be better if i show You what i mean: See my concept ??

    The red lines show how i think it should work – variables goes to the page by order:

    PageA, PageB, PageC
    Variable1ForPageA, Variab1e1ForPageB, Variable1ForPageC
    Variable2ForPageA, Variable2ForPageB, Variable2ForPageC

    I dont know how many variables should be possible to add, i think every user will ned different number of variables. Mayby it will be better when everybody define it by their own, for example for clicking button:

    “+Add another variable”

    and after clicking there is show new one textarea for variable, and user can repeat operation so many times as they need.

    I hope now You understand me ??

    Regards.
    Kamil.

    Plugin Author DaganLev

    (@daganlev)

    Hi Kamil,
    I see now what you are trying to achieve, it involves a fair bit of work and I’m not sure I have the time to do this just now as I have a lot on my plate currently, sorry…

    But it is a good idea and I might implement this into the plugin later on; or maybe create a new plugin that uses a CSV to import the pages – seems like this will be a better solution and will allow you to add variables in a data set.

    Sorry again,

    Cheers
    Dagan

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Creating more variables like “[pagetitle]” in post/page content.’ is closed to new replies.