Zikula: A Flexible Open Source Content Management System
home | forum | contact us

Dizkus

Bottom
Pagesetter Module Templating
  • Posted: 17.07.2006, 20:39
     
    MACscr
    rank:
    Professional Professional
    registered:
     December 1969
    Status:
    offline
    last visit:
    10.01.08
    Posts:
    1631
    For people that were annoyed like me with the Pagesetter pubedit width, etc, and the fact that it wasnt loaded using the site admin template, well, i made this little work around for xanthia themes.

    1) Add a new module template in the Xanthia theme config area, name it pagesetter.htm. Add whatever to the content area so you can save it.

    2) Then add the pagesetter.htm file to your theme modules directory (pn/THEMENAME/templates/modules/) with the following contents.

    Code

    <!--[pnvarcleanfrominput name=func assign=func]-->
    <!--[if ($func == 'pubedit') || ($func == 'publist')]-->
    <!--[include file="modules/admin.htm"]-->
    <!--[else]-->
    <!--[include file="master.htm"]-->
    <!--[/if]-->


    3) Go to content wrappers and assign then template to the Pagesetter module. Setup Complete!

    Now the pubedit and publist areas of Pagesetter will use your themes admin template and all other areas will use your normal master template.

    Hope this helps others.

  • Posted: 17.07.2006, 21:43
     
    mhalbrook
    rank:
    Legend Legend
    registered:
     December 1969
    Status:
    online
    Posts:
    6534
    The reason it doesn't load the admin template is because those are user functions, not admin functions
  • Posted: 17.07.2006, 21:49
     
    MACscr
    rank:
    Professional Professional
    registered:
     December 1969
    Status:
    offline
    last visit:
    10.01.08
    Posts:
    1631
    Right, i should have explained that i understood that and the reasoning behind it, just found it annoying for my use. If htmlpages had category support, i wouldnt even be using Pagesetter as their are all kind of little annoyances. Biggest one i just found 5 mins ago is the fact that the preview option screws you over as you cant get back to the edit area because back doesnt work, thus you end up losing all your changes. Wish i could use fckeditor (like i do for HTML pages and other modules) instead of whatever PS uses.
  • Posted: 17.07.2006, 22:21
     
    mhalbrook
    rank:
    Legend Legend
    registered:
     December 1969
    Status:
    online
    Posts:
    6534
    Preview always opens in a new window for me...
  • Posted: 17.07.2006, 22:25
     
    MACscr
    rank:
    Professional Professional
    registered:
     December 1969
    Status:
    offline
    last visit:
    10.01.08
    Posts:
    1631
    In FF? Odd. Wonder if my workaround is causing any problem? Cant think of any reason it would.
  • Posted: 18.07.2006, 01:45
     
    Wendell
    rank:
    Professional Professional
    registered:
     February 2004
    Status:
    offline
    last visit:
    02.12.08
    Posts:
    1039
    Firefox has a setting in Options that allows you to select whether links open in the current window, a new window or a new tab. You might check that out. The Pagesetter preview opens in a new tab for me because that's how I have FF set.

    --
    DWX Logo
  • Posted: 18.07.2006, 02:01
     
    MACscr
    rank:
    Professional Professional
    registered:
     December 1969
    Status:
    offline
    last visit:
    10.01.08
    Posts:
    1631
    I have not made any custom changes to FF though and i do not seem to have this problem with anything else. Is PS not handling popups in the normal JS or target="_blank" way?
  • Posted: 18.07.2006, 07:15
     
    Wendell
    rank:
    Professional Professional
    registered:
     February 2004
    Status:
    offline
    last visit:
    02.12.08
    Posts:
    1039
    Hmm. I'm not sure what the answer is. But thank you for the code, I'm going to use it. I am redesigning my site and was just noticing that issue yesterday. :)

    --
    DWX Logo

Extensions Moderation

Main Menu

Extensions Database

Documentation

Development

Login

Donate to Zikula