In-Link Module Header Checks

3 views
Skip to first unread message

Phil -- wbtc.fr --

unread,
May 13, 2010, 9:40:15 AM5/13/10
to in-port...@googlegroups.com
Hello,

in advanced theme, file in-link/elements/html_head.elm.tpl, line 5 (gmap js loading):

   <inp2:m_if check="m_IsActive" t="in-link/detail">

doesn't work, I've tried to replace it with

   <inp2:m_if check="m_IsActive" t="in-link/links/link_detail">

doesn't work too.

What is the correct spelling here?

Phil.

--
You received this message because you are subscribed to the Google Groups "In-Portal Bugs Team" group.
To post to this group, send email to in-port...@googlegroups.com.
To unsubscribe from this group, send email to in-portal-bug...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/in-portal-bugs?hl=en.

Alexander Obuhovich

unread,
May 14, 2010, 1:11:25 AM5/14/10
to in-port...@googlegroups.com
You are saying that google maps doesn't work at all on link details template?

2nd variant of yours should work in "advanced" theme.
--
Best Regards,

http://www.in-portal.com
http://www.alex-time.com
Message has been deleted

Phil -- wbtc.fr --

unread,
May 14, 2010, 4:48:31 AM5/14/10
to in-port...@googlegroups.com
Hello Alex,

I'm using advanced theme, and there's 2 conditional checks in the module-specific header html_head.elm:

5: <inp2:m_if check="m_IsActive" t="in-link/link_standard">
6:      <inp2:m_if check="m_GetConfig" name="l_EnableGoogleMaps">

the first one doesn't work, but the second one does, as I've skipped the first one and gmap JS is loading correctly. I'm under 503-RC1.

Phil.

2010/5/14 Alexander Obuhovich <aik....@gmail.com>

Dmitry Andrejev

unread,
May 14, 2010, 11:33:50 AM5/14/10
to in-port...@googlegroups.com
Hi Phil,


Yes, there seems to be a small bug in the IFs for In-Link in Advanced
theme. The correct template code would be like this:


<!--## GOOGLE MAPS API INTEGRATION ##-->
<inp2:m_if check="m_IsActive" t="in-link/links/link_detail">
<inp2:m_if check="m_GetConfig" name="l_EnableGoogleMaps">
<script type="text/javascript"
src="http://www.google.com/jsapi?key=<inp2:m_GetConfig
name="l_GoogleMapsAPIKey"/>"></script>
<script type="text/javascript" src="<inp2:m_TemplatesBase
module="In-Link"/>inc/googlemaps.js"></script>
</inp2:m_if>
</inp2:m_if>
<!--## GOOGLE MAPS API INTEGRATION ##-->

Here is task:

729: Google maps JS doesn't load on Link Details template

http://tracker.in-portal.org/view.php?id=729



Thanks.


DA

Phil -- wbtc.fr --

unread,
May 15, 2010, 7:56:22 AM5/15/10
to in-port...@googlegroups.com
Hi Dmitry,

sorry if I haven't been clear, but as I said in my first post, the following code

   <inp2:m_if check="m_IsActive" t="in-link/links/link_detail">

is NOT working either...

Phil.

2010/5/14 Dmitry Andrejev <dand...@gmail.com>

Dmitry Andrejev

unread,
May 15, 2010, 7:31:48 PM5/15/10
to in-port...@googlegroups.com
Hi Phil,

You need to make sure everything else is enabled okay (ie. Google maps
key) since I have tested the posted code myself here and it includes
the Google Maps JS

Test utl - look in the source:

http://beta.in-portal.org/5.0.3-RC1/full/directory-td/link.html

DA.

Phil -- wbtc.fr --

unread,
May 16, 2010, 12:18:49 PM5/16/10
to in-port...@googlegroups.com
I'm under 503 RC1 too (updated from 502), and it doesn't work for me, gmap js is skipped when using this code.

Another info, the code respond "false": the JS is loaded when I put a <inp2:m_else/> just after.

I can do a test on a new install, but if it works for you, it means update system isn't perfect...

