Skip to content

Multiple variables and prefixes #7

@robsonsobral

Description

@robsonsobral

Hi, Mark!

I just crossed with one question on StackExchange that maked me think about it.

We can check for multiple variables by concatenating them:

{exp:switchee variable = "{segment_1}{segment_2}" parse="inward"}

And we can use prefixes, post:, get:, global: and stash for some variables.

But we can use them both!

Can you allow us to use some character, forbidden on naming variables, to concatenate them on this cases? For example, /:

  • {exp:switchee variable = "post:foo/{last_segment}" parse="inward"};
  • {exp:switchee variable = "post:foo/get:foo_2" parse="inward"};
  • {exp:switchee variable = "post:foo/global:member_id" parse="inward"};

What do you think?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions