Article title don´t hide with custom templates

Use GitHub to post bug reports and error descriptions for phpwcms. Describe your problem detailed!
Locked
User avatar
isac
Posts: 410
Joined: Tue 18. Nov 2003, 13:13
Location: Portugal
Contact:

Article title don´t hide with custom templates

Post by isac »

When I chosse to hide article title with display full article template nothing happens! :cry:

This is my code

Code: Select all

<TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
   [TITLE]
  <TR> 
    <TD><H1>{TITLE}</H1></TD> 
  </TR>[/TITLE][SUB]
  <TR> 
    <TD><H3>{SUB}</H3></TD> 
  </TR>[/SUB]
  <TR> 
    <TD>{DATE:Y-m-d:EN}</TD> 
  </TR> 
  <TR> 
    <TD>[IMAGE]<SPAN style="float:left;margin:2px 5px 8px 0;">{IMAGE}[CAPTION]<BR> 
      {SPACER:1x3}<BR> 
      {CAPTION}[/CAPTION]</SPAN>[/IMAGE]{SUMMARY}</TD> 
  </TR> 
</TABLE>
but it works with old default

comps
Pappnase

Post by Pappnase »

hello

maybe no bug cos you have in the article the titel and subtitle tag!?
i have test it at my installation there it works fine! if i call the sample.tmpl from you it will show the title / subtitle as you format it in the tmpl.

when i erease the lines the will no title tag shown!

did you alreade upload the patch from today!?
User avatar
isac
Posts: 410
Joined: Tue 18. Nov 2003, 13:13
Location: Portugal
Contact:

Post by isac »

Yes Pappnase, i have the pacht

Now I am thinking about make two costum templates, the first with {title} and second one without it, because the check box hide article title dont work with sample templates.
Pappnase

Post by Pappnase »

isac wrote:Yes Pappnase, i have the pacht

Now I am thinking about make two costum templates, the first with {title} and second one without it, because the check box hide article title dont work with sample templates.
hmm isac i think i will work! but when you use your own templates it make no sense if you set the click to the hide checkbox! cos you decide how it should look like!
User avatar
isac
Posts: 410
Joined: Tue 18. Nov 2003, 13:13
Location: Portugal
Contact:

Post by isac »

Pappnase wrote:but when you use your own templates it make no sense if you set the click to the hide checkbox! cos you decide how it should look like!
I have to agree with you :roll:
Peekay
Posts: 286
Joined: Sun 25. Jul 2004, 23:24
Location: UK

Post by Peekay »

Er... I missed something here. If you use 'default' template for article and 'default' template for summary - user can hide summary in main article by checking the box.

My question (and I think Eric's question) is... if you create a CUSTOM template for article, how do you add a conditional statement to hide the summary within the article IF the checkbox is checked, like the default article template does?

I found and modified 'sample' template o.k, but it doesn't include this statement.

Or put another way...

Where is the default article template? :)
Peekay
Posts: 286
Joined: Sun 25. Jul 2004, 23:24
Location: UK

Post by Peekay »

It may have been Isac's question too... :oops:
argos
Posts: 135
Joined: Mon 15. Mar 2004, 20:02

Post by argos »

Peekay wrote:Where is the default article template? :)
Yeah, I would like to know that too!!!
Regards,
Jurgen Nijhuis
http://www.argosmedia.nl
Locked