We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 24732 ☆ A M B ☆
    • 300 Posts
    @sharkbait- groovy, will do.

    @smashingred - I’m not running on all cylinders for a number of reasons right now so I’m happy to be making progress at all honestly.

    I think I might switch to published as the date source, thanks for that tip.

    the QM vs QE thing deserves its own thread and I’ll save the topic for that and post some screen shots when I do because I’m not sure I’m seeing what should be there. And I agree with you about going back to the manager... but there is something psychologically satisfying and powerful to a client to be able to edit things -right there- and that can’t be underestimated. and thats all I’ll say about that for now. I can always reinstall it I’m sure. I will get more into v1.0.0 as soon as my sea calms again and I am able, I have been trying to work with it already as I can.

    all right, onward.

    putting photos into the intro. I’ve added the summary extender to my ditto call and changed it to truncate after 300 chars and then inserted an image in the first line just using the RTE, and so far the ditto call in question on my home page seems to want to still use introtext so I’m trying to troubleshoot that. if it is too much more hassle then I’m just going to make a TV for a photo and put it in the template and be done with it. bleah.



      ________

      Anne
      Toad-in-Chief
      Red Toad Media - Web Design, Louisville KY
      Hear me tweet: http://www.twitter.com/redtoadmedia
      "Bring on the imperialistic condiments." - Rory Gilmore
      • 24732 ☆ A M B ☆
      • 300 Posts
      okay, my css and ditto are fighting and ditto flat wins.

      my issue is that if I have the headline above the news (content) then all is groovy and I can just insert the photo in the first part of the content box, but if I have it BESIDE the news, where it should be for this design then I have to make the photo a TV or the layout will not work. And since the news posts to 3 pages, and I can’t make the photo as a TV automatically repeat on all of them then that becomes a serious pain. I have to go into each page and enter the photo?

      my head is going to explode again.

      and then for some reason the TagCloud thing is -not- working

      going to try to troubleshoot.
        ________

        Anne
        Toad-in-Chief
        Red Toad Media - Web Design, Louisville KY
        Hear me tweet: http://www.twitter.com/redtoadmedia
        "Bring on the imperialistic condiments." - Rory Gilmore
        • 24732 ☆ A M B ☆
        • 300 Posts
        okay, this might be helpful, if I use NewsPublisher then I can make a rich text summary field on a blog post page. ( What is the difference between NewsPublisher and NewsListing? or is it NewsLister? )

        and then there is this DittoFormat extra. Here:

        http://setpro.net.pl/software/ditto-stuff

        however if I go try to download it, it says file not found.

        My other issue is the tagcloud and I think I have to configure taglinks before tagcloud? and am trying to sort through the whole process of tags.

        the NewsPublisher doesnt have any results posted on it since 2005 which worries me but when I use it, it works. weird. I am trying to create a custom form for it but don’t know where to look. will keep searching. One post referenced a MODx 3.5 manual that I’m pretty sure I can’t find? but will search for next. just need an example. I’ve got some ideas from that post but need to know what action for the form to take. maybe check the source on the default. heh.
          ________

          Anne
          Toad-in-Chief
          Red Toad Media - Web Design, Louisville KY
          Hear me tweet: http://www.twitter.com/redtoadmedia
          "Bring on the imperialistic condiments." - Rory Gilmore
          • 18913
          • 654 Posts
          I needed to create a news lister and publishing capability for a client and used NewsEditor/Publisher. I’ll try to put everything down here - at the very least it might make for some diversionary reading and prevent the whole head-exploding thingy from happening ...

          So the the goal was to have a page show news events summaries, with pagination and links to "More..." if someone wanted to go directly to the entry. And the news items would be entered by a logged in web user, via a menu entry that would only appear to them. Here goes ...

          Created a document called - predictably - "News" and made it a published, shown in the menu, container. The content was this call
            <h2>[*longtitle*]</h2>
            [[Ditto? &parents=`5` &tpl=`news_tpl` &display=`4` &paginate=`1` &paginateAlwaysShowLinks=`0`]]
            <p class="ditto_pages"><span class="hspace">[+previous+]</span> <span class="hspace">[+pages+]</span> <span class="hspace">[+next+]</span></p>
          

          "5" happens to be the page itself, "news_tpl" a chunk that formats the summaries, display 2 stories at a time, yup-I-want-pagination, and then placeholders.

          Create another document, which I call NewsEditor. The call that the client site is using is this one :

          [!idw_NewsEditor? &folder=`5` &rtcontent=`content` &template=`newstemp` &cacheable=`0` &showinmenu=`0` &clearcache=`1` &makefolder=`1` &formtpl=`idw_newsItem_tpl` &headertpl=`newsHeader` &footertpl=`newsFooter`!]
          
          [!WebLogin!]
          

          "idw_NewsEditor" is my version of NewsEditor (v1.0, since superceded), which I amended to make sure a published page was cacheable/non-cacheable. This was needed because Ditto (if I recall) because Ditto is called cacheable on an non-cached page. I think. In all honesty, I’d have to fish through everything to figure out why I stumbled on that as a solution. I also changed it to change <cr><lf> to HTML
          because the client has a habit of cut and pasting from other apps. Anyway, pressing on ...

          The template is what is used to display the full item and the formtpl formats the entry of the item. We also wanted to have a chunk for a header and a footer, the latter containing a "Return to news" button.

          The chunk referred to by formtpl is this

              <form name="NewsEditor" method="post">
                  <input name="NewsEditorForm" type="hidden" value="on" />
                 <input name="editid" type="hidden" value="[+editid+]" />
                  Page title:<br /><input name="pagetitle" type="text" size="40" value="[+pagetitle+]" 
          /><br />
                  Long title:<br /><input name="longtitle" type="text" size="40" value="[+longtitle+]" 
          /><br />
                 <!--COMMENTING OUT, NOT NEEDED Description:<br /><input name="description" type="text" size="40" 
          value="[+description+]" /><br />-->
                  Published date:<a onClick="nwpub_cal1.popup();" onMouseover="window.status=\'Select 
          date\'; return true;" onMouseout="window.status=\'\'; return true;" style="cursor:pointer; 
          cursor:hand"><img align="absmiddle" src="manager/media/style/MODxLight/images/icons/cal.gif" 
          width="16" height="16" border="0" alt=" Select " /></a>
                  <a onClick="document.NewsEditor.pub_date.value=\'\'; return true;" 
          onMouseover="window.status=\'Remove date\'; return true;" onMouseout="window.status=\'\'; 
          return true;" style="cursor:pointer; cursor:hand"><img align="absmiddle" 
          src="manager/media/style/MODxLight/images/icons/cal_nodate.gif" width="16" height="16" 
          border="0" alt="  Remove  "></a><br /><input name="pub_date" type="text" value="[+pub_date+]" 
          size="40" readonly="readonly" /><br />
                  Unpublished date:<a onClick="nwpub_cal2.popup();" onMouseover="window.status=\'Select 
          date\'; return true;" onMouseout="window.status=\'\'; return true;" style="cursor:pointer; 
          cursor:hand"><img align="absmiddle" src="manager/media/style/MODxLight/images/icons/cal.gif" 
          width="16" height="16" border="0" alt=" Select  " /></a>
                  <a onClick="document.NewsEditor.unpub_date.value=\'\'; return true;" 
          onMouseover="window.status=\'Remove date\'; return true;" onMouseout="window.status=\'\'; 
          return true;" style="cursor:pointer; cursor:hand"><img align="absmiddle" 
          src="manager/media/style/MODxLight/images/icons/cal_nodate.gif" width="16" height="16" 
          border="0" alt="  Remove  "></a>
          <br /><input name="unpub_date" type="text" value="[+unpub_date+]" size="40" 
          readonly="readonly" /><br />
                  Summary:<br /><textarea name="introtext" cols="40" rows="5">[+introtext+]
          </textarea><br />
                  Content:<br /><textarea name="content" cols="40" rows="8">[+content+]</textarea><br />
                  <input name="send" type="submit" value="Submit" />
              </form>
              <script language="JavaScript" src="manager/media/script/datefunctions.js"></script>
              <script type="text/javascript">
                  var elm_txt = {}; // dummy
                  var pub = document.forms["NewsEditor"].elements["pub_date"];
                  var nwpub_cal1 = new calendar1(pub,elm_txt);
                  nwpub_cal1.path="[(base_url)]manager/media/";
                  nwpub_cal1.year_scroll = true;
                  nwpub_cal1.time_comp = true;    
          
                  var unpub = document.forms["NewsEditor"].elements["unpub_date"];
                  var nwpub_cal2 = new calendar1(unpub,elm_txt);
                  nwpub_cal2.path="[(base_url)]manager/media/";
                  nwpub_cal2.year_scroll = true;
                  nwpub_cal2.time_comp = true;    
              </script>
          

          The footer chunk looks like

          <div class="nm_button" align="center">
            <form name="returntonews" method="post" action="[~5~]">
              <input type="submit" class="button" name="returntonews" value="Return to News" />
            </form>
          </div>
          


          The header chunk is

          <h2>[*longtitle*]</h2></br><p>
          

          The chunk referred to by Ditto is
          <h4><a href="[~[+id+]~]">[+longtitle+]</a></h4>
          [+introtext+]
          <a href="[+url+]"><b>read more...</b></a>
          

          And newstemp was a stripped down template used to show the individual articles.

          I’ve been looking at the latest version of NewsEditor (v1.4) which I think has been amended to deal with TVs. But I haven’t really made any progess on it yet, having just downloaded the code from Google (I think) yesterday.

          Hope this helps. And if anyone sees things I shoulda/coulda done differently, I’d appreciate hearing about it.
          MattC
            • 24732 ☆ A M B ☆
            • 300 Posts
            MattC, you rock. thank you so much. I’m totally going to come back and mine this for gold!!

            for tagging reference to watch:

            http://ditto.modxcms.com/screencast/tagging.html

            for reference to go back and work through if I run into issues: with the tagging
            http://modxcms.com/forums/index.php/topic,42261.0.html
              ________

              Anne
              Toad-in-Chief
              Red Toad Media - Web Design, Louisville KY
              Hear me tweet: http://www.twitter.com/redtoadmedia
              "Bring on the imperialistic condiments." - Rory Gilmore
              • 27708 MODX Staff
              • 2,502 Posts
              @redtoad,
              my issue is that if I have the headline above the news (content) then all is groovy and I can just insert the photo in the first part of the content box, but if I have it BESIDE the news, where it should be for this design then I have to make the photo a TV or the layout will not work. And since the news posts to 3 pages, and I can’t make the photo as a TV automatically repeat on all of them then that becomes a serious pain. I have to go into each page and enter the photo?

              I am not certain about the entire issue but I understand that you don’t want to put the image in a TV because you don’t want it to show up in other places or you do? Where do you want the photo to be displayed? Is it a photo about the news story? Can you link to a page or a screen capture?

              If you are placing a photo into a tv and the news story is shown in multiple places you just need to include the TV placeholder in the various ditto calls.

                Author of zero books. Formerly of many strange things. Pairs well with meats. Conversations are magical experiences. He's dangerous around code but a markup magician. Blog ✦ Twitter ✦ LinkedIn ✦ GitHub
                • 24732 ☆ A M B ☆
                • 300 Posts
                how do I include the TV placeholder in the ditto calls? can you point me to an example or give me an example? I didn’t see that anywhere. Do you mean the Tv would be in the template? because that is how I have it now.

                I need the picture to show up on the home page, the news page and the the post page, all three but only want to have it entered once.

                I have downloaded NewsManager from the "extras" area and think that this is the NewsEditor, it is just newer? Thank you so much for the pointer.
                  ________

                  Anne
                  Toad-in-Chief
                  Red Toad Media - Web Design, Louisville KY
                  Hear me tweet: http://www.twitter.com/redtoadmedia
                  "Bring on the imperialistic condiments." - Rory Gilmore
                  • 27708 MODX Staff
                  • 2,502 Posts
                  Anne,

                  Any tv can be called from a ditto template chunk. You just insert [+TvName+] where TvName is the name of the tv that you would call normally like [*TvName*].

                  So if this were your Ditto template chunk (an example only):
                  <h4><a href="[~[+id+]~]">[+longtitle+]</a></h4>
                  
                  <!-- You can do it this way if you are just using an image path in the tv-->
                  <img src="[+imgTV+]" />
                  
                  [+introtext+]
                  <a href="[+url+]"><b>read more...</b></a>
                  
                    Author of zero books. Formerly of many strange things. Pairs well with meats. Conversations are magical experiences. He's dangerous around code but a markup magician. Blog ✦ Twitter ✦ LinkedIn ✦ GitHub
                    • 24732 ☆ A M B ☆
                    • 300 Posts
                    okay, yes that is what I have right now. But then that TV has to be defined on three pages, doesn’t it? If I define it for the template and it goes into the newspost page, will it also show up on the home page if I have the home page pulling the most recently posted news article? I tried it and even when I made the TV accessible to the home page template, it didnt show up so I thought I had to have it entered on -each- page? Like... the TV would be at the bottom of the home page editor and you’d have to put it in there? I hope I’m wrong.


                    I’ve changed it since or I would paste the code in now.

                    Does NewsEditor support tagging? I don’t see that anywhere.
                      ________

                      Anne
                      Toad-in-Chief
                      Red Toad Media - Web Design, Louisville KY
                      Hear me tweet: http://www.twitter.com/redtoadmedia
                      "Bring on the imperialistic condiments." - Rory Gilmore
                      • 24732 ☆ A M B ☆
                      • 300 Posts
                      <div id="newsfeed">
                       <div style="float:left; margin:5px;"><img src="[*newspic*]"</div>
                      <p> <br /><a href="[~[+id+]~]" class="newsroom">[+pagetitle+]</a><br />
                                   <p class="author">[+date+]</p>
                                   <p class="author">posted by <a href="#">[+author+]</a> </p>
                                   <br />
                                   <span class="style2">[+introtext+] </span><a href="[~[+id+]~]" class="readmore">
                                  READ MORE
                                  </a> </p>
                      
                      </div>


                      but I’ve got the TV coded differently. you have it with plus signs. hrm. okay so you are saying that if I put it in there with [+foo+] instead of [*foo*] then it will repeat?
                        ________

                        Anne
                        Toad-in-Chief
                        Red Toad Media - Web Design, Louisville KY
                        Hear me tweet: http://www.twitter.com/redtoadmedia
                        "Bring on the imperialistic condiments." - Rory Gilmore