When using a content type with CCK field, how can the calendar be positioned?
Around line 538 in the module file the weight is set:

        $node->content['availability_calendars'] = array(
          '#value' => theme('availability_calendars_node', $calendar_node, $year, $month, $monthstodisplay),
          '#weight' => 25,
        );

Would it be possible to either make this a configurable option, or make the module CCK aware, so that its position in the cck field list of the content type can be set from the GUI?

Thanks in advance.

CommentFileSizeAuthor
#4 capture.png36.83 KBcrutch

Comments

crutch’s picture

agree

Also, could we print the calendar for the current node in a block, view or custom panel pane? possibly position that way...

blaiz’s picture

Hi there,

Could the module be a CCK field?

Instead of having it shown for each node of the same content type, if you be great to have it as a CCK field. We could modify the options on the page edit form instead of a special page, choose if we want to show it or not, and if yes, then access the same options that we have right now on the special page, maybe in a more compact form.

Is it something that could be done?

Thanks

Ela’s picture

subscribing

crutch’s picture

StatusFileSize
new36.83 KB

experiment attached. Create a unique content type, let Panels handle nodes of that content type and use Panels/CSS to style the node display and Calendar style.

nicholas.alipaz’s picture

Version: 6.x-1.2 » 6.x-2.x-dev

if this gets added it will be in 2.x branch

fietserwin’s picture

Version: 6.x-2.x-dev » 7.x-2.x-dev

Please find the next version of this module on Availability Calendar. Started as a complete rewrite, it is currently in its own sandbox. A tar.gz can be found as an attachment in issue #1252106: Beta1 release as tar.gz.

This version has:
- Fields based (so D7 only).
- Views integration including ...
- Filter on availability.
- Booking integration by means of a separate booking formlet field.
- Show week numbers option.
For an in-depth comparison of all current features see the included "README when coming from Availability Calendars.txt".

An upgrade path is not yet available but will be in the near future!

Please have a look at the new version and report any findings, bugs, suggestions, etc.

Note specific for this issue (the above text is used in a number of issues that can be closed by this new version):
I guess that back porting this to D6 is far too much work (CCK versus fields API, Views D6 versus D7 API (using the new query builder), so our D6 version might well become a bug-fix only release.

fietserwin’s picture

Status: Active » Fixed
fietserwin’s picture

Version: 7.x-2.x-dev » 7.x-3.0-beta1

Moved the sandbox project back here into the 7.x-3.x version.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.