Wednesday 19 January 2011

MODx Revolution Tutorial for beginners – Part 2

Introduction
Ok, so following on from Part 1 of this guide, you should have your install of MODx Revolution up and running! If you use your username and password that you selected during the installation process, you’ll be able to login and see the MODx manager administration screen. Pretty, isn’t it?

With MODx Revolution, you start from a completely clean slate. If you’ve used MODx Evolution before, you’ll notice that there is no pre-installed site template, or content, or extras. All you get is a very basic template which just outlines the default HTML tags, and a single resource with no content in it. For me, this is a big plus for Revolution. I don’t have to go in and remove a load of bits I don’t want to use. I can just fetch add-ons when I want them.

Site Configuration
There are lots and lots of different ways you can configure MODx from the Manager. You’ll need to use the System Settings at various times throughout a project, so it’s probably wise to have a quick look into how it all works before we get started on anything too serious!

So, in the Manager, hover your cursor over ‘System’ and select ‘System Settings’ from the drop down menu. You’ll then be taken to the System Settings screen where you can set general preferences and configuration settings for the MODx manager interface, as well as how your MODx site runs.




Feel free to have a good look through all of the different options you can change here. There is a ‘Filter by area’ drop down where you can choose to look at settings associated with a certain area (Friendly URLs for example), a text search where you can simply type in the name of the setting you’re looking for, or a drop down where you can look at settings for some of your add-ons (don’t worry, you shouldn’t have any yet and by default, this option is set to ‘core’. You can also create your own settings, but that’s definitely for another day!

What I want to alter now is the name of your site. In your default template, the name of your site is currently being used in the title tag. In most cases, this would be the name of the company who’s website you’re building, or your name if it’s a personal site. To find the setting we want to change, use the ‘filter by area’ drop down menu, and select ‘Site’.



Your settings should change, and if you look half way down the list you’ll see a setting entitled “Site Name”. Double-click on the default Site Name (it will probably read ‘MODx Revolution’) and alter it to whatever you like. I’ve changed mine to “My new fabulous MODx site!”.



Hit the enter key, and you’re done. Easy eh? There’s no need to hit a save, or submit button, as soon as you’ve amended the setting and hit enter, you’re done. Now, if you go to another browser tab or window, and load up the front end of your site, you should see that the title of your page has changed to the Site Name you just entered. Have a look at the Source too. This will show you that the new Site Name has been placed inside the title tag. Now I’ll show you why it’s appeared there.



A quick intro to Templates
If you go back into your Manager, on the left-hand side you’ll see a box with three tabs called Resources, Elements and Files. We’ll be using Resources more in the next part, so for now, click on Elements. You’ll see a list of categories, all with different icons. Now don’t be afraid, you’ll learn what all of these are, and what they do throughout this series of tutorials. The one we’ll use for now is Templates. If you click the small arrow next to Templates, it should open and you’ll see one little file underneath it called ‘BaseTemplate’. This is the simple template that you’re provided with when you download MODx Revolution.

As the name suggests, templates provide your site with structure. You can apply a different template for every single page on your site if you wish, or, more likely, you’ll have just a few different templates ensuring that your site has the same look and feel throughout.
If you look at the code in the template, inside the title tag you’ll see an odd looking piece of code that looks something like [[++site_name]]. Yep, you guessed it, this is your Site Name! That specific syntax ([[++something_or_other]]) is used for MODx system settings. More about that later.



Installing Add-ons
So I think so far we’ve established that MODx Revolution is incredibly cool. Well, we’re just getting started, so be prepared for way more coolness. We can raise the cool factor tenfold by installing add-ons for our site.

Add-ons help us to perform tasks within MODx that make it much more dynamic. There are lots of different add-ons, way too many to go into, and the amount is growing on a daily basis. In MODx Evolution, some of the more popular add-ons were pre-installed, and to get others, you had to go to the MODx website, download the files, upload them to your site via FTP or copy and paste the code into a new snippet. Either way, it wasn’t ideal, and this has been addressed in MODx Revolution, where you can download and install add-ons within the manager. Brilliance!

One add-on that you’re likely to want to install (especially if you’re going to be handing the site over to somebody not code-savvy at some point) is TinyMCE. TinyMCE is a rich text editor, meaning we don’t have to delve through the code to add paragraphs, headings, images etc.

So, hover over ‘System’, and then select ‘Package Management’ (catchy eh?!).



You’ll see two buttons, one called ‘Add new package’ and the other called ‘Download Extras’.



Click on ‘Download Extras’, and you’ll see a dialog screen. This is another place that you’ll become very familiar with if you’re building MODx sites with some degree of complexity, so before we download anything, feel free to have a little look around to see what’s on offer.



There are a series of different categories on the left. A nice little explanation of these is given for each of these on the Codingpad, but for those too lazy to click a link, it is as follows:
  • MODx Addons – these are functional bits and pieces that are not part of the MODx core, such as galleries, menu builders, tagging snippets, etc. They do not change the core but simply add functionality.
  • Core Extensions – These are additions to the core itself that change how MODx works. They affect how parts of the core work.
  • FrontEnd Templates – These are ready made templates that are packaged for an easy install and setup. If you don’t want to build/port your own template you can grab one of these and play with them, use them as they are, or modify them to suit your needs.
  • Manager Templates – These are backend templates to change the look of your manager. These will affect just the look, not the functioning, of your manager.
  • Site Packages – These are prebuilt complete sites that you can install and explore. This is great if you just want to demo MODx and see how it works. A prebuilt site like this can also be a great learning tool as you can explore the backend and learn how different things are implemented.
You’ll probably find yourself within the MODx Add-ons category most often (I do anyway), and thats where we’re going now.



By clicking the small arrow next to ‘MODx Add-ons’, you’ll see the categories within it drop down. Select ‘Rich Text Editors’ from the list, and you’ll see the items on the right change. The one we want is TinyMCE, so click on the ‘Download’ button that corresponds with it, wait until that button changes to read ‘Downloaded’ and then click ‘Finish’ in the bottom left.



You’ll now see that TinyMCE has been listed, ready to be installed! Click on the install button, follow through the steps shown, and then you’re done.



If you go to the ‘Resources’ tab in the box on the left (next to ‘Elements’) and click on your ‘home’ resource, you’ll see that you’ve got a nice text editor thats been added to your main content area. Thats TinyMCE!



I think that’ll do for now. In the next post, we’ll go through templating, creating some pages for your site, and possibly investigate some of the other add-ons that are available.

If you have any comments about this tutorial, useful additions, corrections or whatever, please leave a comment.

Thank for reading!

237 comments:

«Oldest   ‹Older   201 – 237 of 237
Gigi Smith said...

seriously, it's all gonna be just fine! just check this link out financial counselor

TillyRacker_ said...

we are not our best intentions. we are what we do. and what you need to do is check this link out private investigators near me

deanffranklin@gmail.com said...

I truly pleased to find this site at last. Truly informational and broken, Thanks for the post and exertion! If nobody truly minds in any case, continue to share all of the more such electronic journals. I like it without a doubt and I like your decision words also. I'm hanging on for your next basic post. Go ahead and visit my site Yellowstone Jackets

Toria said...

I came across your article and was wow'd! Such is rare. You are doing a great job. I look forward to more from you! royal veterinary college

zarkazijar said...

This an excellent article blog, it offers solutions to difficult questions, the easy description can make a difficult thing understandable, and you put so much effort to discuss everything in clear terms, thanks for sharing. free dpr past questions pdf

Gigi Smith said...

https://www.blogger.com/comment.g?blogID=4846853096523463364&postID=8434595011248797309&page=3&token=1647865154875

Jamie Starr said...

This is a great inspiring article. I am pretty much pleased with your good work. You put really very helpful information. Keep it up. You might also like how to get vaseline out of clothes

Pay For Exams Online said...

Superb post. Much obliged to you for sharing this blog. I want to believe that you will generally be state-of-the-art.

Sarah Josave said...

This is a fantastic article that will inspire you. I am very delighted with your excellent work. You've included a lot of useful information. Keep up the good work. Naruto Jacket

Anonymous said...

Hi to all, how is the whole thing, I think everyone is getting more from this web page, and your views are nice for new users..nyif loan approval

Sarah Josave said...

I see that the article has put a lot of effort into the content and science. I read them all and found them to be extremely intriguing. You can look into it. Naruto Jacket

jenifer027 said...

top 10 places to visit in india

Ghhumakad is a Professional Blogging Platform. Here we will provide you with only interesting content related to the best tourist places in India, which you will like very much.

Do My Assignment said...

You’ll then be taken to the System Settings screen where you can set general preferences and configuration settings for the MODx manager interface, as well as how your MODx site runs.

New Assignment Help said...

Need Marketing Assignment Help ASAP? Get professional assistance with your task here. 100% security. We'll help you meet the deadline risk-free.

singapore assignment help said...

Thank you a bunch for sharing this with all of us you actually realize what you are talking about! Bookmarked hire assignment writer

Essien said...

This has been an extremely wonderful post. I really enjoyed what you had to say, and more than that, how you presented it. Too cool! Thanks for sharing. Check approved school fee schedule for unimed returning students

zarkazijar said...

Very fantastic piece of content I see here on your blog, you have put out very vital tips and information for your readers. Thanks for sharing. zamsu approved school fee schedule for all students

VelmaShackles said...

Buy test banks like Solution Manual For Horngrens Accounting 13th Edition from testbanks22 for instant grade improvement.

jimmy southee said...

As a finance student, submitting a dissertation is a requirement that you must complete during the final semester of the course. If we discuss dissertation writing in depth, you should be aware that this piece of writing is approximately 15000-words long. It is usually written to answer some questions and to describe the process, which is more important than the subject's actual findings. To do this properly, you must first select some finance dissertation topics before beginning to write anything.

Samuel said...

Very informative post! This post has a lot of information here that can help many students. However, TFTH is also one of the most reliable and professional academic help providers. They cover complete academic subjects whether it's computer science assignments or finance assignments. Students who are unable to manage time for assignments can get Assignment Help at an affordable price.

Online Assignment Helper said...

Thanks for your kind help. Its very useful..

How To Support University Friend Struggling With Studies? said...

I’m glad you found the post helpful. Thank you for taking the time to comment.

eddielydon said...

The great website and information shared are also very appreciable. Elvis Presley Leather Jacket

zarkazijar said...

Such an excellent blog that provides amazing insight into the information in the article. dssc navy ast questions and answers visit Best Rated Educational Update Portal in the World; Examination and Academic Guide, High Paying Jobs & Scholarship  Website.

rjackets.com said...

Thanks for the wonderful content, this is very good and useful content for me
Real Jackets Online Store. Follow in the footsteps of famous celebrities, role models, and military pilots who have donned the jackets before you.
My Site: Religious Leader Tony Alamo Jacket

i4 Acmmos Media said...

Thanks for Sharing information

i4 Acmmos Media offers best CodeIgniter Development Services in Hounslow, London, UK. Get reasonable CodeIgniter Services with us.

Are you looking for Codeigniter Development Services UK

Contact us at info@i4acmmosmedia.com or call us at +44 20 8432 4513 for more information.

i4 Acmmos Media said...

Thanks for Sharing information

Looking for Search Engine Marketing Services Hounslow UK? With i4 Acmmos Media, you get an advantage to choose strategic and in-budget plans.

Are you looking for Search Engine Marketing Services UK?

Contact us at info@i4acmmosmedia.com or call us at +44 20 8432 4513 for more information.

Rasheed Khan said...

I am grateful to this blog for providing unique and helpful knowledge on this topic. Visit us for Getting online tuition for class 2. Thank You!

rishi india travel said...

Jaipur cab service

Rishi India Travels provides best taxi service in Jaipur for outstation, airport pickup & drop and Jaipur sightseeing. Hire Cab Service at Discounted Prices with multiple car options.

zara8359 said...

i appreciate your writing skills it is quite good seriously keep up this. Office Renovation Dubai

takemyonlinexam said...

"Takemyclassdone.come is a revolutionary online service that takes the hassle out of academic success. With a team of experienced professionals, we offer a seamless solution for students seeking assistance with their coursework. Whether you need help with assignments, exams, or entire courses, Takemyclassdone has got you covered. Our dedicated experts ensure top-notch quality and timely delivery, allowing you to focus on what truly matters. Say goodbye to stress and hello to academic excellence with Takemyclassdone – your trusted partner in achieving your educational goals."




Pacific Certification said...

Guidelines for producing safe and efficient products are known as GMPs, or good manufacturing practices.

GMP-GOOD MANUFACTURING PRACTICES

assignment help said...

Are you struggling with writing complex management Assignments? Then you are in the perfect place. Gradespire offers unparalleled Management Assignment Help to students seeking a seamless balance between academics and part-time jobs. We guarantee high-quality assignments from professional experts, 100% plagiarism-free content, and timely delivery, ensuring you never miss a deadline. Our experts excel in various management areas, including human resources, finance, accounting, marketing, strategic management, and more. Trust Gradespire for genuine, top-notch content that enhances your academic scores and leads you to success also get benefits from error-free business writing, secure payment methods, and 24/7 customer support.

Assignment help said...

Gradespire provides reliable Business law assignment help for students balancing studies and work. Our experienced writers make sure to meet your requirements. With 24-hour support, affordable rates, and safe payments, we make academic help available. Our experts conduct thorough research, guaranteeing originality with 100 % free plagiarism. Trust us to follow your university guidelines. Order in advance for on-time delivery and enjoy our service. Select Gradespire for high-graded business law assignment solutions and meet your academic goals effortlessly.

Assignment Help said...

Sociology Assignment Help is like having a knowledgeable friend who makes difficult topics easier to understand. Whether you are exploring functionalism, conflict theory, or symbolic interactionism, these services provide valuable assistance. With experienced expert writers, students are provided with well researched papers, case studies, and essays. Sociology Assignment Help provided by Gradespire can prove to be very useful in achieving academic success and help students understand human behavior, societal norms, and cultural dynamics. Therefore, we will provide best quality assignment help at a very reasonable price having 100% unique content and also provide 24×7 support to the students.

Ava Smith said...

Thanks for sharing this post. Get the best essay writing help from top usa experts, contact us:- Do My Essay For Me.

Belly Amy said...

Thanks. Buy Pinata cakes at an affordable price.

«Oldest ‹Older   201 – 237 of 237   Newer› Newest»