focuslabllc / ee-master-config

Focus Lab's Master Config setup for quick ExpressionEngine multi-environment support
http://focuslabllc.com/ee
294 stars 62 forks source link

entry_url in Email Notification Templates #10

Closed paynecodes closed 12 years ago

paynecodes commented 12 years ago

I am using this config file to streamline my dev, staging, and production deployments, but I am having one issue that I can't quite figure out.

My Entry Notification Email is as follows:

A new entry has been posted in the following channel:
{channel_name}

The title of the entry is:
{entry_title}

Posted by: {name}
Email: {email}

To read the entry please visit: 
{entry_url}

Problem is: the entry_url is not updating across deployments, while everything else under the sun is. In other words, dev.example.com is where the entry was created, after migrating to staging, the email template still displays dev.example.com rather than staging.example.com.

Any ideas?

erikreagan commented 12 years ago

My guess is that the {entry_url} there is referencing the channel setting (Admin -> Channel Administration -> Channels -> Edit Preferences -> Path Settings). Those paths aren't using global variables.

Does that setting for your specific channel have the domain name in it as well?

erikreagan commented 12 years ago

Paging @jpdesigndev :)

paynecodes commented 12 years ago

I must have missed your response some days ago. Thanks for the bump. You are right. Each of my channels do contain the dev url.

Any way to control this beast?

erikreagan commented 12 years ago

No worries.

Each of my channels do contain the dev url. Any way to control this beast?

Not from the config I'm afraid. Sorry to be the bearer of bad news.

What about trying to remove the domain and just start with the forward slash? Eg:

/blog/

paynecodes commented 12 years ago

Not something I am willing to attempt. Looking for something as efficient as your awesome config bootstrap. :) Thanks though.