We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 6726
    • 7,075 Posts
    Did you check that the [+parent+] placeholder has a value ?
    I guess you did...

    Maybe try GetField 1.3 beta ?
    http://modxcms.com/getField-667.html

    Don’t know what else to suggest... except ask Grad !
      .: COO - Commerce Guys - Community Driven Innovation :.


      MODx est l'outil id
      • 24731 ☆ A M B ☆
      • 211 Posts
      Quote from: davidm at Apr 24, 2007, 09:44 AM

      Did you check that the [+parent+] placeholder has a value ?
      I guess you did...

      Maybe try GetField 1.3 beta ?
      http://modxcms.com/getField-667.html

      Don’t know what else to suggest... except ask Grad !

      Yes I had, I even hardcoded the value for testing purposes and it still did not work.

      I decided to take a different approach for what I intended using MaxiGallery, still I am using GetField for many other purposes in the page. Greatly appreciate your help.

      Regards,
      Jose R. Lopez
        • 27330
        • 884 Posts
        thanks for a great snippet!

        is there any problem calling getField more than once on same page in 2 different ditto calls?

        I’m trying to get an image from a tv, this one pulls the image correctly:
         <a href="[~[+id+]~]" > <img src="[!GetField? &docid=`[+id+]` &field=`camera-image-small`!]" alt="[+title+]-image" width="120" height="120" border="0"/></a>


        however if I try the same code in another chunk on the page the image is not passed, i see the block and alt but the image properties url is:

        http://www.domain.com/[!GetField?%20&docid=%6017%60%20&field=%60camera-image-small%60!] 


        anyone have an idea what I’m doing wrong?
          • 27330
          • 884 Posts
          bump anyone?


          http://www.site.com/[!GetField?%20&field=%60http://site.com/assets/images/cameras/wvcp240ex-small.jpg%60%20&docid=%6068%60%20!]
            • 7455
            • 2,204 Posts
            but when this is ditto why not use the tv directly insite the ditto template like this:

            <a href="[~[+id+]~]" > <img src="[+camera-image-small+]" alt="[+title+]-image" width="120" height="120" border="0"/></a>


              follow me on twitter: @dimmy01
              • 17919
              • 5 Posts
              Hello,

              I’m trying to do a similar thing. Retrieving and showing the content of a TV (blogContent) called form wich is in "RichText". I call it with :
              <div>[+blogContent+]</div>

              inside a Chunck. But it import the all TV. Form and content...

              But I only want the content. How do I do that ? That’s something I don’t understand. I’ve tried with the GetField plugin, but no more luck...

              Solved :

              Arrrgh! The solution was to put the TV’s "widget" as a "HTML Entities", before it was of the type "RichText"...


              Maelvon
                • 34017
                • 898 Posts
                Method 1:Would it be possible to parse the TV fields inside a field. We could set a parameter that says &parseTVs=’1’.
                [[GetField? &docid=`1` &field=`content` &parseTVs=`1` ]]
                


                Method 2:We could even make it only parse the TVs that are menttioned in the call such as:
                [[GetField? &docid=`1` &field=`content` &parseTVs=`1` &TVs=`product_price,page_title,summary` ]]
                


                With method 2, the code wouldnt have to search for all TVs, it would only have to replace the ones mentioned.
                  Chuck the Trukk
                  ProWebscape.com :: Nashville-WebDesign.com
                  - - - - - - - -
                  What are TV's? Here's some info below.
                  http://modxcms.com/forums/index.php/topic,21081.msg159009.html#msg1590091
                  http://modxcms.com/forums/index.php/topic,14957.msg97008.html#msg97008
                  • 6531
                  • 154 Posts
                  I can’t get this snippet to work at all. I created a snippet, and copied the .inc.php to
                  /assets/snippets/getfield/getfield.inc.php

                  But when I call it, it returns nothing. I don’t even know how to troubleshoot it.

                  Calling it with
                  [tt][!GetField? &parent=`1`!][/tt]

                  Also tried
                  [tt][[GetField? &parent=`1`]][/tt]

                  How do I solve this?
                    • 12379
                    • 460 Posts
                    I’m using 0.9.6.1 and getting the following error:

                    « MODx Parse Error »
                    MODx encountered the following error while attempting to parse the requested resource:
                    « PHP Parse Error »

                    PHP error debug
                    Error: Unknown(assets/snippets/getfield/getfield.inc.php): failed to open stream: No such file or directory
                    Error type/ Nr.: Warning - 2
                    File: e:\inetpub\vs108110\manager\includes\document.parser.class.inc.php(769) : eval()’d code
                    Line: 59

                    I’ve checked the path and all is ok.


                      Mostly harmless.
                      • 37514
                      • 178 Posts
                      Can you install without http://piratemachine.org/software/modxresourcewizard.html

                      which seems to be unavailable?