This forum is for churches and ministries using Web-Empowered Church tools or packages. If you are a WEC customer, please submit a ticket. If you are reporting a bug with one of our plugins, please email us. If you are a business entity and want help that you cannot find here, please look at our services.

Notice: we are using new forum software and most messages from last 2 years were transferred. If you had an account before, please login to post a message on the forum.

Topic with no new replies

tables.*.where with stdWrap?


Author Message
Written on: 09/27/2010
Deleted user Hi,
in the manual section “Table Map TypoScript Reference” I read the property “tables.*.where“ has stdWrap.

The static version works correctly with:
[code]where = uid_foreign = 83[/code]

But if I write “uid_foreign = 83” in “myField” in the table pages and if I want get the text with data from myField this doesn’t work:
[code]where.data = page:myField[/code]
or
[code]where.stdWrap.data = page:myField[/code]

I try also this:
[code]
where.stdWrap.cObject = TEXT
where.stdWrap.cObject.value = uid_foreign = 83
[/code]

Nothing happens. Is there really stdWrap available?

Best
Mathew
Written on: 10/09/2010
Christoph Koehler
registered since: 10/24/2005
Posts: 383
Matthew,

I pass what we get from TS into the stdWrap function on the content object:

$where = $this->cObj->stdWrap($tconf['where'], $tconf['where.']);

The first argument is the stuff directly after "[..].where = foo", and the stuff inside the second argument is anything that comes after where, like "[...].where.foo = bar".

Unfortunately I don't know enough about TS stdWrap to help you out much, but as far as I can tell, you should be able to use stdWrap here. If you know your TS is correct and works other places, maybe you could help me get some simple test configs and the expected outcome, and I can check it out.

As it is now, I am not sure where to look to fix it.

Christoph