Vikestart Posted April 2, 2017 Share Posted April 2, 2017 Hey, I'm just starting out with Processwire, coming from WordPress, and I'm really happy with this CMS so far. However, I have been searching the internet for hours now without finding an answer to this: How can I have images automatically wrapped inside div tags? An alternative would be to give the parent <p> tag a specific class. I just need to control the parent of the image tags for styling purposes. Link to comment Share on other sites More sharing options...
Macrura Posted April 2, 2017 Share Posted April 2, 2017 one way would be with jquery; another way would be with a textformatter applied to the rte field, in which you could use something like simple html dom parser, to wrap those.... 1 Link to comment Share on other sites More sharing options...
Vikestart Posted April 2, 2017 Author Share Posted April 2, 2017 2 minutes ago, Macrura said: one way would be with jquery; another way would be with a textformatter applied to the rte field, in which you could use something like simple html dom parser, to wrap those.... I know I could do it with jQuery, but I don't want to use Javascript because then there is a delay before the changes are applied, and since this is needed for CSS styling, the delay would be very obvious. As for the second method you describe, I have no idea what any of that means Care to elaborate? Link to comment Share on other sites More sharing options...
Vikestart Posted April 2, 2017 Author Share Posted April 2, 2017 I did try the Image Interceptor module, but I couldn't get it to work. Though I see that Processwire 3.0 is not listed as compatible, only up to and including 2.7. The module didn't seem to have any effect on anything. >_> Got the Image Interceptor module to work now. It does the job. 1 Link to comment Share on other sites More sharing options...
Macrura Posted April 2, 2017 Share Posted April 2, 2017 yep, that's what i forgot to recommend. 1 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