Hi,
I created my own custom theme for my website and encountered a problem which I cannot explain myself.
Articles (usual content in the blog) and static pages are formatted as they should be, but polls, for instance, are not shown as they should be. Even when "Format as article" is marked in the plugin menu.
Take a look at http://www.benqo.net/pages/poll.html
What did I wrong in the template?
Formatting others than articles and static pages not working
-
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: Formatting others than articles and static pages not wor
You'll need to look into the sourcecode; the poll plugin uses different "serendipity_Entry_Date" classes than your template.
"Format as article" simply means to wrap the content of a staticpage/voting/contactform with the DEFAULT serendipity DIV-Tags, so that the usual CSS applies.
If you have modified the wraping containers, you'll need to edit the *.tpl files of the plugin you want to use so that they also use your custom container names.
The reason is that plugins can NOT use the entries.tpl file, and they have no means to find out how you format your entry.
Regards,
Garvin
"Format as article" simply means to wrap the content of a staticpage/voting/contactform with the DEFAULT serendipity DIV-Tags, so that the usual CSS applies.
If you have modified the wraping containers, you'll need to edit the *.tpl files of the plugin you want to use so that they also use your custom container names.
The reason is that plugins can NOT use the entries.tpl file, and they have no means to find out how you format your entry.
Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
-
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Oh, I forgot that the poll plugin is not yet smartifyied. So yes, your CSS assignment would be easiest (or edit the poll plugin, the HTML code there is not hard to find)
The missing "?>" is not a problem, this is optional and the benefit from omitting it is that additional linebreaks at the end of the file (caused by windows editors) won't have the effect of the well-known PHP error "CAnnot add header information...".
Regards,
Garvin
The missing "?>" is not a problem, this is optional and the benefit from omitting it is that additional linebreaks at the end of the file (caused by windows editors) won't have the effect of the well-known PHP error "CAnnot add header information...".
Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/