gezzzan | 21 Apr 16:02 2014
Picon

[Tiki-devel] object attribute name problem in smarty

HiDevs

I would need a little help with a problem I am having when trying to follow the naming rules described here: http://dev.tiki.org/Object+Attributes+and+Relations

It says "Attribute names may only contain lowercase letters and dots."

The problem is with the dots. 

Lets say for an object type I query all items (from tiki_objects table) with all their attributes (from tiki_object_attributes table) and store all this info in a multidimensional array (eg: "objectList") and pass it to smarty. 

In the smarty tpl I want to use a foreach to display the list items and their attributes in separate columns in a table. Usually it is easy to display values (eg objectId) for a given item like this: {$objectList.objectId}

But when trying to display the value of an attribute (eg: tiki.my.attribute) like this {$objectList.tiki.my.attribute}, smarty fails. If the attribute key would be called tikiMyAttribute (instead of tiki.my.attribute), smarty could do the job.

Found similar problem with different workarounds: http://stackoverflow.com/questions/3244932/smarty-array-with-dot-in-key, but they all create extra work.
Also read zend (http://framework.zend.com/manual/1.12/en/coding-standard.naming-conventions.html) which does not recommend dots.

Is there a way dot separators can work for smarty? I mean without extra work of removing dots, renaming the attribute temporarly, etc.

I would go for using camelCase for object attribute names, but please let me know if you have an easy solution for the dots way.

thanks&cheers,
gezza

------------------------------------------------------------------------------
Start Your Social Network Today - Download eXo Platform
Build your Enterprise Intranet with eXo Platform Software
Java Based Open Source Intranet - Social, Extensible, Cloud Ready
Get Started Now And Turn Your Intranet Into A Collaboration Platform
http://p.sf.net/sfu/ExoPlatform
_______________________________________________
TikiWiki-devel mailing list
TikiWiki-devel@...
https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel
Jonny Bradley | 21 Apr 14:11 2014

Re: [Tiki-devel] Tiki12 checklist


Hi Bernard, replying via dev list for a wider audience.

Have done the "JSLint" thing finally, was quite a lot to do - committed in r50843, 44, 45, 47 & 51

I tested as much as i can, please everyone, keep an eye out for new JS errors...

jb

On 16 Apr 2014, at 22:45, Bernard Sfez <bsfez@...> wrote:

> Hi Jonny,
> 
> I missed this 
> 	• Check JSLint (Jonny)
> At https://dev.tiki.org/Tiki12#Checklist, so have you I guess.
> 
> Can you take care of this and strike ?
> 
> 
> Bernard

------------------------------------------------------------------------------
Start Your Social Network Today - Download eXo Platform
Build your Enterprise Intranet with eXo Platform Software
Java Based Open Source Intranet - Social, Extensible, Cloud Ready
Get Started Now And Turn Your Intranet Into A Collaboration Platform
http://p.sf.net/sfu/ExoPlatform
Arild Berg | 19 Apr 22:28 2014
Picon

[Tiki-devel] shopping cart bug

Hi (Jonny and LP mainly, I guess),

 

I have done some more testing using the shopping cart.

In my local installation prices with decimals don't work.

A bug report has been filed: http://dev.tiki.org/item5190?itemId=5190

 

from that report....

"My local system (Windows 7) is configured to use , (comma) as the decimal separator.

It seems like the data loaded through the unified search, to fill the product list, uses the local machine definition, i.e. 0.55 is loaded as 0,55

I have not been able to locate the source for this."

 

Does the shopping cart work with decimal prices on machines using . (dot) as the decimal separator?

Would be good if someone could verify this.

 

To me this appears to be a bug somewhere in the tracker loading for numeric fields.

 

Arild

 

 

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
TikiWiki-devel mailing list
TikiWiki-devel@...
https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel
Bernard Sfez | 19 Apr 12:19 2014

[Tiki-devel] Category has slowed down ?

Hello,

I have the feeling that since a few days, anything I do in category is taking a lot of time. Even loading
http://mydomain/categories is long (10 to 17 sec).

I didn’t change categories
The number of items categorised grow about 30 in a week

The only major change done was to switch from MySQL search to ElaticSearch.

Any work being done there could have that effect ?

Bernard

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
Gary Cunningham-Lee | 19 Apr 12:15 2014

[Tiki-devel] 26px-wide wiki editpage textarea in trunk

Hi,

Is anyone else experiencing this? The textarea for normal (not wysiwyg)
wiki page editing is only 26px wide. After showing the wiki page data at
(previous) normal width for a second, the textarea snaps to the narrow
size. It has some inline CSS that includes "width: 0px" for reasons that
are unclear to me, but even when I remove that with the inspector it
stays tall and thin. I don't see any CSS causing this. This is a pretty
recent change, from the last several days, I think. Was there some maybe
change made for the wysiwyg editor that's having this unintended effect
on the standard wiki editor? I've checked with Opera and Firefox on
Windows. In Firefox it's possible to grab the resize corner and stretch
the textarea to a usable width, but Opera can't even grab the corner.

-- Gary

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
littledove | 18 Apr 22:50 2014
Picon

[Tiki-devel] Module syntax error won't go away

Please tell me how to fix this custom module:

{HTML(wiki=1)}<span style="margin-left:75%;background-color:#E7DF9C;">{GROUP(notgroups="Anonymous")}Welcome, {$user}{GROUP}</span>{HTML}

Advice is always appreciated. Thank you.


------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
TikiWiki-devel mailing list
TikiWiki-devel@...
https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel
Arild Berg | 18 Apr 07:42 2014
Picon

[Tiki-devel] Unable to run trunk from SVN

Hi,

 

I just updated my local trunk installation to the latest SVN version.

Nothing seems to work.

 

1)      Attempting to start Tiki results in

 

