We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
  • Quote from: bennyb at Jan 31, 2013, 12:28 PM
    You can always hide the content using form customisation if it's no use and then set up a TVs for:
    IntroTV
    ContentTV
    SideboxTV
    Yes,

    Quote from: bennyb at Jan 31, 2013, 12:28 PM
    Quote from: mindeffects at Jan 31, 2013, 08:44 AM
    I would prefer the content to be just another TV, so the layout could be easily reorder as:

    You can always hide the content using form customisation if it's no use and then set up a TVs for:
    IntroTV
    ContentTV
    SideboxTV

    Yes, bennyb, that is the way I am doing it. But do you really think this is elegant? It is a workaround. I would like to see MODX become even more flexible without any paradigma how to handle the content. Having a default TV called "content" would be OK but it should just be one TV like any other.
    BTW: FormCustomization still lacks a combination setting for create AND update
    because it totaly sucks to keep those settings in sync with each other.
      MINDEFFECTS – DESIGN for PRINT, WEB and MEDIA
      http://twitter.com/mindeffects · http://www.facebook.com/mindeffects · http://www.youtube.com/mindeffects/ · skype://mindeffects_oliver
      • 37859
      • 34 Posts
      Thanks for your help so far ! Really appreciate it as a new user and forum member !
      But still no result.

      What i tried today and found weird :

      Added a few testlines to my snippet as stated below : (name of snippet [[tekstSplitser]] )

      <?php
      $delimiter='###'; // or whatever
      $text = explode( $delimiter, $inhoud );
        
      $modx->setPlaceholder( 'rnTekst1', $text[0] );
      $modx->setPlaceholder( 'rnTekst2', $text[1] );
      $modx->setPlaceholder( 'rnTekst3', blabla );
      print $text[0];
      ?>

      lines added are :
      $modx->setPlaceholder( 'rnTekst3', blabla );

      and
      print $text[0];

      In my template I use :
      <div id="tekst">
        [[textSplitser? &content=`[*content*]`]]
        [+rnTekst1+]
        [+rnTekst3+]
      </div>
      <div>...some other div with a slider...</div>
      <div id="nexttekst">
        [+rnTekst2+]
      </div>

      The weird thing is that snippetcall gives the output of $text[0], because I added the print instruction to the snippet.
      The placeholders [+rnTekst1+] and [+rnTekst2+] ---> no output !
      Placeholder [+rnTekst3+] ---> output blabla

      Strange, but can't think of any reason why placeholder [+rnTekst3+] gives output and the others don't.
        • 3749
        • 24,544 Posts
        See if this makes a difference:


        [!textSplitser? &content=`[*content*]`!]
          Did I help you? Buy me a beer
          Get my Book: MODX:The Official Guide
          MODX info for everyone: http://bobsguides.com/modx.html
          My MODX Extras
          Bob's Guides is now hosted at A2 MODX Hosting
          • 37859
          • 34 Posts
          Sorry Bob, no result cached or uncashed !

          oops , typeed an error in the snippetcall.
          Must be :
          [[textSplitser? &inhoud=`[*content*]`]]