Problem with Page Layout not being applied in the output

This forum is for all Flare issues not related to any of the other categories.
Post Reply
mojebabicka
Propeller Head
Posts: 17
Joined: Fri May 09, 2014 4:32 am

Problem with Page Layout not being applied in the output

Post by mojebabicka »

Hello all,

I am a Flare newbie but I need to prepare a prety complex document and so far I think it is an excellent tool. But recently I ran into a problem that I cannot overcome. I am using a following structure in the TOC:
Image
The chapter Extension modules uses standard one column page layout. I have prepared a special page layout with 2 columns for the chapter List of extension modules and applied it in the TOC. Then I apply the 1 column page layout back to the topic "Module name here". But it does not apply! My page layout remains to be 2 columns in the consequent pages.

Strange thing is that the similar structure works in other places of the document but in this case and several other places it won´t change the page layout.

Can anyone help me out with this. I am really confused by this. I can even see the right page template to be applied in Flare editor and in preview. But the output ignores the setting and keeps the 2 column template.

Here is a problematic part from the TOC file:

Code: Select all

    <TocEntry
      Title="Extension modules"
      Link="/Content/Chapters/09_Appendix/Extension modules/Extension modules.htm"
      BreakType="pageLayout"
      StartSection="false"
      PageLayout="/Content/Resources/PageLayouts/A4_1column.flpgl">
      <TocEntry
        Title="List of extension modules"
        Link="/Content/Chapters/09_Appendix/Extension modules/List of extension modules.htm"
        BreakType="pageLayout"
        StartSection="false"
        PageLayout="/Content/Resources/PageLayouts/A4_2columns_heading.flpgl" />
      <TocEntry
        Title="Module name here"
        Link="/Content/Chapters/09_Appendix/Extension modules/ExtModules/ModuleTemplate.htm"
        BreakType="pageLayout"
        StartSection="false"
        PageLayout="/Content/Resources/PageLayouts/A4_1column.flpgl" />
      <TocEntry
        Title="Module name here"
        Link="/Content/Chapters/09_Appendix/Extension modules/ExtModules/ModuleTemplate.htm" />
    </TocEntry>
mojebabicka
Propeller Head
Posts: 17
Joined: Fri May 09, 2014 4:32 am

Re: Problem with Page Layout not being applied in the output

Post by mojebabicka »

Just a quick note. I am using Flare 9 and now I have found out that this happens only when I use two same TOC entries at once. Then Flare does not apply changed page layout. When I use different TOC entry following the first one, everything seems to be working just fine.
LTinker68
Master Propellus Maximus
Posts: 7247
Joined: Thu Feb 16, 2006 9:38 pm

Re: Problem with Page Layout not being applied in the output

Post by LTinker68 »

mojebabicka wrote:Then I apply the 1 column page layout back to the topic "Module name here". But it does not apply!
If you look in the code you copied into the post, you'll see that the last TOC entry is missing the BreakType and PageLayout lines. That's why that TOC is still showing the previous layout -- you didn't tell it that you want to switch (back) to a different layout.

EDIT: Never mind -- I was looking at the very last TOC entry. I missed that the third TOC entry is setting the TOC to the original page layout.

The only thing I can see different is that the very first TOC entry is missing the / before the closing >. But it sounds like your problem is after that point, not at that point. Other than that, I can't see any reason why it shouldn't be working.
Image

Lisa
Eagles may soar, but weasels aren't sucked into jet engines.
Warning! Loose nut behind the keyboard.
NorthEast
Master Propellus Maximus
Posts: 6426
Joined: Mon Mar 05, 2007 8:33 am

Re: Problem with Page Layout not being applied in the output

Post by NorthEast »

Just as a thought, the section with the problem has two Toc entries to the same topic - so does the problem only occur when you have duplicate links?

Other than that, you've specified the page layout, but have you checked which page type within each page layout is being used.
pdenchfield
Propellus Maximus
Posts: 574
Joined: Tue Oct 03, 2006 7:56 am
Location: Seattle, WA
Contact:

Re: Problem with Page Layout not being applied in the output

Post by pdenchfield »

Posting related thread in case of help.
http://forums.madcapsoftware.com/viewto ... 10&t=18936
mojebabicka
Propeller Head
Posts: 17
Joined: Fri May 09, 2014 4:32 am

Re: Problem with Page Layout not being applied in the output

Post by mojebabicka »

Hello all,

Thank you for your answer. Ultimately, it is because of two same links in the TOC. It should not be a problem in real document. I just need to keep it in mind when preparing templates where these things can happen.
Post Reply