Invenzzia »

IMPORTANT ANNOUNCEMENT

Due to the uncertain status of the Flyspray project, lack of new releases and moving the code repository to Github, we decided to shutdown this issue tracker by the end of January 2011. From that date, the bugs should be reported directly in Github project repositories.

List of repositories:

Open Power Template 2.x family

PLEASE PROVIDE THE TEMPLATES AND/OR PHP CODE IN THE TASK DESCRIPTION (Not URL-s to them). THAT ALLOWS US TO REPRODUCE THE PROBLEM! OTHERWISE WE ARE NOT ABLE TO HELP YOU!

Remember to hide all the security-related pieces of code from the task description, like passwords, server paths etc. for your own safety. Once we close the task, we cannot edit it anymore!
Tasklist

FS#118 - Put a variable value or a default value

Attached to Project: Open Power Template
Opened by Damian Nowak (Nowaker) - Saturday, 12 September 2009, 18:12 GMT-8
Last edited by Zyx (Zyx) - Monday, 01 November 2010, 11:20 GMT-8
Task Type Feature Request
Category Template syntax
Status Closed
Assigned To Zyx (Zyx)
Operating System OS-independent
Severity Low
Priority Normal
Reported Version 2.0.1
Due in Version 2.1.0
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Is:
~~~
<opt:if test="$myVar">
{$myVar}
<opt:else>
default
</opt:else>
</opt:if>
~~~

Could be:
~~~
<opt:var name="myVar">default</opt:var>
~~~

No default value:
~~~
<opt:var name="myVar" /> (the same as {$myVar})
~~~
This task depends upon

Closed by  Zyx (Zyx)
Monday, 01 November 2010, 11:20 GMT-8
Reason for closing:  Won't implement
Additional comments about closing:  Will not be implemented in the current version.
Comment by Zyx (Zyx) - Sunday, 13 September 2009, 00:53 GMT-8
This is already implemented, but as a function:

~~~~
<p>{firstof($myVar, 'Default value')}</p>
~~~~

You can use it to select the first non-empty value from the provided attributes. Another way is to use `opt:content` attribute. I'll add a page about it to the wiki, because I agree the "trick" could be confusing. However, I'll keep it open, because the idea of creating the tag version of `opt:content` seems quite nice.
Comment by xianq (xianq) - Sunday, 22 April 2012, 22:36 GMT-8
matching orange shirts. http://www.sitdresses.org affordable bridesmaid dresses I created my bouquet myself employing a black plastic jack o' lantern, like the kind applied by young children for trick or dealing with. http://www.sitdresses.org wedding gowns bridesmaid dresses I stuffed it with autumn leaves and flowers, which includes my preferred, the Calla Lilly. http://www.sitdresses.org/Evening-Dresses.html long evening dress We asked our company to decorate in costume and boy had been they innovative! My brotherinlaw and his son dressed as my husband and I! There had been witches and goblins, http://www.sitdresses.org cheap plus size wedding dresses also as superheroes and film stars. http://www.sitdresses.org navy bridesmaid dress For us it was a terrific technique to get everybody involved with our unique day. We went with traditional Halloweenstyle decorations, total having a large spider within the ceiling http://www.sitdresses.org 1940's vintage dresses , http://www.sitdresses.org formal wedding dresses and cobwebs draped all over the place http://www.sitdresses.org discount wedding gowns . Our cake shown a graveyard scene total with Jack and Sally in the Disney traditional A Nightmare Ahead of Xmas, http://www.sitdresses.org large size bridesmaid dresses and we had skeleton goblets for that
Comment by xianq (xianq) - Tuesday, 01 May 2012, 18:56 GMT-8
Likely to balls contain a great deal of planning specifically for gals considering that straightforward formal have on will usually in no way do. http://www.watchesask.com/rolex-watches.html rolex fake Masquerade events demand specific ball gowns that fluctuate in design based to the partys concept. Victorian ball gowns are very good examples of such, but acquiring them is basically a concern. Even now http://www.watchesask.com/omega-watches.html replica omega watches , http://www.watchesask.com/rolex-submariner-watches.html replica rolex gold watch http://www.watchesask.com/rolex-datejust-watches.html rolex datejust 116200 there are methods for a lady to discover an excellent robe for herself. http://www.watchesask.com/rolex-watches.html rolex replica watches Masquerade gowns are incredibly unheard of and so they mostly vary with the common night don on the century http://www.watchesask.com/rolex-datejust-watches.html replica rolex perpetual datejust . http://www.watchesask.com/rolex-watches.html rolex gmt2 These are usually predicted to grant the wearer the oldfashioned search of somebody through the before moments http://www.watchesask.com/rolex-watches.html replica rolex new york . Dimension and style also usually pose an issue in deciding on these masquerade gowns because they can be to get restricted while in the midsection and voluminous inside the skirt. For your faultless masquerade ball robe http://www.watchesask.com/tag-watches.html replica tag watches , it
Comment by xianq (xianq) - Tuesday, 19 June 2012, 01:56 GMT-8
after nning a Royal Warrant. http://www.blowdress.net cheap short dresses http://www.blowdress.net classic wedding dresses His ring eye, http://www.blowdress.net sleeveless dress . that is typically cover?d that has a black ey http://www.blowdress.net wedding casual dress ?patch,bears a pentacle indication of t?e Faustian agreement which binds the demon Sebastian Micha?lis thi http://www.blowdress.net mother of the bride dresses 2012 . ? will. He ?s portra?ed as emotionless, http://www.blowdress.net cheap wedding veils but he does specific osional worry f th? wellbeing in the f?w near thim. The cosplayer around the s?ow pre?ented the charact?r equally as ?e wa? Ci?l Phantomhive. Everyby wa? deeply shocked http://www.blowdress.net custom wedding dress . Some cosplayers about the ?how mad? uhe cosplay ctumes by themselevs, http://www.blowdress.net/wedding-dresses-v-neck-wedding-dresses.html tea length wedding gowns . http://www.blowdress.net plus size dresses . but several far more purchased line to avoid wasting their time. cosplaypub h go d?al of cosplay costumes,also ar? all c?eap ap cosplay costumes. you will find it is intelligent choic? to uy sothing <p> The reasoning of organising a blogging site for CouponRefund will be to reinforce the

Loading...