Search 
Search Forums:


 




Archive navigation

Reply to Post
UserPost

4:01 am
April 25, 2008


JC Marie

Guest

I activated navigation in other screen (”Load index page navigation inline”). It works for index page. I would like to have the same navigation bar on archive pages (category, tags…). I tried with one only index.php, then with index.php and the same file as archive.php. I tried with filter on wp_list_categories activated (in ajaxnav.php file). No one works. Is it possible to do it?

I didn’t find the way to have the navigation bar in the bottom of the index page. It is always on top. I tried by using directly the functions as “awp_posts_nav_link” but it doesn’t work (page number is wrong so that it doesn’t update). So I’m using the default option in ajax configuration. How may I customize it?

8:23 am
April 25, 2008


Aaron

Admin

posts 245

Hi JC,

I would like to have the same navigation bar on archive pages (category, tags).

About half the functionality to do that is built into the module and about a third of it works. (This is why it can’t be turned on easily.) The archives feature is in development and still needs to be finished.

I didn’t find the way to have the navigation bar in the bottom of the index page. I tried by using directly the functions as wp_posts_nav_link but it doesn’t work.

The functions need to be inside of the loop for it to update properly.

The easiest way to do this is to open ajaxnav.php and perform the following modifications.

Find:
AWP_nav::nav_bar();
Replace With:
//AWP_nav::nav_bar();
Find:echo '<!--awp_loop--></div>';
Add before:

  1. global $awpall;
  2. if((is_home() && !is_archive() && $awpall[ajax_nav_home])){
  3. echo '<div class="main" style="width:99%;">';
  4. AWP_nav::nav_bar();
  5. echo '</div>';
  6. }

12:41 pm
April 25, 2008


JC Marie

Guest

thank you for the help.

I did manage to have two bars: one before the posts, and one after.

the condition if((is_home() && !is_archive() && $awpall[ajax_nav_home])) didn’t work for me. It works with is_home().

If it can help, I used a class=”main up” for the first bar and class=”main bottom” for the bar in the bottom.

One thing: when navigating with the bottom bar, the page stays at the end of the page. It needs to scroll up the page in order to start reading the page…

1:11 pm
April 25, 2008


Aaron

Admin

posts 245

Thank you. I’ll make the bar location configurable in the future.

There was a slight error in the code I posted, I have fixed it for anyone else who may see it.

6:37 am
June 23, 2008


S Martin

Guest

Can category and archive navigation be turned on at all at this stage?

1:23 pm
June 23, 2008


Aaron

Admin

posts 245

S Martin, you can enable category and archive navigation only if you use the “ajax everything” option.

Reply to Post


Reply to Topic: Archive navigation

Name (Required):

EMail (Required):

Website):

Guest URL (required)

Math Required!
What is the sum of: 8 + 6        (Required)

Topic Reply:


 

About the Anthology of Ideas forum

Currently Online:

9 Guests

Maximum Online: 33

Forums:

Groups: 2

Forums: 6

Topics: 214

Posts: 673

Members:

There are 1 members

There are 201 guests

Aaron has made 245 posts

Top Posters:

Administrator: Aaron