PDA

View Full Version : Permalinks messing up EPC navigation


north
10-27-2009, 11:05 PM
Greetings all.

In integrating EPC with WordPress, I failed to see in the tutorial that WordPress should have default permalinks turned on, or else navigation won't work properly. What happens is WordPress reloads the home page rather than the current page whenever the calendar navigation buttons are clicked.

I don't think my client will be OK with the default permalinks-- they need SEO-friendly permalinks (which is just /%postname%) in WordPress. Is there any way at all to get EPC to work with this? Please help! If I can't get this to work I may have to drop EPC and try to find something else...which would be a real shame since EPC works well otherwise.

Thanks

NorthK

ve9gra
10-28-2009, 07:42 AM
Quote from the Tutorial... Let’s start easy with setting up the proper permalink structure. Go to your WP administration interface, in the Settings section, and then Permalinks. You will have to use the “Default” setting. This is so that the calendar navigation work. Using any of the other modes and you will not be able to navigate to different months.

It is a known issue with no resolution thus far.

north
10-28-2009, 12:34 PM
Hi Ve9gra,

Well, I think I may have got EPC to work with SEO-friendly links. See http://www.highintegritydesign.com/test/uos/. What I did is use /%postname%/%post_id%/ as the permalink structure in WordPress.

This gives me a link structure like mysite.com/about-me and when I navigate using the calendar, mysite.com/about-me/?mo=11&yr=2009. These are perfectly fine for SEO! I'm not sure why the post_id is not showing up at the end of the permalink...but it seems to work.

Do you see any potential problems with this? If this is really working, I think I should get a Special Star :) I'd really appreciate if you had time to try this on your site and confirm it works for you too.

There is one thing still broken-- on the full-sized calendar, the drop-down and Go button for going to a specific date doesn't work. Is there a way to disable just the drop-down and Go button but keep the forward, back and Today buttons? Perhaps there's a way to do this n EPC, or perhaps I can set display:hidden for those fields (haven't looked at the code yet to see if that's possible).


Thanks,

NorthK

ve9gra
10-28-2009, 01:51 PM
This would appear to work for your situation only. You must have a URL rewrite in place that removes the index.php from the URL.

The trick with the TOC is that the form is using POST variables, compared to GET variables. Since WP parses all POST variables and finds no use for them, it discards them before EPC gets to use them. And the form can be hidden using CSS (I know there's a post somewhere, but I think it was to hide the whole navigation area).

If it's working for your setup, and you don't get any issues or errors being logged, then keep it as-is. But remember... integrations in content management systems (CMS) are not officially supported. ;)

north
10-28-2009, 02:03 PM
Hi Ve9gra,

I'm not doing anything fancy regarding URL rewriting. I'm using the .htaccess file that is automatically generated by WordPress (which does do URL rewriting-- but it's the standard WordPress method). I'm wondering if you've tried this using the permalink structure I'm using, or if you would be willing to try this on your site to see if it works there?

Thanks,

NorthK

ve9gra
10-28-2009, 10:29 PM
I don't have EPC on my own website, and haven't installed WP on my dev box since I ditched my Ubuntu box and traded it in for a MacBook Pro.

But as Andrew Zimmern says "If it looks good, eat it"... so if it works for you, use it :)