howto make the hide title checkbox work in my own .tmpl ?

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
Zym0tiC
Posts: 13
Joined: Tue 2. Aug 2005, 16:33

howto make the hide title checkbox work in my own .tmpl ?

Post by Zym0tiC »

Is it possible to include a sort of if statement in my own article .tmpl file, so that if i check the hide title box or the hide summary box that those will be hidden?
pepe
Posts: 3954
Joined: Mon 19. Jan 2004, 13:46

Post by pepe »

Write separate templates:

one without summary
one without Title

give them "speaking" names, like : noTitle.tmpl / noSummary.tmpl

choose them inside the article basicInformation...
Zym0tiC
Posts: 13
Joined: Tue 2. Aug 2005, 16:33

Post by Zym0tiC »

I already thought about that but I was wondering if there would be an other solution for this.

Maybe with some php code
Post Reply