Re: [Tiki-devel] Upgraded second production site to Tiki23 - {ALTERNATE()} {ALTERNATE} has changed ?

Bsfez Tiki via TikiWiki-devel <[email protected]>
Newsgroups gmane.comp.cms.tiki.devel
Message-ID <[email protected]>
Hi,

Arfff You caught me trying to setup a short story and doing bad copy past !!! 😂

This is the code that work in Tiki22 that doesn’t using Tiki23


In my tiki22 I had:
{LIST()}
{filter content="2" field="tracker_id"}
{filter content="{{user}}" field="tracker_field_childrenFamilyName"}
{output template="child_picture_inner.tpl"}{ALTERNATE()}{TR()}No pictures{TR}{ALTERNATE}
{FORMAT(name="picture")}{display name="tracker_field_childrenPicture" default=""}{FORMAT}
{LIST}
{LIST()}
{filter content="3" field="tracker_id"}
{filter content="{{user}}" field="tracker_field_parentsFamilyName"}
{output template="child_picture_inner.tpl"}{ALTERNATE()}{TR()}No pictures{TR}{ALTERNATE}
{FORMAT(name="picture")}{display name="tracker_field_parentsPicture" default=""}{FORMAT}
{LIST}

Anyway I did more test a found a workaround using the group plugin.

https://dev.tiki.org/item7817-Alternate-block-is-cancelled-when-it-is-used-twice-in-a-module <https://dev.tiki.org/item7817-Alternate-block-is-cancelled-when-it-is-used-twice-in-a-module>

B

PS: Thanks for taking care on my "old" eyes 😂😂😂😂😂😂, shana tova





> On 30 Aug 2021, at 13:00 , Roberto Kirschbaum <[email protected]> wrote:
> 
> Hi Bernard,
> 
> If I see well, your alternate in blue does not have a closing curly bracket...
> 
> <image.png>
> 
> br
> Roberto
> 
> On Sat, Aug 28, 2021 at 1:02 PM Bsfez Tiki via TikiWiki-devel <[email protected] <mailto:[email protected]>> wrote:
> Bug declared (workaround found for my own case)
> 
> https://dev.tiki.org/item7817-Alternate-block-is-cancelled-when-it-is-used-twice-in-a-module <https://dev.tiki.org/item7817-Alternate-block-is-cancelled-when-there-no-results-at-the-top-level>
> 
> B
> 
>> On 27 Aug 2021, at 15:36 , Bsfez Tiki via TikiWiki-devel <[email protected] <mailto:[email protected]>> wrote:
>> 
>> Hello,
>> 
>> I upgraded second production to Tiki23 so far all good but an alternate thing.
>> I always used it quite simply as I didn’t find any doc about it.
>> 
>> I have a module in the top area to display a picture if exist in one tracker or another (they don’t exist in both)
>> 
>> So I have:
>> 
>> 
>> {LIST()}
>> {filter content="2" field="tracker_id"}
>> {filter content="{{user}}" field="tracker_field_childrenFamilyName"}
>> {output template="child_picture_inner.tpl"}{ALTERNATE() nothing {ALTERNATE}
>> {FORMAT(name="picture")}{display name="tracker_field_childrenPicture" default=" "}{FORMAT}
>> {LIST}
>> {LIST()}
>> {filter content="3" field="tracker_id"}
>> {filter content="{{user}}" field="tracker_field_parentsFamilyName"}
>> {output template="child_picture_inner.tpl"}{ALTERNATE()}  {ALTERNATE}
>> {FORMAT(name="picture")}{display name="tracker_field_parentsPicture" default=" "}{FORMAT}
>> {LIST}
>> 
>> If there is a picture it is displayed else nothing
>> {ALTERNATE()}  {ALTERNATE}
>> 
>> This is not working anymore (still working on the Tiki22 for the same website).
>> It show instead: the (ugly) No results for query.
>> 
>> Something changed or I don’t use properly the {ALTERNATE()}  {ALTERNATE} in a module ?
>> 
>> Bernard
>> 
>> _______________________________________________
>> TikiWiki-devel mailing list
>> [email protected] <mailto:[email protected]>
>> https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel <https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel>
> 
> _______________________________________________
> TikiWiki-devel mailing list
> [email protected] <mailto:[email protected]>
> https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel <https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel>

_______________________________________________
TikiWiki-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.