How to move from Trunk to Mental

Hello List,
I’ve currently got my site about 95% done using regular Trunk, but I’d
like to move to mental since I can’t seem to get the mailer behavior
working with the current trunk on my host.

Is there an easy way to do this without losing the content I currently
have? I’ve been looking all over the radiantcms.org site and can’t
find reference on how to upgrade anywhere.

Thanks,
BJ Clark

P.P.S. I’ll be in #radiantcms this afternoon if you want real-time help.

Here’s a quick way to do it.

Depending on how you put the code on your server (via svn or tarball or
gem), use SVN to checkout or export the code from the mental branch into
the
same directory.

In the root of the app (above public/), run rake db:migrate. This will
bring your new installation inline with the latest database schema.

Now, restart your webserver/app server/fcgi processes and enjoy!

Sean

P.S. to install the Mailer extension, use SVN again, but checkout/export
into the vendor/extensions directory instead of the root.

List,
The only issue I had upgrading (after removing all my page behavior
types from the database by hand because all the behaviors were
breaking everyhting) is that most of the links in admin don’t work
anymore. I keep my site under /content/ and lots of the links are
trying to load /admin/page instead of /content/admin/page.
Is there some way to change this?

Thanks,
BJ Clark

I’ve added that, but the tabs are still not working. All the other
links are full links, the tabs are all at “/admin/layouts/” or
whatever.
Any suggestions?
BJ Clark

BJ,

Go into the config/environment.rb file and put this line at the bottom:

ActionController::AbstractRequest.relative_url_root = “/content”

Sean

List,
I’m still having this problem.
In fact, I’m trying to get Sean’s Mailer Extension to work and it is
redirecting to /contact/ instead of /content/contact/.

I have the suggested line in config/environment.rb, but it doesn’t
seem to help. Anyone have any ideas?

Thanks,
BJ Clark

BJ,

If you’re using Apache on the frontend, you’ll also want to use the
‘RewriteBase’ directive in your .htaccess file.

Sean

Hello All,
I’m still having this issue and it’s the only thing stopping me from
launching at this point.
Here’s the issue all over again:
My site is at domain.com/content/
However, lots of links are trying to load /page_name or /admin/page
not /content/admin/page.

I have tried:
.htacces has a line that says: " RewriteBase /content"

environment.rb has a line that says:
“ActionController::AbstractRequest.relative_url_root = “/content””

Anyone have any ideas? I have no idea what else to do.
BJ Clark

Sean,
Thanks for you help again. I’ll try to figure that out.
I just don’t understand what has changed that I need to do all this.
the svn trunk of radiant didn’t have these url problems. Is something
different in Mental with regards to urls?
BJ

Have a look at this message:

http://lists.radiantcms.org/pipermail/radiant/2007-January/003149.html

Thanks Daniel, I’ll look into that.

Here’s what I don’t understand. This problem has only occured after I
switched to Mental. It was not a problem, even though the install was
exactly the same, under the regular svn trunk. What has changed?
That’s what is so aggravating.

BJ

Looking at the source for the current trunk, I don’t see how it could
have worked for subdirs then. The ‘url’ tag called Page#url directly
which delegated to Behaviour#page_url and at no point does it look at
the request to determine the root path, at least that I can see.

Dan.

Thanks Daniel, I’ll look into that.

Here’s what I don’t understand. This problem has only occured after I
switched to Mental. It was not a problem, even though the install was
exactly the same, under the regular svn trunk. What has changed?
That’s what is so aggravating.

BJ

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs