List and Summary Templates Choice in Page Templates by JensZ

Post custom hacks and enhancements for phpwcms here only. Maybe some of these things will be included in official release later.
Post Reply
User avatar
jsw_nz
Posts: 907
Joined: Fri 2. Apr 2004, 02:42
Location: New Zealand

List and Summary Templates Choice in Page Templates by JensZ

Post by jsw_nz »

Just wanted to make a separate entry of this very nice feature.

JensZ posted this code on his site. I installed on my localhost and it works great. Thought others would take particular interest in this.....


Image



This goodie can be found here:
http://www.ikfrej.se/index.php?downloads

hack_defaulttemplates.txt 7.66 KB
When creating a new article, this enhancement will make sure that article templates default to what is set up in the page template of the article category that the article is created in.


:D :D
User avatar
anthony.abraira
Posts: 99
Joined: Sun 11. Sep 2005, 07:42
Location: Mars Hill, NC
Contact:

valid hack?

Post by anthony.abraira »

does this hack still work? couldn't find the code to replace in the files it specified.
"The trick is living without an answer."
User avatar
jsw_nz
Posts: 907
Joined: Fri 2. Apr 2004, 02:42
Location: New Zealand

Post by jsw_nz »

Hi Anthony

To be honest have not tried this recently - obviously the directory names have changed since then. My instinct it still should work - might want to carefully go throught the instructions supplied (comparing context and expressions) - This would be a nice feature for core -

cheers
:)
Post Reply