This forum is for module development and code related questions, not general module support. For general support, use the Post installation forum.

Pageable (Calendar) Block

I'm hitting the wall on this one and was wondering if someone could point me in the right direction. The site I'm developing needs a pageable calendar that will allow visitors to flip through month-to-month. They should be able to do this on any page that the calendar block is available, and the state of the calendar should be maintained as they navigate the site.

I've installed the event module and, unless I'm missing something, it seems very limited in this regard. I've made a hacked version of my own, that borrows the event_views_get_calendar function and makes minor modifications. It's fine - it'll generate a monthly calendar based on the array of nodes I load into it - but trying to find a way to maintain its state has been vexing.

At first, I thought I'd go front-end, having the events module pump out ID'ed DIV tags that could be hidden and shown via javascript. This would have been ideal, in the sense that it would be very responsive and not require page reloads. Sadly, it seems that it would require a major rewrite of the Event Views API, given that it creates a single table that isn't amenable to wrapping individual months in DIV tags.

Now, I'm in a bit of a jam. Ideally, I'd like to be able to simulate old fashioned GET data (i.e. &year=2006&month=10) and have the block respond to it. I could do it via dynamically generated drupal ARGs (i'd put next and previous buttons in the block with the arguments in the URLs), but would need to ensure that the URL wouldn't generate a Page Not Found error (so, say, node/50/calendar/2006/10 would display node 50 with the calendar set to october 2006, and node/51/calendar/2006/10 would do likewise with node 51). To put it another way: how to you get a drupal block to react to arguments that may or may not be there without generating 404s?

prefix/suffix for taxonomy select form elements

I'm trying to use hook_form_alter to wrap each of the selects in the taxonomy part of the node form with a div. Can someone explain to me why the code below doesn't work?? It does work to add an attribute to the form element, etc. However, the code referencing the #prefix and #suffix parts of the form element seem to have no effect on the HTML output. Is this a bug?

How can I shape the content of my RSS feeds?

I have a module that creates an extended node type. I know how to create PHPTemplate-compatible theme templates so displaying the nodes within Drupal includes my additional data fields for a given node. But I also want to be able to deliver a customized description (which includes that extra data) via the XML feeds. I have no trouble accessing the feeds, but where and how do I control what goes into the RSS descriptions? TIA.

Moved module from a test site to a live site and it stopped working.

I have two installations of the same site (exactly the same, minus one is on a dev server and one is on the live server) and created a new module on the dev site. When the module was copied to the live site, it pulls up an "error denied" message.

This is:
The same site, duplicated with only a database line changed.
Logged in as uid 1 (on both installations)
A module that works perfectly on the dev server

Any ideas on where to look for fixes? Thanks!

Execlude Lightbox2 from the front image page

Hello, I have a problem.
When you enter http://www.neosoft.se/image you get the albums lined up. But when you click the picture Lightbox2 shows the preview image of the album. How do i set Lightbox 2 to execlude the album page and Just work in the album and not outside

It is very confusing for the users. Do somebody have any idea?

/Jonta

Issue with userlink module's navigation menu

Hi,

I have been working with Drupal for 2 days know and here come my first questions.

1. The top navigation "Home -> Category -> ..." doesn't seem to work properly. Though you can choose categories of links or links posted by a certain user, there will be nothing more than a link to "Home" up there. No indication where exactly you are right now and how to get back. When one of the sites is set as home, the Home link even dissapears completely!

How can I fix this?

2. When you are viewing a category of links http://www.b78.de/test/?q=userlink/1/term/1, there pops up another tab, and this tab doesn't link to itself as it should but to another site, because the last digit, the categorie number (or however you call it) doesn't get submitted.

I found the piece of code for this one, but haven't figuered out how to change it that it works properly.

//
//
// If we are looking at a listing of links for a given term, add
// another tab for the listing...
//
//
if (arg(2) == 'term' && is_numeric(arg(3))) {
$term = taxonomy_get_term(arg(3));
$items[] = array('path' => 'userlink/'. $uid . '/term', 'title' => t("%who %termname links", array('%who' => $uname ? "$uname's" : 'all', '%termname' => $term->name)),
'callback' => 'userlink_page_termlinks',
'access' => user_access('view all userlinks'),

Pages

Subscribe with RSS Subscribe to RSS - Module development and code questions