Page 1 of 1

g2mod: extra code?

Posted: Sat Jan 14, 2006 6:21 pm
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?

Re: g2mod: extra code?

Posted: Thu Jan 19, 2006 5:29 am
by KnightWolfJK
*bump* any ideas?

Re: g2mod: extra code?

Posted: Thu Jan 19, 2006 12:07 pm
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.

Re: g2mod: extra code?

Posted: Thu Jan 19, 2006 7:19 pm
by KnightWolfJK
Okay, I'll try to hit up the IRC channel later today

Re: g2mod: extra code?

Posted: Tue Jan 24, 2006 6:44 am
by KnightWolfJK
Nothing cracking in IRC tonight... Is anyone else seeing this in g2mod .1?