Closed dziudek closed 11 years ago
Added this feature will post asap. Also shall we include switches for date/category name/author/leave a reply as well ?
Ok, we'll include also switchers for all other article meta data. It will be a little bit like Joomla! :)
How about something like k2 options, switchers for category layout & item layout. Is category template the only template used for category layout or is there another?
There are a lot of templates with this layout. It isn't an easy to make this options and we should be careful with adding a lot of options, because it must be stored in the post meta data. I'll include options to hide the title (currently the title is automatically hidden, when the title is blank) and options to hide specific parts of the post/page meta-data.
I think that we can store these params in one post meta-data as a JSON string.
Nearly finished, just need to add translation support and commit changes. Following is what I've done.
Pointers for further improvements
All commits checked and working.
@NormanUK - if you are starting implementation of some features please consult it before starting code with me, because architecture of some features should be reviewed by me. In other case if the code will be wrong structured you will only lost your time.
@NormanUK - Please understand - I really appreciate your help - it is amazing for me and I'm happy that you're cooperating with us, but we need some standards :) I think that we should always talk a little bit before starting some things, because then we will able to select the best solutions :)
Time and effort is not a problem for me. All code is commented so it is easy to distinguish, you can review and use whichever part is suitable for you when I start a fresh fork and commit the changes tomorrow ;)
@NormanUK - yes, of course - but sometimes it is worth to consult some things and implement it properly instead of review the whole code and then changing it - it is less efficient and takes more time ;) So for the future changes please always write a short message to me ;)
Or the best solution - please create an issue with the feature which you want to implement - then we'll discuss about the details, maybe somebody else will also add his comment :)
Ok, will do that ;)
Thanks Mate :) And I'll waiting for your pull request :)
Hi, I just had the need for this feature and I see I'm not the only one :) I searched the plugins directory, and found this plugin - but it says it works just for a certain theme: http://wordpress.org/extend/plugins/genesis-title-toggle/ Might be some ideas for implementing it in there...
This isn't a desperatelly must have feature(since it could also complicate Gavern too much and untill now that's what I like about it compared with YOO's framework or the much much bloated and heavyer Gantry) but:
Today I was triyng to publish a status post, deleted the title to see what's all the talking here, saved the post and looked kinda broken since posts without title don't even display the date or any other place that could have a link to them. It come to my mind a simple thing I have done to an older theme with custom post formats. Edited content-status.php template and deleted the code that shows the title.
I don't know how proffesional is this sice Gavern calls layouts/content.post.header.php for every post format layout and it's not like deleting <?php the_title ... but, I'm just saying. And who wants to have a post without the title then can just select the status post format.
If Gavern uses defaul wordpress way with post formats this is how I done it(I don't know too much about coding): <?php if ( has_post_format( 'status' ) ) : { ?> bla bla bla <?php } else : { ?> bla bla bla<?php } That kind of thing could also solve my question about disabling featured image on some pages. If the post format is image to show the featured image inside and out(search, archives ...etc), if it's not only outside the article.
The value will be stored in the post meta data.