Provide a geshifield.module that would hook into CCK's Field and Widget API to provide a Geshi Field. This would be much more powerful than the geshinode.module because it would allow you to have multiple sources provided with the content type, provide source code to arbitrary content types (like the Project module), have the field required, limit the source code field to one language, etc.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

nicholasThompson’s picture

I would DEFINITELY second this one!

soxofaan’s picture

Assigned: Unassigned » soxofaan

indeed,
this one is at the top of my priority list for GeSHi filter.
I already started working on it, but it's not ready yet.
stay tuned

soxofaan’s picture

Status: Active » Needs review
FileSize
7.48 KB

Here is a first iteration of the GeSHi CCK field

it's a basic version, without the bells and whistles, but it should be already usable.

be welcome to try it out

Undefined.za’s picture

subscribing...

eagereyes’s picture

The patch applies cleanly, but my modules page says that the GeShi CCK field is incompatible with Drupal 6.6.

soxofaan’s picture

The patch is indeed for the Drupal5 version of the module.
When working on this patch, CCK for Drupal6 was still in alpha/beta mode.

I'm not familiar with Drupal6 CCK development (yet), but as far as I understand, there are significant changes between Drupal5 CCK and Drupal6 CCK.

I would like to first finalize the Drupal5 version of this patch before starting on the drupal 6 version.
So if you want to try it out, you'll have to crack open a can of Drupal 5 ;)

eagereyes’s picture

Ah, i see. Well I can't go back to Drupal 5, but I'd be willing to test a version (even if early alpha) for D6. Also, by now I would guess most people would have switched to D6, so you'd reach a lot more people with a D6 version.

likewhoa’s picture

subcribing

soxofaan’s picture

Version: 5.x-2.x-dev » 6.x-1.x-dev
Status: Needs review » Needs work

Drupal 6 usage has grown significantly since the latest patch in this thread,
so I think this issue should also shift to Drupal 6.

wgrunberg’s picture

I have not found a satisfactory way of making FCKeditor and GeSHi coexist.
A CCK GeSHi field for Drupal 6 sounds like a great way of avoiding WYSIWYG conflicts, Also, I wouldn't have to add a GeSHi input filter that will affect all my content types and not just the ones that I need syntax highlighting.

As an interim solution, how can I duplicate the geshinode.module content type?

soxofaan’s picture

Status: Needs work » Needs review
FileSize
2.05 KB

Here is a first draft for Drupal 6/CCK2

The basic stuff is works, but there is still room for improvement (like most importantly: caching the syntax highlighted code).
I'd also like some other people try it out and give feedback.

Interested people with git in their tool belt can follow the development more closely at http://github.com/soxofaan/geshifilter-dev/tree/geshifield-d6

soxofaan’s picture

New version now with caching of the GeSHi filtering

Still some todo's left, but it is already functional

soxofaan’s picture

Status: Needs review » Fixed

Hi all,

I just released GeSHi filter module 6.x-1.3, which contains a first beta version of the geshifield module (largely the patch from #12 with some additional tweaks).
Because comments and feedback seem to be dried up in this thread, I decided to release it to all users in the hope to collect more feedback.

likewhoa’s picture

thanks!! this does everything a geshi cck field should do except moderation of which languages to highlight ;)

Status: Fixed » Closed (fixed)

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