Best Practice to Geotarget with DotCMS

27 views
Skip to first unread message

Alex

unread,
Jul 31, 2012, 8:12:30 AM7/31/12
to dot...@googlegroups.com
Hi,

What is the best way to geotarget with dotCMS?

1. At dotCMS level with a javascript
2. At a proxy level with NGINX
3. Other - please be specific

Thanks,

Alex

Maria Ahues Bouza

unread,
Aug 1, 2012, 6:10:00 PM8/1/12
to dot...@googlegroups.com
Alex,

Have you looked at this video that Stephen Bell from OC did about how they implemented Geolocation functionality on their site?

http://dotcms.com/videos/how-oklahoma-christian-university-is-using-geolocation

-Maria



--
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To post to this group, send email to dot...@googlegroups.com.
To unsubscribe from this group, send email to dotcms+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/dotcms?hl=en.




--
Community Manager

dotCMS
Main: 305.900.2001
Fax: 305.397.2579
www.dotcms.com
http://www.twitter.com/dotCMS
http://www.facebook.com/dotCMS
http://www.twitter.com/mabouza

Please consider the planet before printing this email.

Alex

unread,
Aug 2, 2012, 12:46:06 AM8/2/12
to dot...@googlegroups.com
Hi, Maria!

Yes, I did!  Is this the right approach?

Alex
To unsubscribe from this group, send email to dotcms+un...@googlegroups.com.

Maria Ahues Bouza

unread,
Aug 2, 2012, 4:46:59 PM8/2/12
to dot...@googlegroups.com
Yes :)

Alex

unread,
Aug 4, 2012, 9:06:07 PM8/4/12
to dot...@googlegroups.com
Maria:

What I really want to build is a regional site with specific content for a specific region.  Only for one region.  So when someone accesses the main site he or she is redirected to the regional site. What is the best approach to do this if I don't want to use a proxy server?

Alex

Maria Ahues Bouza

unread,
Aug 4, 2012, 9:26:01 PM8/4/12
to dot...@googlegroups.com
Alex,

Can't you use the same script that Stephen is using from this site

And access information about where the user is on the template and redirect to another folder if necessary?

-Maria

Alex

unread,
Aug 4, 2012, 9:30:18 PM8/4/12
to dot...@googlegroups.com
Maria:

Great! I can do that.  I just want to make sure it is the right approach.  I know with dotCMS anything is possible, but I have to find the right path to do it.  I have made things in a "creative way" before that I have not found them efficient later in the long run.  That is why I ask.

So I do that at the template level, is that okay?  I would put the javascript code in the template then. Is that a good practice?  I have to factor in three aspects:

a. language
b. device
c. geolocation

So according to your advice, it is best to keep everything in one host and just point to different directories, correct?

Alex

Alex

Maria Ahues Bouza

unread,
Aug 4, 2012, 9:51:54 PM8/4/12
to dot...@googlegroups.com
Alex,

You're right, in dotCMS anything is possible so it's great that you take time to plan what you want to build before doing it.

I think I would put the code in a container that you can reuse on your templates.

You can keep it in different hosts, if it's different information for different languages, if it's content that you want to translate in different languages I'd keep it in the same host.

-Maria 

Alex

unread,
Aug 4, 2012, 10:38:14 PM8/4/12
to dot...@googlegroups.com
Maria:

I was thinking of using Maxmind.  I tried to find the plugin that Michael wrote with Maxmind but it is not in his site anymore.

Thanks,

Alex

Maria Ahues Bouza

unread,
Aug 4, 2012, 10:49:02 PM8/4/12
to dot...@googlegroups.com
Alex,

I'm not sure what plugin was that ?

Maybe Michael has a copy, try sending him an email.

-Maria
Reply all
Reply to author
Forward
0 new messages