2010/5/16 Dmitry Andrejev <dand...@gmail.com>

Dmitry A.

unread,
May 16, 2010, 10:43:21 PM5/16/10
to In-Portal Bugs Team
Hi Phil,

Well, it's not anyhow related to the upgrade. The IF check to whether
include or not that Google JS is based on the current template which
is loaded. Again I can guarantee it's not related to the upgrade.

I believe in your case you are NOT looking at in-link/link/link_detail
template which is why it simply skips the IF.

Please put this Template is: <inp2:m_Get name="t"/> into the footer
template and open your links detailed page. Let me know the template.

By the way, all this and more information can be found with Debug On.

Thanks.

DA


On May 16, 11:18 am, "Phil -- wbtc.fr --" <p...@wbtc.fr> wrote:
> I'm under 503 RC1 too (updated from 502), and it doesn't work for me, gmap
> js is skipped when using this code.
>
> Another info, the code respond "false": the JS is loaded when I put a
> <inp2:m_else/> just after.
>
> I can do a test on a new install, but if it works for you, it means update
> system isn't perfect...
>
> 2010/5/16 Dmitry Andrejev <dandre...@gmail.com>
>
>
>
>
>
> > Hi Phil,
>
> > You need to make sure everything else is enabled okay (ie. Google maps
> > key) since I have tested the posted code myself here and it includes
> > the Google Maps JS
>
> > Test utl - look in the source:
>
> >http://beta.in-portal.org/5.0.3-RC1/full/directory-td/link.html
>
> > DA.
>
> > On Sat, May 15, 2010 at 6:56 AM, Phil -- wbtc.fr -- <p...@wbtc.fr> wrote:
> > > Hi Dmitry,
>
> > > sorry if I haven't been clear, but as I said in my first post, the
> > following
> > > code
>
> > >    <inp2:m_if check="m_IsActive" t="in-link/links/link_detail">
>
> > > is NOT working either...
>
> > > Phil.
>
> > > 2010/5/14 Dmitry Andrejev <dandre...@gmail.com>
>
> > >> Hi Phil,
>
> > >> Yes, there seems to be a small bug in the IFs for In-Link in Advanced
> > >> theme. The correct template code would be like this:
>
> > >> <!--## GOOGLE MAPS API INTEGRATION ##-->
> > >> <inp2:m_if check="m_IsActive" t="in-link/links/link_detail">
> > >>        <inp2:m_if check="m_GetConfig" name="l_EnableGoogleMaps">
> > >> <script type="text/javascript"
> > >> src="http://www.google.com/jsapi?key=<inp2:m_GetConfig
> > >> name="l_GoogleMapsAPIKey"/>"></script>
> > >> <script type="text/javascript" src="<inp2:m_TemplatesBase
> > >> module="In-Link"/>inc/googlemaps.js"></script>
> > >>        </inp2:m_if>
> > >> </inp2:m_if>
> > >> <!--## GOOGLE MAPS API INTEGRATION ##-->
>
> > >> Here is task:
>
> > >> 729: Google maps JS doesn't load on Link Details template
>
> > >>http://tracker.in-portal.org/view.php?id=729
>
> > >> Thanks.
>
> > >> DA
>
> > >> On Fri, May 14, 2010 at 3:48 AM, Phil -- wbtc.fr -- <p...@wbtc.fr>
> > wrote:
> > >> > Hello Alex,
>
> > >> > I'm using advanced theme, and there's 2 conditional checks in the
> > >> > module-specific header html_head.elm:
>
> > >> > 5: <inp2:m_if check="m_IsActive" t="in-link/link_standard">
> > >> > 6:      <inp2:m_if check="m_GetConfig" name="l_EnableGoogleMaps">
>
> > >> > the first one doesn't work, but the second one does, as I've skipped
> > the
> > >> > first one and gmap JS is loading correctly. I'm under 503-RC1.
>
> > >> > Phil.
>
> > >> > 2010/5/14 Alexander Obuhovich <aik.b...@gmail.com>
>
> > >> >> You are saying that google maps doesn't work at all on link details
> > >> >> template?
>
> > >> >> 2nd variant of yours should work in "advanced" theme.
>
> > >> >> On Thu, May 13, 2010 at 4:40 PM, Phil -- wbtc.fr -- <p...@wbtc.fr>
> > >> >> wrote:
>
> > >> >>> Hello,
>
> > >> >>> in advanced theme, file in-link/elements/html_head.elm.tpl, line 5
> > >> >>> (gmap
> > >> >>> js loading):
>
> > >> >>>    <inp2:m_if check="m_IsActive" t="in-link/detail">
>
> > >> >>> doesn't work, I've tried to replace it with
>
> > >> >>>    <inp2:m_if check="m_IsActive" t="in-link/links/link_detail">
>
> > >> >>> doesn't work too.
>
> > >> >>> What is the correct spelling here?
>
> > >> >>> Phil.
>
> > >> >>> --
> > >> >>> You received this message because you are subscribed to the Google
> > >> >>> Groups
> > >> >>> "In-Portal Bugs Team" group.
> > >> >>> To post to this group, send email to
> > in-port...@googlegroups.com.
> > >> >>> To unsubscribe from this group, send email to
> > >> >>> in-portal-bug...@googlegroups.com<in-portal-bugs%2Bunsubscribe@go oglegroups.com>
> > .
> > >> >>> For more options, visit this group at
> > >> >>>http://groups.google.com/group/in-portal-bugs?hl=en.
>
> > >> >> --
> > >> >> Best Regards,
>
> > >> >>http://www.in-portal.com
> > >> >>http://www.alex-time.com
>
> > >> >> --
> > >> >> You received this message because you are subscribed to the Google
> > >> >> Groups
> > >> >> "In-Portal Bugs Team" group.
> > >> >> To post to this group, send email to in-port...@googlegroups.com
> > .
> > >> >> To unsubscribe from this group, send email to
> > >> >> in-portal-bug...@googlegroups.com<in-portal-bugs%2Bunsubscribe@go oglegroups.com>
> > .
> > >> >> For more options, visit this group at
> > >> >>http://groups.google.com/group/in-portal-bugs?hl=en.
>
> > >> > --
> > >> > You received this message because you are subscribed to the Google
> > >> > Groups
> > >> > "In-Portal Bugs Team" group.
> > >> > To post to this group, send email to in-port...@googlegroups.com.
> > >> > To unsubscribe from this group, send email to
> > >> > in-portal-bug...@googlegroups.com<in-portal-bugs%2Bunsubscribe@go oglegroups.com>
> > .
> > >> > For more options, visit this group at
> > >> >http://groups.google.com/group/in-portal-bugs?hl=en.
>
> > >> --
> > >> You received this message because you are subscribed to the Google
> > Groups
> > >> "In-Portal Bugs Team" group.
> > >> To post to this group, send email to in-port...@googlegroups.com.
> > >> To unsubscribe from this group, send email to
> > >> in-portal-bug...@googlegroups.com<in-portal-bugs%2Bunsubscribe@go oglegroups.com>
> > .
> > >> For more options, visit this group at
> > >>http://groups.google.com/group/in-portal-bugs?hl=en.
>
> > > --
> > > You received this message because you are subscribed to the Google Groups
> > > "In-Portal Bugs Team" group.
> > > To post to this group, send email to in-port...@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > > in-portal-bug...@googlegroups.com<in-portal-bugs%2Bunsubscribe@go oglegroups.com>
> > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/in-portal-bugs?hl=en.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "In-Portal Bugs Team" group.
> > To post to this group, send email to in-port...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > in-portal-bug...@googlegroups.com<in-portal-bugs%2Bunsubscribe@go oglegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/in-portal-bugs?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups "In-Portal Bugs Team" group.
> To post to this group, send email to in-port...@googlegroups.com.
> To unsubscribe from this group, send email to in-portal-bug...@googlegroups.com.
> For more options, visit this group athttp://groups.google.com/group/in-portal-bugs?hl=en.

