We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 4071
    • 2 Posts
    Creating the Sections

    My question is when I was setting up my blog below indicates setting up a resource with a container, I am very confused, I have no setup a modStaticResource (is this correct) for posts to be located, or is there a way to setup a folder as a container with code as the blog tutorial indicates.

    http://rtfm.modx.com/display/revolution20/Creating+a+Blog+in+MODx+Revolution

    Creating the Sections
    If you want your blog to have ’Sections’ (also called Categories), you’ll first need to create those Resources.

    For this tutorial’s purpose, we’ll create 2 sections: "Personal" and "Technology". Go ahead and create 2 Resources in the root of your site, and make them ’containers’. You’ll want to
    have their alias be ’personal’ and ’technology’, so your blog post URLs turn up nicely.
    We’ll say from here on out that our two Section Resources have IDs of 34 and 35, for reference.

    Make sure you don’t use the BlogPostTemplate on these, and use instead your own Base Template. These pages will end up being a way to browse all posts within a certain Section. In the content of these Resources, go ahead and put the following:

    Thank you!
    -
      • 10972
      • 1 Posts
      i want to know how to do it can someone provide a tutorial for this one thanks
        • 17897
        • 46 Posts
        It means you create a new resource and all posts that you want to get posted in that section will need to be created under (indented in the tree) that section. They will become containers automatically as soon as you create documents udner them, or you can set the option (checkbox) in the resource settings tab.
          • 4071
          • 2 Posts
          Awesome, thanks madmattd smiley