We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 23299
    • 1,161 Posts
    Phew!

    Its slow going getting used to MODx!

    I am attempting to convert a small static auto club site to MODx. I created two pages, the Home page and a Calendar page. I created a template that includes the layout, main navigation, banner, right column, footer and an intro paragraph to the left (main content) column. I created a [*content*] area and am able to add fresh content into that area using the File Manager. I also finally figured out how to link pages to each other by inserting [~id~] instead of my regular a:href links. My two pages render well and the CSS is working. So far so good...

    Three Questions:

    * I am running MODx using MAMP on my Mac but when I try to upload images using the editor the images will not load. I can navigate to them fine but nothing happens when I hit the Upload button.

    * I am slowly getting into adding some dynamic snippets. I added the WebLogin snippet into my set right hand column in the main template. The text (User, Password, Rember Me etc) for the WebLogin is way too big. How can I style this? I see the code for this snippet is all table based?

    * Also, how do you best handle the logins for users? How do you display the appropriate Login snippet so that when a new user opens the page he is presented with a "SIGN UP" panel, but when an existing user opens the page he is presented with a "LOG IN" panel and once the user is logged in he is presented with a "LOG OUT" panel?

    I guess thats it for now.

    Thanks in advance!

    Max
      • 7231
      • 4,205 Posts
      * I am running MODx using MAMP on my Mac but when I try to upload images using the editor the images will not load. I can navigate to them fine but nothing happens when I hit the Upload button.
      Mine works the same, I guess it has to do with the file system. I always just drag-n-drop the files when working locally so I never noticed this before.

      * I am slowly getting into adding some dynamic snippets. I added the WebLogin snippet into my set right hand column in the main template. The text (User, Password, Rember Me etc) for the WebLogin is way too big. How can I style this? I see the code for this snippet is all table based?
      Use the &tpl parameter and create your own template, there is a nice modern one available in the demo site chunks named FormSignup that could be a good starting point.

      #	&tpl			- (Optional)
      #		Chunk name or document id to as a template


      * Also, how do you best handle the logins for users? How do you display the appropriate Login snippet so that when a new user opens the page he is presented with a "SIGN UP" panel, but when an existing user opens the page he is presented with a "LOG IN" panel and once the user is logged in he is presented with a "LOG OUT" panel?
      Not sure about this one. Before logging in there is no way to know if it is a registered user or not (you could create a cookie and check that). I would have the login form with a link to the signup page "if not registered".
        [font=Verdana]Shane Sponagle | [wiki] Snippet Call Anatomy | MODx Developer Blog | [nettuts] Working With a Content Management Framework: MODx

        Something is happening here, but you don't know what it is.
        Do you, Mr. Jones? - [bob dylan]
        • 23299
        • 1,161 Posts
        Thanks!

        That’s good info.