Personalization of Default page

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
3/3/2010 8:42:50 AM
Gravatar
Total Posts 12

Personalization of Default page

 

In my scenario I would like to have domain aliases pointing to same site and content as well as same database.  My question is related to personalization.  Lets say I have site1.com which is main site and on the default page I have a picture of the owner of this domain and a some contact information.  Now I want to use a domain alias to point to this main site let's call it site2.com but on the default page I want the picture and contact information to change to reflect the owner of this domain.  All other content will be the same with the exception of my contact form which should now use the owner of the domains email address.

Is this a possibility?

Thank you so much for your time and responses.
jon

3/4/2010 12:33:00 PM
Gravatar
Total Posts 2239

Re: Personalization of Default page

Hi Jon,

I think this is definitely possible using mojoPortal but you will have to write the code for it; it's not something that is included with the mojoPortal distribution.

Joe Audette has recently created a number of new developer training videos for mojoPortal. I suggest you take a look at them as they will help you get up to speed on developing custom modules for mojoPortal. http://www.mojoportal.com/some-new-training-videos-2010-03-02.aspx.

HTH,
Joe D.

3/16/2010 2:28:25 PM
Gravatar
Total Posts 12

Re: Personalization of Default page

Thank you Joe for the response.  I was thinking I would definitely need to write something and have begun creating my projects folder and project in mojoportal by following the developer videos, they are great.

Here is my scenario, can someone let me know if you think this is an okay way to do this.
I have a main site and will offer the exact same site to other folks (lets say agents) after we purchase a new domain name for them.  This new domain will be a domain alias that will redirect to the main site.  All new agents sites will contain all of the exact same content with the exception of the following.

Default page will have some right side content which will be a picture of the owner of this particular domain and their name, address etc...
My thought is to read the header information to see which URL was redirected to the main page, lookup in table and get the user information to be displayed in this right side content piece

I will have a new Contact form submission page which will also get information based off of which URL was redirected and take the email address for the owner of the site to be used as the email address the contact form will be sent to.

I think this will be okay but does anyone have a better solution or think that this may cause an issue once my number of sites that gets redirected grows and it looks as though it will grow quickly. 

I am not opposed to multiple sites I just don't know if I need it since the content will for the most part all be the same and am having trouble figuring out how I would set it up so that if the main site is updated then the child sites get updated as well.

any help here is greatly appreciated.
thanks
jon

3/17/2010 10:01:20 AM
Gravatar
Total Posts 18439

Re: Personalization of Default page

If the site has a fixed dedicated ip address, ie you can reach the site by typing in the ip address instead of the domain name, then you could just point each domain directly at the ip address (don't use aliasing or forwarding or redirecting or masking or anything like that). The site will respond for any domain that points at the ip address. Then in your custom control you could detect the host name/domain name part of the url and show content accordingly.

The only downside I see is that if you create more and more sites with almost identical content, it could have negative effects on SEO for the primary site, since all the sites will have content that matches the same search terms. However this issue also exists even if you make separate sites with the same content so using multiple sites would not really solve anything. 

You would need a custom contact form, but you could clone the existing one and add your logic.

Hope it helps,

Joe

3/17/2010 10:09:06 AM
Gravatar
Total Posts 12

Re: Personalization of Default page

Thank you for the reply, this answers my question. 

Please enjoy your St. Pattys Day beer that was just sent your way!!

Jon

3/17/2010 10:13:15 AM
Gravatar
Total Posts 18439

Re: Personalization of Default page

Hi Jon,

Many thanks! I shall raise my glass to you as I enjoy a fine Guinness this evening!

Cheers,

Joe

You must sign in to post in the forums. This thread is closed to new posts.