We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 1549
    • 20 Posts
    I cannot even name the topic right... I am not sure how!

    Here’s the deal. On http://www.panonius.com/portal I got my index page. As you can see I have ditto summarised articles on the front.
    When a certain link ( document ) is clicked on, I get a look like this: http://www.panonius.com/portal/index.php?id=19
    I want to display my full document ( when clicken on from the front ) in the div just like in the front just with expanded content ( full story like ).

    How do I do that ?
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      Do you mean that you want a list of summaries, just like the first page, but you want the first article to be the full-length article and not a summary?
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 1549
        • 20 Posts
        I cannot explain my damn problem....

        I want my "Clicked on" article to have its box ( with colors and stuff ) different than the one on the index page.
          • 28042 ☆ A M B ☆
          • 24,524 Posts
          Indeed, I really don’t understand what you want. Perhaps we can clarify things a little.

          You have a "news" page, that displays a list of news items (using Ditto or NewsLising). Each news item has a title that is a link, a summary, and a "read more..." link, and maybe author and date information. Each item is styled in some way, with a box, links a certain color, etc.

          Now when you click on one of the titles or "read more..." links, you go to the actual document containing the full article for that news item. Is it this page that you want styled in a certain way?
            Studying MODX in the desert - http://sottwell.com
            Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
            Join the Slack Community - http://modx.org
            • 1549
            • 20 Posts
            Yes. To clear things out for you:

            http://www.panonius.com/portal > click on the first article and you get this
            http://www.panonius.com/portal/index.php?id=19 .

            I want the full article to have a DIV with colors, paddings&stuff, title,author & date... just like in Ditto, but to be expanded ( full text ).

            Smthing like this: http://img58.imageshack.us/my.php?image=this4cd.png

              • 28042 ☆ A M B ☆
              • 24,524 Posts
              Make a new template for the individual news documents (basically just a copy of your main template; it can even use the same CSS file), with additonal HTML in the "main" section to match the chunk you’re using for the summaries page.

              Where you put the [+summary+] placeholder tag in the summary template, use the [*content*] tag. The same with the other placeholder tags for the [*pagetitle*] or [*longtitle*] or whatever else you might want to display.

              You can use this snippet to get the date and author; it uses placeholders so you can place them where you want in the template with their [+...+] tags.
                Studying MODX in the desert - http://sottwell.com
                Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                Join the Slack Community - http://modx.org
                • 1549
                • 20 Posts
                yeah... I know that it is possible with 2 templates, but heck I don’t want 2 templates... I make a change to one, then have to repeat for another... but tnx anyway.

                Is it possible with TV’s ?