Enter your email address:

Delivered by FeedBurner


Sign up to receive a reply:

Powered by MT-Notifier

user-pic

Listing Page Links on your Sidebar

Vote 0 Votes

This entry is about listing Movable Type "Pages" as links on your sidebar. Below is a copy of instructions I sent that demonstrates how to make two widgets on your sidebar. She wanted a dynamic list, but she didn't want to list every MT Page, just her "Resources" and "News" pages, in separate widgets.

--------------------------

"ICGC Events" and "ICGC People" could simply be Movable Type Pages, just like your other Pages: "Professional Associations", "Job Opportunities", "Fellowships", and "Related Organizations."

Since you want certain Pages to show up through your Resource Pages Widget, and others to show up in a new "ICGC in the News" widget, you're going to need to do two things: (1) Sort your Pages into folders, (2) modify your Resource Pages Widget, and (3) create a new widget.

(1) Folders

If you go to Manage > Pages, click on one of the pages. You'll see on the right-hand side a link that says "Change Folder". Call the folder something like "Resource Pages".

Now go through each one of your resource pages and assign it to that new folder. It will come up later.

(2) Modifying your Resource Pages Widget:

Here's your code:


<div class="widget-archives widget">
<br>
<h3 class="widget-header">Resources</h3></a><br>
<ul>
<mt:Pages>
<li><a href="<$mt:PagePermalink$>"><$mt:PageTitle$></a></li>
<br>
</mt:Pages>
</ul>
</div>

The first thing I'll say is that you've got a stray </a> tag. The second thing is we need to specify that the Resource Pages Widget should only display pages that are in your new folder. Here's your new code with these changes:


<div class="widget-archives widget">
<br>
<h3 class="widget-header">Resources</h3><br>
<ul>
<mt:Pages folder="Resource Pages"><!--be careful to use the same spelling and caps in the folder name-->

<li><a href="<$mt:PagePermalink$>"><$mt:PageTitle$></a></li>
<br>
</mt:Pages>
</ul>
</div>

Now Save.

(3) Create a new widget

I think you know how to start a new one, but let me know if that's not the case. You'll use the same code as your Resource Pages Widget, with a few modifications:


<div class="widget-archives widget">
<br>
<h3 class="widget-header">ICGC in the News</h3></a><br>
<ul>
<mt:Pages folder="ICGC in the News">

<li><a href="<$mt:PagePermalink$>"><$mt:PageTitle$></a></li>
<br>
</mt:Pages>
</ul>
</div>

Save.

Now you need to install the widget. In Design > Widgets, click on your Primary Sidebar. Drag your new widget over to the Installed Widgets column. Drag and drop it in exactly the order you want (you might have to try a couple times to get it just right.)

Save and re-build.

Now, when you create a page like "People", make sure to assign it to the right folder so it'll pop up in your sidebar in the right spot!

1 Reply

| Add a Reply

Add a Reply

Forum Groups

Classic Blogs and General Info

29 42

Last Topic: Can I use PHP code in my blog? by Charlie Heinz on Jan 9, 2012

Discussions

Q&A

Be the first to post a topic in this forum

Blogging Principles

Be the first to post a topic in this forum

Other Template Sets

Community Blogs

Be the first to post a topic in this forum

Community Forums

Be the first to post a topic in this forum

Widget Marketplace