Zislatik Posted December 22, 2015 Share Posted December 22, 2015 Good morning all, I have a site that I am converting to PW from Modx and I am having a problem. It is a resume that I started building with the "delayed" template. I must admit that I barely understand the template but I think I have all of the fields I need to have built. As a quick get me by move, I inserted the foundation6 tagged markup into the text area and bang, it looked horrible but progress. I found the source button so I copy the markup again and pasted into the source window and bang, looks better but no foundation formatting. How do I get the foundation6 formatting? I have the files need in the base template (located in _main.php). I was hoping to do a foreach loop through jobs (or schools or about sub-pages) but I am unsure where they would go. It would be pulled from the resume page. I am not sure how I would concatenate all of the resume items from their pages to the resume.php content$. I have read a ton of information and at this point I am lost in what I think I know. The good thing is that I learn by doing and this is doing! Please be gentle as I am old and frail. Thanks for the help in advance (Let the beatings begin!) Jim Link to comment Share on other sites More sharing options...
Christophe Posted December 22, 2015 Share Posted December 22, 2015 Hello, Could you paste here the source code, before and after pasting it in CKEditor (you can save the page, or you can normally just "validate" the source code window and then come back to the same window to copy the code)? Does you code contain divs? By default div tags are converted to paragraph tags normally. For each field like this one, you have to authorize in its settings the use of particular classes, etc. And, you can customize a Style drop-down list in CKEditor. Example Admin > Setup > Fields > Edit Field: body, and then in the "Input" tab: Extra Allowed Content Custom Editor JS Styles Set I've had to customize all this in order to use UIkit specific markup in at least the (CKEditor) Body field. NB: is it what you are really seeing in your Summary and Body fields, or is the image altered (for privacy purposes...)? 1 Link to comment Share on other sites More sharing options...
elabx Posted December 22, 2015 Share Posted December 22, 2015 What I would do to render things inside Resume, is to have the template assigned to the Resume page have something like this: $jobs = $pages->get("title=Jobs")->children; foreach($jobs as $job){ echo $job->render(); } In this example, I would be rendering each page under the Jobs page inside the Resume rendering. In the jobs template, I would have to include only the HTML needed to render each job (wether it is a li element or something else). Heck, if its only a list I would render it in the foreach loop above. 1 Link to comment Share on other sites More sharing options...
Zislatik Posted December 22, 2015 Author Share Posted December 22, 2015 Christophe, It aprears that you are correct. I did modify my div into paragraphs. I will try to customize the style drop downs as you suggested. And, yes I did modify for privacy although it is a page on the internet right. I will reply with my results. Thanks, Jim Hello, Could you paste here the source code, before and after pasting it in CKEditor (you can save the page, or you can normally just "validate" the source code window and then come back to the same window to copy the code)? Does you code contain divs? By default div tags are converted to paragraph tags normally. For each field like this one, you have to authorize in its settings the use of particular classes, etc. And, you can customize a Style drop-down list in CKEditor. Example Admin > Setup > Fields > Edit Field: body, and then in the "Input" tab: Extra Allowed Content Custom Editor JS Styles Set I've had to customize all this in order to use UIkit specific markup in at least the (CKEditor) Body field. NB: is it what you are really seeing in your Summary and Body fields, or is the image altered (for privacy purposes...)? Link to comment Share on other sites More sharing options...
Zislatik Posted December 24, 2015 Author Share Posted December 24, 2015 Guys, I also just realized that I could probably just do the pages in a more conventional manner, ie. with the delayed processing in a page/template format. I think my issue in not being able to make the template do what I want it too. I think this might solve my issue as well. As for the "Admin > Setup > Fields > Edit Field: body, and then in the "Input" tab:" changes, they did not seem to have the desired effect. I will keep at it to see if I can get it working. Thanks, Jim Link to comment Share on other sites More sharing options...
Peter Knight Posted December 24, 2015 Share Posted December 24, 2015 Never used the delayed output method. Wondering if it's the best method to start with or does it increase the learning curve. Welcome to PW 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