![]() |
|
zenPage - printNewsContent() - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: Plugins (https://forum.zenphoto.org/forum-6.html) +--- Thread: zenPage - printNewsContent() (/thread-7973.html) |
zenPage - printNewsContent() - micheall - 19-12-2010 I've been looking and looking and haven't been able to find it. Does the printNewsContent() function assign any css id/class to any of the the content? From what I can tell it doesn't which means if attempting to apply CSS styling to it's output would require modifying the core component some. Am I missing something simple? It could be that my lack of proper sleep is causing me to miss it, heh. zenPage - printNewsContent() - acrylian - 19-12-2010 No, it does not, it just prints the content you added and how you configured TinyMCE for. You have to put a wrapper div or the like around it. tinyZenpage however does add classes to the images you include in a page/article (but those are documentated in the plugin itself). zenPage - printNewsContent() - micheall - 19-12-2010 But what if the news that's being displayed isn't something you created in tinyMCE. I knew it did it for news pages, but for when the news item it's displaying is an album, there's not really a way to style that properly I've found. For instance centering the image or what not. zenPage - printNewsContent() - fretzl - 19-12-2010 You could also set a custom stylesheet in the tinyMCE configuration file(zp-core/zp-extensions/tiny_mce/config/). zenPage - printNewsContent() - micheall - 19-12-2010 Yes, but what I mean is when using the CombiNews of zenpage to include album automatically, the printNewsContent() is printing something that is automatically generated, not something I prepared via tinyMCE. I suppose a workaround would just be to turn off combinews and make my album entries manually. Edit: Aesthetically to me it would make more sense to be able to center the album thumbnail that's being used. I could just set the thumbnail to a large size to fill the empty space, but the problem with that is of course orientation of images. zenPage - printNewsContent() - fretzl - 19-12-2010 You could try to add this to your CSS:
zenPage - printNewsContent() - acrylian - 19-12-2010 @Micheall: You should have mentioned that you are talking about CombiNews mode... Fretzl's way is the right one to do it for single CombiNews items, no need for wrappers or such. If you use the "latestimagesbyalbum" option there are Edit: No, I just recall we have no wrapper for the text description so you can let it float around the image. zenPage - printNewsContent() - dendraya - 28-12-2010 i have a problem concerning the combi-news feature: a zenPage - printNewsContent() - acrylian - 28-12-2010 The only way would be to make a custom function based on it. But anyway, thanks, that one will be removed in tonight's nightly as it should not be there. zenPage - printNewsContent() - dendraya - 28-12-2010 thx a lot - i'll try the nightly build... btw, it should be quite safe to use the nightly builds, shouldn't it? zenPage - printNewsContent() - kyrd - 07-03-2012 (hi, my first post here - so thanks4all! :-) I'm using zenpage+combinews and have read quite a lot but can't find a satisfying solution for this issue, according to my low level knowledge of php. zenPage - printNewsContent() - acrylian - 07-03-2012 CombiNews does print the following setup (single image modes): ` Also TinyMCE creates paragraphs around text by default so the html should look like: ` zenPage - printNewsContent() - kyrd - 07-03-2012 I don't use tinymce, but this makes sense, problem solved. thanks for your fast reply! |