g2mod: extra code?

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Locked
KnightWolfJK

g2mod: extra code?

Post by KnightWolfJK »

I'm using g2mod .1 and CMSMS 0.11.2.

I placed the {g2mod} tag on my Photo Gallery page and it works great.  But, with g2mod activated, I'm getting extra bits of code in my template.  The extra code isn't specific to the g2mod page, it's every page with this same template.  What did I do wrong?

Without g2mod activated, here's my first block of code:


Bacon and Associates














and then here's the code with g2mod activated (with extras in red):


Bacon and Associates








BAA Photo Gallery


.content { width: 700px; }
.gallery-thumb { width: 180px; height: 180px; }
.gallery-album { height: 210px; }









It's pulling the code from the Gallery2 template, but why?  And how?
KnightWolfJK

Re: g2mod: extra code?

Post by KnightWolfJK »

*bump* any ideas?
User avatar
ghostrifle
Forum Members
Forum Members
Posts: 54
Joined: Wed Mar 02, 2005 11:03 pm

Re: g2mod: extra code?

Post by ghostrifle »

G2Mod places stylesheet information in the header of each html file, there's a method in modules called "ContentPostRender". I think that's the reason for it. Uhmm... I thought CMS would only call this method when the module is used on the page.. didn't know that CMS calls this method on every module regardless on which page the user is.
KnightWolfJK

Re: g2mod: extra code?

Post by KnightWolfJK »

Okay, I'll try to hit up the IRC channel later today
KnightWolfJK

Re: g2mod: extra code?

Post by KnightWolfJK »

Nothing cracking in IRC tonight... Is anyone else seeing this in g2mod .1? 
Locked

Return to “Modules/Add-Ons”