We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 5854
    • 39 Posts
    Hello Everybody!

    My name is AR, a Graphical Designer and Web Developer from Luxembourg.

    I know this may sound weird or out of place but I am having great difficulty adapting my XHTML interpretation to the MODX CMS.

    Website in question: http://www.fiery-legends.de

    I have successfully installed the CMS (I can login into the Manager) but once I add in "snippets" such as for the content or title they don’t seem to function.

    ANY HELP would be greatly appreciated!

    Also, does anyone know if there are any add-ons out there for gaming templates under MODX?


    Thank you in advance,

    Best Regards,

    AR

    http://ar.fiery-legends.de
      • 26903
      • 1,336 Posts
      If you look at your page source your getting a few error like this :-
      <b>Warning</b>: include(specials.php) [<a href=’function.include’>function.include</a>]: failed to open stream: No such file or directory in <b>/home/counterfire/public_html/flclan/index.php</b> on line <b>80</b>




      I’d correct these first, your tv declarations for longtitle and content look OK the content one needs to be in your template.
        Use MODx, or the cat gets it!
        • 5854
        • 39 Posts
        Quote from: shamblett at Mar 19, 2010, 05:29 AM

        I’d correct these first, your tv declarations for longtitle and content look OK the content one needs to be in your template.

        Could you please clarify? Where precisely? Also do I have to copy this index.php as a TEMPLATE in the manager? Because at the moment the website is calling from the index.php which I uploaded into the Webspace

          • 27708 MODX Staff
          • 2,502 Posts
          Welcome to MODx.

          First lets define some terms. Document Variables are what you call in your template to show fields from a document [*pagetitle*] or [*content*] or [*longtitle*]. Snippets are small php scripts that return output. Chunks are small chunks of HTML code that you can use or reuse in multiple locations in templates or documents.

          You do not copy index.php at all nor do you touch it. index.php is the mechanism on your site that handles all site requests and makes it work. You don’t modify, copy or adjust it in any way. Content Management systems typically use the index.php in this fashion. All content, templates and script elements can and by default (you can put things on the filesystem if needed but this is more advanced) be inside their corresponding spaces in the MODx Manager. Templates, Chunks, Snippets, Template Variables, Plugins and Modules are MODx Elements. Document content goes in document resources.

          You first need to create a template in the manager from Elements>Manage Elements>Templates. A template then must be assigned to your documents. I would recommend either reading the documentation or setting up a parallel installation of MODx with the sample site installed that will allow you to review and inspect how a site is built in MODx.

          Cheers.

            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
            • 27408
            • 33 Posts
            The basic idea behind MODx is this:

            You use MODx as your framework, its not visible to the end user, but it powers the engine behind it. To do this you put all the HTML, PHP, Javascript, CSS inside MODx, where it gets stored in a database and can be dynamically pulled out of the database. 99% of the basic level editting of your MODx website is done inside the manager.
            No need to get into the .php files on your server just yet!

            What you need is this:

            A template, this is the document that gives layout and structure for all you pages. You could use more then one template if you want. Inside this template you also specify where certains things are place using placeholders, for example, where pagetitle, content, etc are put.

            Then you create documents in the manager (Using the menu on the left), you apply a template to them.
            Thats the basic way of using MODx, there is muc, much more possible, just ask around, read some documentation etc. I know its though to find information about MODx, I ran into the same problem when I started out with MODx. Thats what a community is for though!
              • 5854
              • 39 Posts
              Ok. After reading both of your replies I obviously found out, the best way to go around it is by trying.

              I have a question though so that I can start off in the correct direction:

              My current index.php (http://www.fiery-legends.de), what needs to be removed/added so that I can "leave it alone for the moment" as you say?

              Thank you for your quick replies!

              EDIT: I just re-read your posts, MUST I keep the ORIGINAL index.php?? Because if I understood correctly, that is the engine of the CMS/Website??

              EDIT2: WOOT! I finally understand, it is coming together! So if anyone wants to know here is how the people helped me out and how I reacted:

              - Keep original index.php (!!!)
              - Add a new "template" with the code of your website (if custom)
              - Insert the snippets IN THE template you created (2nd point)
              - Create templates for each "box", "content-page" etc


              Please correct me if I am wrong!
                • 5854
                • 39 Posts
                Sorry for the double post but after I have made a template for my design layout (linked to an external stylesheet.css) I want to begin linking the navigation (to display content in the content area) I tried "index.php?id=9" but it reverts the entire website back to the original (basic) MODX design.


                (selected the "layout" for "used template")

                (3 basic templates which I want to be displayed in the content)

                Nopaste of the layout template: http://k3rmit.org/nopaste/585

                Any help would be fantastic =)
                  • 4172
                  • 5,888 Posts
                  you have to choose the right template for each resource.
                  In tools->configuration you can also set the default-template for your site.
                  With activated inherit template plugin each child has the inherited template of its parent.

                  If you add direct links you don’t use
                   index.php?id=9
                  normally. Use this sytnax with modx-tags
                  [~9~]
                  . This will create the URL for your link.

                  For your dynamic navigation you use the snippet wayfinder..........
                    -------------------------------

                    you can buy me a beer, if you like MIGX

                    http://webcmsolutions.de/migx.html

                    Thanks!