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!
-
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
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!
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
normally. Use this sytnax with modx-tags
. This will create the URL for your link.
For your dynamic navigation you use the snippet wayfinder..........