- Moderated by:
- Support
-
- rank:
-
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 -
- rank:
-
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... -
- rank:
-
Steering Committee
- registered:
- December 2002
- Status:
- offline
- last visit:
- 28.11.08
- Posts:
- 13417
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 -
- rank:
-
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? -
- rank:
-
Steering Committee
- registered:
- December 2002
- Status:
- offline
- last visit:
- 28.11.08
- Posts:
- 13417
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 -
- rank:
-
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? -
- rank:
-
Steering Committee
- registered:
- December 2002
- Status:
- offline
- last visit:
- 28.11.08
- Posts:
- 13417
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 -
- rank:
-
Steering Committee
- registered:
- December 2002
- Status:
- offline
- last visit:
- 28.11.08
- Posts:
- 13417
-
- rank:
-
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.com/admin.php?theme=VidNuke or http://www.villagevidiots.com/user.php?theme=VidNuke things look fine, but when I load
http://www.villagevidiots.com/index.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.comThis 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. :) cheers,
Bree -
- rank:
-
Professional
- registered:
- August 2004
- Status:
- offline
- last visit:
- 01.11.07
- Posts:
- 898
olivergardiner
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?
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 -
- rank:
-
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 :)
Hrm, just checking the PostNuke site.... only can download the .750 with the buggy xanthia?
- Bree -
- rank:
-
Professional
- registered:
- September 2004
- Status:
- offline
- last visit:
- 31.07.08
- Posts:
- 935
Why not use AutoTheme? -
- rank:
-
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 :) thanks all!
