Robguy Posted October 25, 2015 Posted October 25, 2015 Hey guys, Rookie with processwire here (especially when it comes to modules). I wan to customize the html output that the comments module generates. At first I attempted to create my own module but then realised I am re-inventing the wheel and there should be an easier way to customise the output. Now my logic thought out that by moving the wire/modules/Fieldtype/FieldtypeComments folder could sit comfortably in site/modules/Fieldtype/FieldtypeComments folder as well. That didn't work either. All I really need to do is to modify the CommentList.php file to output the html I want. I've attempted reading around and looking for answers on the forums but I found some answers relating to customising Modules to be a bit confusing (mainly focussed at creating modules not customising*) and it seems that other people haven't had an issue with this so not finding a lot of questions like mine. Any help would be awesomely appreciated!
cstevensjr Posted October 25, 2015 Posted October 25, 2015 Now my logic thought out that by moving the wire/modules/Fieldtype/FieldtypeComments folder could sit comfortably in site/modules/Fieldtype/FieldtypeComments folder as well. That didn't work either. What happens when you leave the wire/modules/Fieldtype/FieldtypeComments folder (where it belongs) and then copy that folder to site/modules/Fieldtype/FieldtypeComments?
adrian Posted October 25, 2015 Posted October 25, 2015 Do you really need to modify CommentList.php ? What about the "OPTIONAL: Generating your own output" section on this page: https://processwire.com/api/fieldtypes/comments/ If you really do need to modify, take a look at this blog post: https://processwire.com/blog/posts/processwire-core-updates-2.5.14/
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