Menu

#41 Break sections cleanly in Pagemaster

Core Module
closed-fixed
Display (31)
5
2004-08-27
2004-08-10
No

If you have custom section templates in Pagemaster that use
floated divs/spans to allow multi column sections, the editing
interface can put the sections all over the place.

Just changing one <br /> tag to a <br clear="all" /> sorts out the
interface.

In mod/pagemaster/class/Section.php

In function view_section($edit_mode=FALSE) {

Look for if($edit_mode)

Change

$myelements[0] .= "<br />" .
PHPWS_Form::formSubmit($_SESSION["translate"]-
>it("Edit"), "SECT_op[edit_section]") .
CLS_help::show_link("pagemaster", "section_edit") .
"&nbsp;";

to

$myelements[0] .= "<br clear=\"all\" />" .
PHPWS_Form::formSubmit($_SESSION["translate"]-
>it("Edit"), "SECT_op[edit_section]") .
CLS_help::show_link("pagemaster", "section_edit") .
"&nbsp;";

Discussion

  • Steven Levin

    Steven Levin - 2004-08-18
    • assigned_to: nobody --> jydallstar
     
  • Steven Levin

    Steven Levin - 2004-08-27
    • status: open --> closed-fixed
     
  • Steven Levin

    Steven Levin - 2004-08-27

    Logged In: YES
    user_id=225888

    Changes are now in CVS.

     

Log in to post a comment.