Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
How do you remove time stamps for specfic pages
Hi,
I was wondering if there is a mod, or how would I go about removing the time stamps for specific heading.
I want to have time stamps for articles and such, but not for like “about us” , homepage items, “contact us” etc.
Thanks,
Ritchie
http://www.highfiveguy.com
Cheers,
Ritchie
Offline
Re: How do you remove time stamps for specfic pages
Various ways to do this, but it all centers on the article form (Presentation -> Forms) you are using to display articles—this is where the time stamp gets added in.
It’s probably easiest to do this by section. If all articles from any section are to be treated the same (i.e., either they all have the time stamp or none do) then you can specify one article form (including the time stamp) for some sections and a different one (without the time stamp) for the other sections.
Then you can either use different page templates (presentation -> pages) appropriate to each section, so that each template calls the correct article form (as <txp:article form="nodate" />
), or you can use one template using conditionals (<txp:if_section name="articles">...
). You can even put the conditionals in the article form itself.
You can also specify the article form for a particular article under Advanced Options on the content -> write page. I would consider this a “quick and dirty” approach; you’re much better off in the long run organizing your sections, templates, and forms to handle issues like this automatically.
Last edited by jsoo (2005-11-22 16:18:33)
Code is topiary
Offline
#3 2005-11-22 22:33:30
- zem
- Developer Emeritus
- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: How do you remove time stamps for specfic pages
This is covered in the FAQ: How do I manage static pages?
Alex
Offline
Re: How do you remove time stamps for specfic pages
Thanks for the info :) I’ll get working on those right away.
Cheers,
Ritchie
Offline