MarkE Posted July 27, 2024 Posted July 27, 2024 No replies to the above and no solutions I could find, so I built my own module. See here 1
Robin S Posted July 28, 2024 Posted July 28, 2024 On 7/27/2024 at 5:30 AM, MarkE said: I have a site with a large number of Hanna codes which I want to use on another site. How can I do this without manually exporting and importing each one? You can use Ryan's ProcessDatabaseBackups module to do this. Export: Import: Without ProcessDatabaseBackups you could use PhpMyAdmin or Adminer to do something similar. If your Hanna codes reference external files (I prefer to use files for my Hanna codes so I can edit them in my IDE) then you would need to copy those to the other site too. 1
MarkE Posted July 28, 2024 Posted July 28, 2024 10 minutes ago, Robin S said: You can use Ryan's ProcessDatabaseBackups module to do this. Aha! Always something more to learn... I use that module a lot, but never explored individual tables. I guess it's fine where the tables are 'stand-alone' as in this case, but otherwise it might get a bit scary. No matter, the module was quite quick and fun to write and hopefully carries less risk of screwing up the database ? EDIT: Plus I can integrate it into my migrations module if I want to. 2
The Upright Man Posted August 20, 2024 Posted August 20, 2024 (edited) Is it possible to make a hanna code tag that spans multiple lines? For example .. [[ my-hanna-tag var1=value1 var2=value2 var3=value3 ]] I'm not seeing the code that is causing the CRs to break the parser. Ideas? OK, I got it working by adding a quick hack to TextFormatterHannaCode.module, in function formatValue(), add $value = preg_replace('/\n+/', ' ', $value); Edited August 20, 2024 by The Upright Man Got it
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now