Archiving system with I18N News - Printable Version +- GetSimple Support Forum (http://get-simple.info/forums) +-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3) +--- Forum: Scripts & Components (http://get-simple.info/forums/forumdisplay.php?fid=11) +--- Thread: Archiving system with I18N News (/showthread.php?tid=3235) |
Archiving system with I18N News - Angryboy - 2012-06-02 Angryboy Wrote:One feature that I thought was missing from the i18n News system is that of providing automatic archives for news results. However, such a feat is actually achievable with the current i18n Search plugin if you take a moment to think outside of the box... Basically it comes down to this:
http://spritingonawhim.net.tc/articles/getsimple-tutorial-archiving-system-with-i18n-news/?lang=en Archiving system with I18N News - shawn_a - 2012-06-02 Angryboy Wrote:Angryboy Wrote:One feature that I thought was missing from the i18n News system is that of providing automatic archives for news results. However, such a feat is actually achievable with the current i18n Search plugin if you take a moment to think outside of the box... hmm, it might be kewl to have a plugin to auto add archive tags to specific pages on save. month year etc and this could do all kind of other auto tagging stuff, like keyword count detection and auto tag or heading parsing or something. Archiving system with I18N News - Angryboy - 2012-06-02 Mvlcek seems to have done this now for the month/year tags :-) I'll need to update my tutorial xD Archiving system with I18N News - Angryboy - 2012-07-21 This new script will automate archive linking! Code: <?php Code: <php get_i18n_archive(); ?> This outputs the links to the months of the archive in the form "Month Year" (e.g. July 2012), and so long as you have a page with the (% searchresults %) placeholder on it, the links will work (though you need to set the URL prefix correctly - this is explained below). The following parameters can be passed to the function within the ():
Example: Code: <?php get_i18n_archive($tag='_special_blog', $maximum='100', $url='/blog/', $wrap='div') ?> Will search for pages with the virtual tag _special_blog (which is automatically generated for special pages of the type 'blog'), index a maximum of 100 search results; said links will be of the type "domain.com/blog/?tags=tags=_cre_YYYYMM+_special_blog" and each link will be wrapped in a div. RE: Archiving system with I18N News - hugel - 2014-08-05 Hi, I'm just trying to get that archive link work. And I'm happy that it does. But the (virtual) special tags in the url doesn't, neither _special_xx nor _cre_yyyymm. url: ../blog/&tags=_cre_201408+_special_blog _cre_201408 and _special_blog hav no effect at all It is working when I'm using a "normal" tag: ../blog/&tags=_cre_201408+blog but creDate is still not working. Thanks a lot! Jo RE: Archiving system with I18N News - smdp-1971 - 2019-12-10 Hi, Is there a way to view the archive like this: 2018 (15) <- count 2019 (20) <- count Thanks |