Jump to content

So.. My first newbie question to the community


Zislatik
 Share

Recommended Posts

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.

  1. How do I get the foundation6 formatting? I have the files need in the base template (located in _main.php).
  2. 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.
  3. 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!
  4. Please be gentle as I am old and frail.  :lol:

Thanks for the help in advance (Let the beatings begin!) 

Jim

post-4023-0-36619600-1450793774_thumb.pn

post-4023-0-18881800-1450793775_thumb.pn

post-4023-0-01003800-1450793776_thumb.pn

Link to comment
Share on other sites

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...)?

  • Like 1
Link to comment
Share on other sites

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.

  • Like 1
Link to comment
Share on other sites

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.  :P

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...