( ! ) Fatal error: Class 'Symfony\Component\DependencyInjection\ContainerBuilder' not found in ……\tikitrunk\lib\init\initlib.php on line 61

Call Stack

#

Time

Memory

Function

Location

1

0.0000

250272

{main}( )

..\index.php:0

2

0.0000

254344

require_once( …\tikitrunk\tiki-setup.php' )

..\index.php:14

3

0.0020

559184

require_once( '…\tikitrunk\tiki-setup_base.php' )

..\tiki-setup.php:47

4

0.0090

790088

TikiLib::lib( )

..\tiki-setup_base.php:106

5

0.0090

790328

TikiInit::getContainer( )

..\tikilib.php:57

 

 

2)      Attempting to run composer results in

 

Loading composer repositories with package information

Updating dependencies (including require-dev)

Your requirements could not be resolved to an installable set of packages.

 

  Problem 1

    - The requested package rangy/rangy could not be found in any version, there may be a typo in the package name.

  Problem 2

    - The requested package undojs/undojs could not be found in any version, there may be a typo in the package name.

  Problem 3

    - The requested package tablesorter/tablesorter could not be found in any version, there may be a typo in the package name.

  Problem 4

    - Installation request for mediumjs/mediumjs dev-master -> satisfiable by mediumjs/mediumjs[dev-master].

    - mediumjs/mediumjs dev-master requires rangy/rangy >=1.3 -> no matching package found.

  Problem 5

    - Installation request for wikilingo/wikilingo dev-master -> satisfiable by wikilingo/wikilingo[dev-master].

    - wikilingo/wikilingo dev-master requires rangy/rangy >=1.3 -> no matching package found.

  Problem 6

    - Installation request for flp/flp dev-master -> satisfiable by flp/flp[dev-master].

    - flp/flp dev-master requires rangy/rangy >=1.3 -> no matching package found.

 

Potential causes:

- A typo in the package name

