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

Support Forum

Start ::  PostNuke 0.7 Support ::  XTE Support ::  How do you "reload templates" in 750?

Moderated by: Support Team

Goto page : 1 | 2 Next Page
Bottom
How do you "reload templates" in 750?

  • Link to this postingPosted: 27.10.2004, 23:39
    Profile
    olivergardiner
    rank:
    Freshman Freshman
    registered:
     October 2004
    Status:
    offline
    last visit:
    27.10.04
    Posts:
    5
    I'm new to PostNuke and xanthia so I've been reading the guides on pnDOCS. In the Xanthia guide section on creating a new theme it says you should edit the template files (e.g. master.htm) and then select Admin > Xanthia > View themes > Reload templates in order to see the changes reflected in your theme. However, in my clean install of 750 there doesn't seem to be any option to reload templates so how do I see changes in master.htm reflected in the site?

    Thanks in advance
  • Link to this postingPosted: 27.10.2004, 23:42
    Profile
    Kenshino
    rank:
    Professional Professional
    registered:
     September 2004
    Status:
    offline
    last visit:
    31.07.08
    Posts:
    935
    Turn of Xanthia cache and refresh your browser.
  • Link to this postingPosted: 27.10.2004, 23:51
    Profile
    olivergardiner
    rank:
    Freshman Freshman
    registered:
     October 2004
    Status:
    offline
    last visit:
    27.10.04
    Posts:
    5
    Oops, now I think I've really broken it - I didn't have template caching checked in the Xanthia config pane so I tried setting the cache time to 0 rather than the default of 3600. However, I also checked "store templates in database" and now everything gives me a PHP error to the effect that it can't find home.htm in the database...
  • Link to this postingPosted: 27.10.2004, 23:55
    Profile Homepage
    Simon
    rank:
    Steering Committee Steering Committee
    registered:
     December 2002
    Status:
    offline
    last visit:
    14.08.08
    Posts:
    13407
    use the PostNuke Swiss Army Knife to reset your theme to Extralite and correct the settings.

    -----
    Regards,
    Simon

    itbegins.co.uk - Zikula Consulting

    Please read the Support Guide
  • Link to this postingPosted: 28.10.2004, 00:53
    Profile
    olivergardiner
    rank:
    Freshman Freshman
    registered:
     October 2004
    Status:
    offline
    last visit:
    27.10.04
    Posts:
    5
    Ok, I've got the system going again but I still don't seem to be able to get changes to master.htm to propagate through to home.htm etc, either stored in the database or not. I may be missging something big but I'm assuming that the template files such as home.htm are generated by using main.htm and the settings for Xanthia?

    Or do you have to edit all the files?
  • Link to this postingPosted: 28.10.2004, 01:11
    Profile Homepage
    Simon
    rank:
    Steering Committee Steering Committee
    registered:
     December 2002
    Status:
    offline
    last visit:
    14.08.08
    Posts:
    13407
    Have you got caching turned on? If you are changing the templates, you need to switch force recompile of templates on, and should not be storing templates in the database.

    -----
    Regards,
    Simon

    itbegins.co.uk - Zikula Consulting

    Please read the Support Guide
  • Link to this postingPosted: 28.10.2004, 01:14
    Profile
    olivergardiner
    rank:
    Freshman Freshman
    registered:
     October 2004
    Status:
    offline
    last visit:
    27.10.04
    Posts:
    5
    I think I may be barking up the wrong tree a bit, in that when I edit master.htm then changes are reflected in the admin pages but not in the home page. The theme developers guide in the XTE docs doesn't mention home.htm but this is obviously loaded as the template for the *home module template. Changes made to home.htm do get reflected in the live site.

    Can someone explain to me the different uses for main.htm and home.htm?
  • Link to this postingPosted: 28.10.2004, 01:15
    Profile Homepage
    Simon
    rank:
    Steering Committee Steering Committee
    registered:
     December 2002
    Status:
    offline
    last visit:
    14.08.08
    Posts:
    13407
    main.htm is used for all except the homepage. home.htm is used for the homepage admin.htm for the admin menu and user.htm for the user.php page.

    Thats the difference, in a nutshell

    -----
    Regards,
    Simon

    itbegins.co.uk - Zikula Consulting

    Please read the Support Guide
  • Link to this postingPosted: 28.10.2004, 01:24
    Profile
    olivergardiner
    rank:
    Freshman Freshman
    registered:
     October 2004
    Status:
    offline
    last visit:
    27.10.04
    Posts:
    5
    Cool - thanks for your help
  • Link to this postingPosted: 28.10.2004, 01:29
    Profile Homepage
    Simon
    rank:
    Steering Committee Steering Committee
    registered:
     December 2002
    Status:
    offline
    last visit:
    14.08.08
    Posts:
    13407
    No problem 8)

    -----
    Regards,
    Simon

    itbegins.co.uk - Zikula Consulting

    Please read the Support Guide
  • Link to this postingPosted: 11.11.2004, 01:38
    Profile
    Bree
    rank:
    Freshman Freshman
    registered:
     November 2004
    Status:
    offline
    last visit:
    26.12.04
    Posts:
    3
    Hello there, I have been hitting my head against the wall with xanthia for the last 2 nights. I have a standard, almost completely unmodified version of PostNuke installed 0.75.

    I now realize that the changes I am uploading are affecting the admin.php file, so if I load: http://www.villagevidiots...dmin.php?theme=VidNuke or http://www.villagevidiots...user.php?theme=VidNuke things look fine, but when I load
    http://www.villagevidiots...ndex.php?theme=VidNuke I am getting no modifications. Why is this?
    note: both templates, master.htm and home.htm contain the following line: mods.postnuke.com

    This is a test

    - I am not sure why index.php won't work for me - am I editing the wrong template file? That seems to be the problem, but what file should I be editing?

    thanks for any help you can offer. icon_smile cheers,

    Bree
  • Link to this postingPosted: 11.11.2004, 02:44
    Profile Homepage
    mgp7419
    rank:
    Professional Professional
    registered:
     August 2004
    Status:
    offline
    last visit:
    01.11.07
    Posts:
    898
    olivergardinerI think I may be barking up the wrong tree a bit, in that when I edit master.htm then changes are reflected in the admin pages but not in the home page. The theme developers guide in the XTE docs doesn't mention home.htm but this is obviously loaded as the template for the *home module template. Changes made to home.htm do get reflected in the live site.

    Can someone explain to me the different uses for main.htm and home.htm?


    Dont use the Xanthia edit windows... just do a direct file replacement... and keep Xanthia Cache off (its ok to turn on pnRenders cache.)

    This is another issue with Xanthia... I have talked to the dev of Xanthia (phpNut) and he told me that when the Xanthia was ported to 750 that it wasnt done right... and now it is riddled with flaws... Essentially Xanthia stores the Templates into the Database, and then Smarty caches it to the hard drive. This means that it has the speed of the hard drive cache, but has some other benifits. When Xanthia was deployed phpNut wasnt around due to illness, and so files where changed inappropriate.

    Fortunately the Xanthia code in .8 works, and their will be a patch for .750

    I havent confirmed any of these "Facts" so take what I say with some interpretation.

    It really is a mess, and it seems the only thing that works is block control. I really want a fix, cause this doesnt give Xanthia users a warm feeling...

    -----
    Im Back
  • Link to this postingPosted: 13.11.2004, 12:01
    Profile
    Bree
    rank:
    Freshman Freshman
    registered:
     November 2004
    Status:
    offline
    last visit:
    26.12.04
    Posts:
    3
    Thanks for the reply. I'm gonna get the .8 release and install that I guess. The major stumbling block with getting my site rolling has been the templates, and it really seems like anything I do doesn't do jack to edit the home page. It just stays as default. again, thanks for the info - I will stop pulling my hair out now icon_smile

    Hrm, just checking the PostNuke site.... only can download the .750 with the buggy xanthia?

    - Bree
  • Link to this postingPosted: 13.11.2004, 13:02
    Profile
    Kenshino
    rank:
    Professional Professional
    registered:
     September 2004
    Status:
    offline
    last visit:
    31.07.08
    Posts:
    935
    Why not use AutoTheme?
  • Link to this postingPosted: 14.11.2004, 19:42
    Profile
    Bree
    rank:
    Freshman Freshman
    registered:
     November 2004
    Status:
    offline
    last visit:
    26.12.04
    Posts:
    3
    ha! funny you should say - I got my butt in gear and hooked up AutoTheme last night icon_smile thanks all!
Goto page : 1 | 2 Next Page

Start ::  PostNuke 0.7 Support ::  XTE Support ::  How do you "reload templates" in 750?

Main Menu

Extensions Database

Documentation

Development

Login





 


 Log in Problems?
 New User? Sign Up!

Donate to Zikula