To insert vars from the include function into the template, you have to
change template.regioni to use {+var1} and {+var2}.

BoltWire has almost endless possibilities. The more you know, the more you
can do.  :)

Cheers,
Dan

On Wed, Oct 14, 2015 at 2:12 PM Faber <[email protected]> wrote:

>
>> [(search query=index.tags group=danze fmt=title when="inline '{+value}'
>> '#emilia' && inline '{+value}' '#romagna'")]
>>
> if that doesn't work, let me know. You could replace {+value} with
>> {index.tags::{+p}}.  Not sure all those replacements short cuts work
>> everywhere.
>>
> Also, check your tags page to see if it actually has the # in front of
>> each tag. If not, remove from the markup.
>>
>> After little trying, this:
> [(search query=index.tags group=danze fmt=title when="inline '{+value}'
> 'emilia' || inline '{+value}' 'romagna'")]
> with || and without sharps, worked fine, thanks!
>
> Now, how to include this in a page? I have created page template.regioni
> with this code:
>
> ! Danze ([(search query=index.tags group=danze text={page} fmt='count')])
> [(search query=index.tags group=danze text={page} fmt='title')]
>
> ! Gruppi ([(search query=index.tags group=gruppi text={page} fmt='count')])
> [(search query=index.tags group=gruppi text={page} fmt='title')]
> -----
>
> When i do
> [(include template.regioni)]
>
> the {page} variable work correctly, but i now need to have three
> parameters: {page} {var1} {var2}
>
> How to integrate your solution in my template? Need to pass vars like
> this? (i think)
>
> [(include template.regioni var1=emilia var2=romagna)]
>
> In template.regioni tried this with no success...
> [(search query=index.tags group=danze fmt=title when="inline '{+value}'
> '{page}' || inline '{+value}' '{var1}' || inline '{+value}' '{var2}'")]
>
> How to create a "dynamic template"?
>
>
>
>
>> To make it more flexible, you could write up a custom conditional
>> when="intags '{index.tags::{+p}}' 'emilia,romagna'" and have it take as
>> many tags as you like, returning false if any are missing... Easy enough to
>> do. Not sure it is worth adding to the core, though its possible...
>>
>> Too advanced for me... :)
>
> --
> You received this message because you are subscribed to the Google Groups
> "BoltWire" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/boltwire.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"BoltWire" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/boltwire.
For more options, visit https://groups.google.com/d/optout.

Reply via email to