PhotoWebMax Posted May 25, 2014 Share Posted May 25, 2014 During my visits to the PW forum I keep noticing references to Hanna Code. Can anyone add some background to this arena? Thanks! Link to comment Share on other sites More sharing options...
diogo Posted May 25, 2014 Share Posted May 25, 2014 It's all well explained in the module page and in the introductory posthttp://modules.processwire.com/modules/process-hanna-code/ https://processwire.com/talk/topic/3745-hanna-code/ 1 Link to comment Share on other sites More sharing options...
SiNNuT Posted May 25, 2014 Share Posted May 25, 2014 Of course we can, but you did not mention what kind of resources you already digested. There is a Hanna code thread . There's also http://modules.processwire.com/modules/process-hanna-code/ . grrrrr 2 Link to comment Share on other sites More sharing options...
diogo Posted May 25, 2014 Share Posted May 25, 2014 I was all the time waiting for posting only some seconds before you 2 Link to comment Share on other sites More sharing options...
PhotoWebMax Posted May 25, 2014 Author Share Posted May 25, 2014 I will download and take it for a spin. For those who are familiar with MODx would it be correct to say that this Hanna Code system is similar to deploying MODx Chunks? (creating placeholders for HTML and PHP code?) Another question: is using Hanna Code more useful for site developers or site owners (or both)? I can see how it would be useful in avoiding some unwanted tag actions when using a editor like TinyMCE. Just to give this thread some value: if you guys can recall facing any stumbling block or barrier where Hanna Code came to the rescue I would love to read about it... Thanks! Link to comment Share on other sites More sharing options...
kongondo Posted May 25, 2014 Share Posted May 25, 2014 .....................Another question: is using Hanna Code more useful for site developers or site owners (or both)? I can see how it would be useful in avoiding some unwanted tag actions when using a editor like TinyMCE.... Security There are major security implications with a tool that will let you enter unfiltered text and code from your web browser. As a result, Hanna codes are meant for definition only by superusers and we recommend keeping it that way Link to comment Share on other sites More sharing options...
Macrura Posted May 25, 2014 Share Posted May 25, 2014 hanna codes have proven invaluable for letting end user clients be able to insert things that require complex markup, such as accordions, tabs, galleries; i've used it for links to internal pages, audio players, phone and contact info, counts of pages (for example "We now offer [[count template=class]] classes!"), lists of attached documents, lists of external links, child pages etc.. 2 Link to comment Share on other sites More sharing options...
bwakad Posted June 11, 2014 Share Posted June 11, 2014 Although any module I see in PW is great, they do take a great deal of learning away from you. But if a end-user has to type [[hello_world]] And forget one of the required bracket's, what happens? Link to comment Share on other sites More sharing options...
SiNNuT Posted June 11, 2014 Share Posted June 11, 2014 Then it will (probably) not be recognised as Hanna code and the [hello_world]] will be displayed as-is. So no harm done (it may only look a bit stupid 1 Link to comment Share on other sites More sharing options...
cstevensjr Posted June 12, 2014 Share Posted June 12, 2014 hanna codes have proven invaluable for letting end user clients be able to insert things that require complex markup, such as accordions, tabs, galleries; i've used it for links to internal pages, audio players, phone and contact info, counts of pages (for example "We now offer [[count template=class]] classes!"), lists of attached documents, lists of external links, child pages etc.. I normally use Ryan's "Page Edit Field Permission" Module on most of my customer's sites in conjunction with Hanna Code. I create custom text area fields which are then restricted to the Super-User only. That is where I place stuff such as Macrura is talking about in the above quote. That way the client never sees or has access to mess up the Hanna Code data. It has worked very nicely for me and my clients. 3 Link to comment Share on other sites More sharing options...
Martijn Geerts Posted June 12, 2014 Share Posted June 12, 2014 Hanna code is if you talk in MODX language, a combined snippet & chunk on steroids 2 Link to comment Share on other sites More sharing options...
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