We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Converting template variables from EE2 to EE5

How Do I?

Micah's avatar
Micah
17 posts
about 6 years ago
Micah's avatar Micah

I recently upgraded from EE2 to EE5 (on a site that I did not build, unfortunately). Now, on the site I have several places where I see codes like this:

{our_story:description}

I’m just trying to figure out where these variables can be access in the EE2 admin for me to see what code is inside them, and also how to recreate these types of variables in EE5.

If anyone has specific documentation links for both or other insight that would be greatly appreciated.

Excited to get started with managing an EE site…always wanted to see what the CMS has to offer!

       
Micah's avatar
Micah
17 posts
about 6 years ago
Micah's avatar Micah

Just to provide some follow up, it seems that somehow all of the template groups and templates were copied over during the upgrade, but they were copied with some older version that I’m not even sure where it came from.

So for example I have a group called “components” with a template called “marquee”. Old EE2, the code is (for example):

<div class="some-class">Some content</div>

But after the upgrade, the template is there but with different code inside of it:

<div class="some-other-class">Some other content</div>

Does anyone have any insight as to why this happened? I have a /templates folder on EE2 that has all the correct code as .html files. Is there a way to import all of these to EE5?

       
Micah's avatar
Micah
17 posts
about 6 years ago
Micah's avatar Micah

OK so it looks like that old code is actually stored in my database. The code I want to use is stored in template files at /system/user/templates/default_site.

So I guess the question now is how do I force the template engine to read from my files instead of the database?

       
Derek Jones's avatar
Derek Jones
7,561 posts
about 6 years ago
Derek Jones's avatar Derek Jones

Sounds like your files got out of sync with the DB, which should happen automatically. If you are before the upgrade, hit the manual sync button on the Template Manager to make sure they are in sync. If you’re post upgrade, just replace the files in the file system with the correct files.

       
Micah's avatar
Micah
17 posts
about 6 years ago
Micah's avatar Micah

Boom! Replaced the files and now we’re good. Thanks again for all of your help getting me up and running.

       
Derek Jones's avatar
Derek Jones
7,561 posts
about 6 years ago
Derek Jones's avatar Derek Jones

Rockin!

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.