[MODx] 5. WayFinder

1. Install the wayFinder package

2. Select the resource which you want to show:

The ‘published‘ resources are shown in drak icon, otherwise light color.

3. Use wayfinder:

<!-- Nav -->
<nav id="nav">
    [[Wayfinder? &startId=`0`&level=`2`]]
</nav>

See more: http://rtfm.modx.com/extras/revo/wayfinder

4.Show result:

时间: 2024-08-02 19:05:17

[MODx] 5. WayFinder的相关文章

[MODx] 8. Snippet get data, chunk display

Simple Example: Lets process this chunk and output its value. We have this Chunk, called "WelcomeChunk": <p>Welcome [[+name]]!</p> We'll put this in our Snippet: $output = $modx->getChunk('WelcomeChunk',array( 'name' => 'John',

[MODx] 1. Add Html5 template into the MODx

1. Connet MODx by SSH: Go to the MODx cloud; Find you current user and right click selet Edit Cloud; Find your SSH connect information: 2. Upload an HTML5 template You can grap one from www.html5up.com Upload the files to the root dir (for learning p

[MODX] 2. Chunks $

Chunk in Modx can cut your template into samll pieces to make code reuseable. [[$chunk_name]] For example we can replace the html header with [[$html_header]], it should work as before.

[MODx] 7. MIGX DB

MODx provides a really unfriendly way to work with xPDO class. What I means is you need to define XML schma, mysql table and run the script to generate other stuff (model and controller), which is really suck... Luckly, MIGX DB could help you finish

[MODx] 6. Cache &#39;!&#39; with login package

1. Install login package. 2. Create a Template called 'login': [[!Login? &loginResourceId=`13` // means after login, redirect resource 13 page, in our case, redirect to self ]] <h2>Register</h2> [[!Register? &submitVar=`registerbtn` &a

[MODx] Build a CMP (Custom manager page) using MIGX in MODX 2.3 -- 1

BIG FUCK for MODx MODx document is not that good  ...  at least in my opint of view. I spend hours to search martirals to find out how to build a CMP by using MIGX in MODX 2.3. The officail doument are written for 2.2, but since 2.3, it changed a lot

[MODX] 0. Mangement System Overview

In Modex, there are three tabs: Resoources, Elements & Files First: 'Files' is the place where to put javascript, css & images. I also want to put font, but it doesn't allow me to upload. Maybe upload fonts by SSH could be possible. Resources is t

[MODx] 4. getResources

1. Create a chunk call 'white_content' for white content: <!-- Highlights --> <div class="wrapper style3"> <div class="title">The Endorsements</div> <div id="highlights" class="container"&

[MODx] 2. Install some useful packages into ur MODx

1. The package we might need: 2. Install the package: Select Installer Download Extras Install the package you need 3. Check the result: For exmaple: Ace, if you install it, the template Editor won't be plain text anymore. It is more developer-friend