Phil -- wbtc.fr --

unread,
May 17, 2010, 5:14:58 AM5/17/10
to in-port...@googlegroups.com
Hi Dmitry,

here is the template : http://g.guideduvignoble.fr/vignobles/le-vignoble-de-bordeaux/cours-de-dégustation-et-de-cuisine/l-ecole-du-bordeaux.html
you can see at the bottom :

here goes your test tag : /in-link/links/link_detail


and I use in the template :

<inp2:m_if check="m_IsActive" t="in-link/links/link_detail"><inp2:m_else/>


which would normally not display the map because of the "else" tag.

Phil.

2010/5/17 Dmitry A. <dand...@gmail.com>

Alexander Obuhovich

unread,
May 17, 2010, 1:39:12 PM5/17/10
to in-port...@googlegroups.com
I see where error is:

  • Your output: /in-link/links/link_detail
  • Correct output: in-link/links/link_detail
Correct output doesn't contain leading "/" at the beginning.

That template is retrieved from "Properties" tab of category, where link is located. I suppose it's located in "Vignobles" category in you case.

In case, when you got "#in-link/item_design#" in "Properties" tab, then actual template will be retrieved from "advanced/in-link/module_info.xml" file in "item_design" node.

I also visually checked upgrade scripts to make sure, that during upgrade to 5.x version in-link details template is properly converted to "#in-link/item_design#".