- The package is not available in a stable-enough version according to your minimum-stability setting

   see <https://groups.google.com/d/topic/composer-dev/_g3ASeIFlrc/discussion> for more details.

 

Read <http://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.

 

...

 

Am I missing something, or is trunk completely broken?

 

 

Arild

 

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
TikiWiki-devel mailing list
TikiWiki-devel@...
https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel
Bernard Sfez | 17 Apr 18:56 2014

[Tiki-devel] Rating tracker field in template

Hello,

In a template I need to insert a rating field from a tracker item (so people can see the score and vote).
If I insert {$row.tracker_field_productRatingStar}  it display the raw value but not the star and the vote system.

I recall there is an object type that may help somewhere but I can’t find it.
Any hint or knowledge about this ?

Bernard
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
Bernard Sfez | 17 Apr 14:44 2014

[Tiki-devel] Categories management

Hi,

I’m trying to figure how work categories, category fields and search with tracker items.

I have a a top category (Bernie) and 2 child (sub) categories (subbernie1 and subbernie2).
I have 2 items in subbernie1 and 1 item in subbernie2 .
The tracker fields for category is set with option checkbox and all descendant are set to display full path.

1/ On a tracker item I check the checkbox subbernie1 and save the path is correct Bernie::subbernie1 and so on.
If i edit back the item, only the checkbox subbernie1 (child) is checked and not Bernie (father). It would have make sense to me the father is checked automatically.

2/ If I do a filtering on the tracker and look for items in category Bernie, result 0. I would expect to have 3 items as result (2 from subbernie and 1 for subbernie2).

3/ If I look on category:
Bernie=0
• 2subbernie=1
• 1subbernie=2


I would have expected Bernie=3


It seems to me like father and child categories have no relation at all.
Is that the way it is supposed to work ?

Bernard
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
TikiWiki-devel mailing list
TikiWiki-devel@...
https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel
Gary Cunningham-Lee | 17 Apr 03:08 2014

[Tiki-devel] Another Composer glitch

Hi,

I tried Composer again and got:

[RuntimeException]
Failed to clone https://github.com/wikiLingo/Codemirror.git git was not
found, check that it is installed and in your PATH env.

'git' is not recognized as an internal or external command, operable
program or batch file.

-- Gary

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
Gary Cunningham-Lee | 17 Apr 02:51 2014

[Tiki-devel] Trunk update problems with composer

Hi,

I got errors today running Composer on my localhost:

Problem 1
 - The requested package rangy/rangy 1.3 could not be found.

Problem 2
 - The requested package tablesorter/tablesorter could not be found in
any version, thre may be a typo in the package name.

Problem 3
 - Installation request for mediumjs/mediumjs dev-master -> satisfiable
by mediumjs/mediumjs[dev-master].

Problem 4
 - Installation request for wikilingo/wikilingo dev-master ->
satisfiable by wikilingo/wikilingo[dev-master].
 - wikilingo/wikilingo dev-master requires rangy/rangy >=1.3 -> no
matching package found.

Problem 5
 - Installation request for flp/flp dev-master -> satisfiable by
flp/flp[dev-master].
 - flp/flp dev-master requires rangy/rangy >=1.3 -> no matching package
found.

Potential causes
- A typo in the package name
- The package is not available in a stable-enough version according to
your minimum-stability setting

Now I also get a a WSOD when trying to access my localhost trunk, and
found this Apache error:

"[Thu Apr 17 09:34:33.200009 2014] [:error] [pid 3632:tid 940] [client
::1:63872] PHP Fatal error:  Class
'Symfony\\Component\\DependencyInjection\\ContainerBuilder' not found in
C:\\BitNami\\wampstack-5.5.8-0\\apache2\\htdocs\\Tiki\\Trunk\\lib\\init\\initlib.php
on line 61, referer:
http://localhost:8080/Tiki/Trunk/Bootstrap+sample+elements"

Thanks for any help on this.

-- Gary

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech

Gmane