jdecker
Forum Replies Created
-
Forum: Plugins
In reply to: [Plugin: The Events Calendar] Issues with custom menusRob-
We solved the problem! The issue was with the page template selected for the plugin, which we’d set to the blog post template. We had, in essence, a loop within a loop. With some file rearrangement, we were able to get everything to draw correctly. Gah!
Thanks for responding!
Forum: Plugins
In reply to: [Plugin: The Events Calendar] Issues with custom menusRob-
I work with ahobart so I can weigh in. You got it in one…the custom menu item names are replaced with “Calendar of Events” when viewing the Calendar category.
So in our case the slug is “events”. When viewing /events/ the custom menu changes to
- Calendar of Events
- Calendar of Events
- Calendar of Events
- Calendar of Events
- Calendar of Events
- Calendar of Events
- Calendar of Events
- Calendar of Events
- Calendar of Events
- Calendar of Events
Etc. However, the link values are correctly retained.
If you drill into an events category, e.g., /events/category/category-name it changes to:
Calendar of Events
Category-name
Calendar of Events > category-name
Calendar of Events > category-name
Calendar of Events > category-name
Calendar of Events > category-name
Calendar of Events
Category-name
Calendar of Events > category-name
Calendar of Events > category-name
Calendar of Events > category-name
Calendar of Events > category-nameWhere every link now goes to /events/
We’ve gone down several paths of troubleshooting, and are now exploring whether the query pulling Custom Menu is colliding with the query pulling Event Category…but we’re pretty stuck right now. It’s certainly confounding behavior.
I would be happy to share screencaps or a link privately if you tell me the best way to contact you. Since it is client work I cannot post the link here.
Forum: Plugins
In reply to: Making default new target links?I wanted to have my links go to a new browser window, while avoiding crazy javascript and still validating XHTML. I found the solution via either the Webstandards or Designers In House list (I think the latter).
I link to an external javascript in the head of the document. It simply contains:
function externalLinks() {
if (!document.getElementsByTagName) return;
var anchors = document.getElementsByTagName(“a”);
for (var i=0; i<anchors.length; i++) {
var anchor = anchors[i];
if (anchor.getAttribute(“href”) &&
anchor.getAttribute(“rel”) == “external”)
anchor.target = “_blank”;
}
}
window.onload = externalLinks;And then I set the default value of links to rel=external