Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Big problem with scope variables #179

Closed
yourchoice opened this issue Feb 10, 2016 · 7 comments
Closed

Big problem with scope variables #179

yourchoice opened this issue Feb 10, 2016 · 7 comments

Comments

@yourchoice
Copy link

I declared {$NO_ADS=1 scope='global'} in file header.tpl.

Then in main page (main.tpl) I try to use this variable and seems to not be recognized.

This happen with the last version ....30/37

@yourchoice yourchoice changed the title Big problem with scope variable Big problem with scope variables Feb 10, 2016
@uwetews
Copy link
Contributor

uwetews commented Feb 10, 2016

Read the newfeatures.txt regarding the bubble_up option flag.

{$NO_ADS=1 scope='global', bubble_up}

@uwetews uwetews closed this as completed Feb 10, 2016
@yourchoice
Copy link
Author

Why was necesary this option bubble_up ?

@ophian
Copy link

ophian commented Feb 12, 2016

Read the newfeatures.txt regarding the bubble_up option flag. {$NO_ADS=1 scope='global', bubble_up}

Hm, strange use of parameter quoting... The new feature docu says it is: {$foo = 'bar' scope=global bubble_up} without any quotes and comma, but shouldn't it be {$foo = 'bar' scope='global, bubble_up'} in real or anything like it? @uwetews

@ophian
Copy link

ophian commented Feb 14, 2016

@uwetews ? (see above)

@yourchoice
Copy link
Author

so, the correct sintax is

  1. {$NO_ADS=1 scope='global', bubble_up} ? Here is a comma that not appear in NEW_FEATURES.txt

  2. {$NO_ADS=1 scope='global' bubble_up}

  3. {$NO_ADS=1 scope='global bubble_up'}

For me 2) working ...

I think this feature need better documented ...

uwetews added a commit that referenced this issue Feb 20, 2016
@uwetews
Copy link
Contributor

uwetews commented Feb 20, 2016

Sorry, for the compiler attribute=string is identical to attribute='string'
I should not have use this syntax option in my example.
bubble_up is a tag option flag which are never quoted. (like nocache)

I updated NEW_FEATURES.txt

@uwetews
Copy link
Contributor

uwetews commented Mar 9, 2016

The master branch has been updated once again regarding scope handling.
The bubble_up option flag has been removed and variable changes are bubbled_up to the current template by default because this does make sense.

read the NEW_FEATURES.txt for the latest comments.

uwetews added a commit that referenced this issue Mar 9, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants