We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36624
    • 535 Posts
    hello,

    are TV supported in maxigallery ??

    i explain :
    i’m trying to do a list of gallery with a specific date tv but i cant have it working.

    my output must look like :


    • Name, mydate
    • Name, mydate
    • Name, mydate
    so this is the maxi call :

    !MaxiGallery? &childgalleries_ids=`all` &display=`childgalleries`  &childgalleryTpl=`mgGalPicTplMenu` &disable_js_libs=`1` !]


    so i the "mgGalPicTplMenu" chunk i put that :
    <li> [+maxigallery.pageinfo.pagetitle+],  [+maxigallery.pageinfo.mydate:date=`%Y`+] </li>

    but the output of the tv "mydate" is empty...

    • project1,
    • project2,
    so i tried with Getfield just to investigate :
    <li> [+maxigallery.pageinfo.pagetitle+], [[GetField? &field=`mydate` &docid=`[+maxigallery.pageinfo.id+]`]]</li>


    and i get this result :

    • project1, 1188468637
    • project2, 1190974249


    in the documentation i see that TV’s are accessible in childgallerytpl so i retry with a simple text tv like "[+maxigallery.pageinfo.testTV+]" ..but same results it’s empty.. :’(

    what’s wrong with me ?

    ps: i tried on a second install of modx but it’s the same problem..

    Thx in advance.
      CTRL+SHIFT+U - Clear Cache
      CTRL+SHIFT+H - Hiding Heft Panel
      CTRL+SHIFT+N - Fast Create Resource
      CTRL+ALT+P - Preview Recource (in edit resorce window)
      CTRL+ALT+S - Save
      • 7923
      • 4,213 Posts
      Yes, the TV’s should be supported and they should work like that. I tested them when I made the feature available, but haven’t tested them lately.. I’ll try to see if there’s something wrong with it sometimes soon and post back.


        "He can have a lollipop any time he wants to. That's what it means to be a programmer."
        • 36624
        • 535 Posts
        thx for your quick answer !!! i will sit there and wait.. grin
          CTRL+SHIFT+U - Clear Cache
          CTRL+SHIFT+H - Hiding Heft Panel
          CTRL+SHIFT+N - Fast Create Resource
          CTRL+ALT+P - Preview Recource (in edit resorce window)
          CTRL+ALT+S - Save
          • 7923
          • 4,213 Posts
          Ok, I looked into it now and it works.. but I had documented it very badly.. didn’t remember that I made it so that TV’s are referred like this:

          [+maxigallery.pageinfo.tv.tvnamehere+]

          So in your case, it would be:

          [+maxigallery.pageinfo.tv.mydate:date=`%Y`+]

          Sorry for the trouble, I’ll go and edit the wiki page smiley


            "He can have a lollipop any time he wants to. That's what it means to be a programmer."
            • 36624
            • 535 Posts
            .. and it works !!

            [+maxigallery.pageinfo.tv.tankyou+] my [+maxigallery.pageinfo.tv.hero+]
              CTRL+SHIFT+U - Clear Cache
              CTRL+SHIFT+H - Hiding Heft Panel
              CTRL+SHIFT+N - Fast Create Resource
              CTRL+ALT+P - Preview Recource (in edit resorce window)
              CTRL+ALT+S - Save