I suppose, that you manually typed "/" in front of design template and therefore it wasn't properly upgraded.

Dmitry Andrejev

unread,
May 17, 2010, 6:36:02 PM5/17/10
to in-port...@googlegroups.com
Hi Phil,

Alex is right - there is an extra / in your template. That means something mixed up in your theme.

DA.

Phil -- wbtc.fr --

unread,
May 18, 2010, 5:19:53 AM5/18/10
to in-port...@googlegroups.com
Hi guys,

thanks for your replies, Alex you were nearly right: it works when I add a / at the beginning, and doesn't work when I remove it :)

thank you.
phil.

2010/5/18 Dmitry Andrejev <dand...@gmail.com>

Alexander Obuhovich

unread,
May 18, 2010, 5:34:24 AM5/18/10
to in-port...@googlegroups.com
You add "/" where:
  • at "Properties" tab?
  • at template tag?

Phil -- wbtc.fr --

unread,
May 18, 2010, 6:41:49 PM5/18/10
to in-port...@googlegroups.com
I've replaced

<inp2:m_if check="m_IsActive" t="in-link/links/link_detail">

with

<inp2:m_if check="m_IsActive" t="/in-link/links/link_detail">

btw the

<inp2:m_Get name="t"/> always return a leading 




2010/5/18 Alexander Obuhovich <aik....@gmail.com>

Alexander Obuhovich

unread,
May 19, 2010, 3:16:27 AM5/19/10
to in-port...@googlegroups.com
On index page too?

Phil -- wbtc.fr --

unread,
May 19, 2010, 10:56:30 AM5/19/10
to in-port...@googlegroups.com
If I've understoud your short question, here are the results of
<inp2:m_Get name="t"/>:

index page : index
in-link TD : directory
link detail : /in-link/links/link_detail

2010/5/19 Phil -- wbtc.fr -- <ph...@wbtc.fr>:

Alexander Obuhovich

unread,
May 19, 2010, 11:34:07 AM5/19/10
to in-port...@googlegroups.com
What you have in "Properties" tab set as "Link Detail Template"?

I bet you have "/in-link/links/link_detail" there instead of "#in-link/item_design#". If so, then please place "#in-link/item_design#" there.

Phil -- wbtc.fr --

unread,
May 19, 2010, 11:39:49 AM5/19/10
to in-port...@googlegroups.com
I've made the requested change, and now I have as output

 in-link/links/link_detail 

Allright now, thanks !

2010/5/19 Alexander Obuhovich <aik....@gmail.com>
Reply all
Reply to author
Forward
0 new messages