Print Reseller Scheme
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Confusing header.php

Discussion in 'Website Coding & Programming Forum:' started by DaveGears86, Jun 6, 2012.

  1. DaveGears86

    DaveGears86 Member

    I hope somebody can help, I'm confused!

    Long story short - I've been asked to look at a clients website (I have access to the server etc.), when I get in there I discover that the website is a template attached to CMS.

    Anyway, I wanted to edit the websites navigation menu (simple, or so I thought), I find that there is a "header.php" link at the top of each page for the website, which I understand is holding the menu inside, so I open up header.php which looks like this:

    I understand that the menu is "<microweber module="content/menu" name="main_menu" ul_class="nav pull-right" />"
    But my question is - Does this mean that the menu is only editable in the CMS control panel?
    (I'm waiting for a reply from the site owner for some insight on how to use his CMS as it is very messy but I wanted to be sure that the menu is indeed hidden away in the CMS)

    p.s. - I hate template/CMS clients, for some reason it always makes me feel like my freedom to edit the website is harnessed, I want to code like a real man!
  2. Corrosive

    Corrosive Moderator Staff Member

    That is why, hands down, ModX is the best CMS available to web designers right now... In my opinion :icon_wink:

    No idea about your template issue, sorry. Sounds like a mess!
  3. Edge

    Edge Active Member

    If you want to edit the template for the menu then download the site by ftp and do search for navbar. It should then be obvious which file is generating the menu.

    Coding a site from scratch makes no sense to me when there are dozens of very good CMS's out there which have done 75% of the work for you already. The CMS's I don't like are the cock-a-maimy bespoke ones developed by some clever dick developer who thinks he can reinvent the wheel better than anyone to date.
  4. Edge

    Edge Active Member

    post hijack warning - What attracted you to ModX as opposed to CMS's like Wordpress, Drupal and Umbraco? Can you raise this as a topic?
  5. Corrosive

    Corrosive Moderator Staff Member

    The short answer is that it suits my approach to web design. Everything (templates, menus, search facility and so on) is handled in the manager area. No FTP and 'hacking' templates/files. Once ModX is installed, everything can be done through the manager. This is far more intuitive for me. I have done Wordpress sites but it was a couple of years ago, so my coding was not at the level it is now and the thought of going into a file called 'header.php' and changing that to alter a menu would have seemed too daunting.

    I'd probably get on far better with Wordpress now but I see no reason to when ModX does what I need.

    Wordpress is ideal for people who want a site, find a template they like, stick a logo on it and publish and ModX would be too much for someone who can't code HTML/CSS because there is no source of templates for it. But, if you can code layouts, then give it a try, it can be very liberating.

    The other CMS I have experience with is Drupal. Incredibly powerful and very well extended by highly skilled developers but way too much to hand over to a client at the level we build for. I'd spend a week just training it out whereas both WP and ModX are a lot more 'technophobe' friendly and can be trained out in a couple of hours.
  6. dedwardp

    dedwardp Member

    What would be your recommended way to learn ModX, Corrosive?

    I'd like to think I have a good knowledge of HTML and CSS, so it's going beyond that with PHP and so on where I am currently restricted. I would love to be able to get to grips with something like ModX though, so would it just be a case of trying to learn PHP first or how would you suggest I go about it?

  7. Corrosive

    Corrosive Moderator Staff Member

    Nope, you don't need any PHP knowledge at all with ModX, unless you want to extend it with your own functionality (which I do from time to time but only basic 'snippets'). I started with this set of tutorials; Beginner Tutorials | The Coding Pad just make sure you use the ModX Revolution and not Evolution ones! Usual rule applies, get yourself a local test environment (WAMP, MAMP) and run it on there so you can screw up whatever you want to get to grips with it.

    After that, the forum (MODX :: MODX Community Forums) is excellent and the rtfm (Home - MODx Revolution 2.x - MODx Documentation) sources are good but they 'assume' that you are familiar with some ModX terminology so it can be a bit like treacle sometimes. As ever, here to help, so shout if you hit a sticky patch (so to speak) and I'll see what I can do.

    Stick with it as it may seem daunting to start with but offering this level of flexibility to clients whilst delivering pixel-perfect layouts has got to be worth it.
    dedwardp likes this.
  8. Corrosive

    Corrosive Moderator Staff Member

    And sorry Dave, as sdesign1 said... we have hijacked your thread :icon_blushing:
  9. dedwardp

    dedwardp Member

    Thanks, I'll take a good look. Got some time available coming up so will be worth having a good look into it I feel!

    And yeah, sorry Dave!
  10. DaveGears86

    DaveGears86 Member


    no worries, the thread may as well become useful for something as I'm still waiting on answers from the guy (pretty certain he has a hidden CMS panel he hasn't told me about which is where the nav is)

Share This Page