Setting Weblog Path settings with {homepage} variable
Posted: 09 May 2008 01:10 PM   [ Ignore ]  
Lab Assistant
Avatar
RankRank
Total Posts:  182
Joined  12-13-2007

To ease movement from development to production servers and overall flexibility, I found that it seems to work if I set my weblog path settings using the {homepage} global variable.

For example:
Section URL: {homepage}/news

Seems to be working so far, are there any pitfalls or issues using this?

 Signature 

Fusionary | Geniuscar

Profile
 
 
Posted: 09 May 2008 02:45 PM   [ Ignore ]   [ # 1 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  12433
Joined  04-29-2002

Put the variable {homepage} in a template by itself, to make sure it displays what you expect.

In some cases, you might get http://www.example.com/

 Signature 

Quick Reference - EE Trial Options - EE Wiki - Docs for updating a build

Profile
MSG
 
 
Posted: 09 May 2008 03:04 PM   [ Ignore ]   [ # 2 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  182
Joined  12-13-2007

Yes I seem to be getting what I need.
My main concern is not having to update the path settings for each weblog if I change domain or index.php segment.

Hmmm…in my testing, its always giving me http://example.com/index.php, which is exactly what I need.

You’re saying there are cases that it would leave off the index.php segment (thus breaking my path settings)? Do you know what cases those are?

 Signature 

Fusionary | Geniuscar

Profile
 
 
Posted: 09 May 2008 03:10 PM   [ Ignore ]   [ # 3 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  12433
Joined  04-29-2002

In some cases, I don’t have index.php as a part of my URL. I use an .htaccess file to remove index.php.

 Signature 

Quick Reference - EE Trial Options - EE Wiki - Docs for updating a build

Profile
MSG
 
 
Posted: 09 May 2008 03:11 PM   [ Ignore ]   [ # 4 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  182
Joined  12-13-2007

Oh right, I gotcha.

 Signature 

Fusionary | Geniuscar

Profile
 
 
Posted: 11 May 2008 08:44 AM   [ Ignore ]   [ # 5 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  23547
Joined  05-20-2002

Yep- homepage may vary depending on your config settings- which sounds like what you want.  Glad Sue got you squared away.

 Signature 

AKA rob1

Help Request TipsPro Network

Profile
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 09:33 AM
Total Registered Members: 65087 Total Logged-in Users: 39
Total Topics: 82227 Total Anonymous Users: 22
Total Replies: 441925 Total Guests: 226
Total Posts: 524152    
Members ( View Memberlist )