Ruby complains about a missing method or local variable ‘config’ (see
error below). If I look into
/vendor/extensions/language_redirect/app/models/language_redirect_page.rb
I can see the usage of config, but no definition.
That’s what I did, thanks
You used YAML while I simply made a hash out of it. BTW what’t the
best way to store configs now?
Write a full blown extension for it? For example, the mailer extension
would probably be much better if it created a “Mailers” tab where you
could create custom mailer objects just like any other object in
Radiant. Then the extension wouldn’t need to use a custom page type. The
radius tags could be global which would allow them to be used on any
page.
About 3-4 months ago, the core team deprecated the ‘config’ part. If
you still want to use it, feel free to nab the code for it from the
mailer extension. I believe it’s toward the top of mailer_page.rb.
John you’re right, as usual, any pointers to examples of full blown
extensions to get inspiration from? I stopped following the
development lately (my fault) and I need some pointer to catch up.
Wow! You guys are so great! I go outside and sit in the sunshine for
an hour, do my grocery shopping and come back and you have solved almost
every problem I have in the world. The ruby error message is gone and
is replaced by a “302 found” in my browser.
John you’re right, as usual, any pointers to examples of full blown
extensions to get inspiration from? I stopped following the
development lately (my fault) and I need some pointer to catch up.
The ldap extension uses a lot of the new features that are available for
extensions:
302 is a redirection. I tried the extension on a clean radiant install
and it worked fine. Now to be sure it works create a blank config page
part and put the following lines: