I18N Special Pages - Printable Version +- GetSimple Support Forum (http://get-simple.info/forums) +-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3) +--- Forum: Plugins (http://get-simple.info/forums/forumdisplay.php?fid=13) +--- Thread: I18N Special Pages (/showthread.php?tid=2747) |
RE: I18N Special Pages - shawn_a - 2014-06-05 odd, do your pages all have special tags on them also ? special pages should only be applied to pages created as special pages. RE: I18N Special Pages - krysttof - 2014-06-05 I'm not sure I understand what you ask with "do your pages all have special tags on them also" ? RE: I18N Special Pages - shawn_a - 2014-06-05 I believe special pages have a tag on the pages with _special or something RE: I18N Special Pages - mvlcek - 2014-06-06 I18N Special Pages version 1.3.1:
RE: I18N Special Pages - krysttof - 2014-06-06 @mvlcek, I just tested the update 1.3.1, my problem is solved. Thank's RE: I18N Special Pages - Oleg06 - 2014-06-06 yes, page ceased to be removed while maintaining the type of special pages RE: I18N Special Pages - hugel - 2014-06-14 Hi you wonderful 'Special Pages' users. I've just discovered I18N Special Pages and I´m about to build as a kind of automatically generated teaser overview page. It's working fine so far. In search results I´m using PHP Code: php get_special_field_image('bild', $title=null, '150', '100','1'); ?> The picture comes out perfectly. But the image is integrated in some html which should only be there when there is a picture uploaded in special_field 'bild' and should not be in the page when the field doesn#t contain a picture. As you can see I'm a php loser: PHP Code: <?php but the html comes out even when there is no picture. I'm very excited about your answers. Thanks a lot! RE: I18N Special Pages - morvy - 2014-06-14 use standard get_special_field and add html markup only if the field is not empty but this looks like a small bug, mvlcek ? RE: I18N Special Pages - hugel - 2014-06-14 Thanks for your quick replie! Well, I think this wouldn't work. Actually it should start like this or something: PHP Code: <?php RE: I18N Special Pages - Carlos - 2014-06-14 Maybe with Code: if (return_special_field('bild',false)) { RE: I18N Special Pages - hugel - 2014-06-14 Hi Carlos, it works! Thank you very much. RE: I18N Special Pages - mganko - 2014-06-22 Hi mvlcek, There is a bug in 1.3.1 version. There is a problem with new functionality that handles slug updates when you change slug in special page configuration. After that page files are updated but data/other/pages.xml file is not updated so global $pagesArray has old data with old url's. To fix it in i18n_specialpages/backend.class.php after line 330 add new line with this: PHP Code: create_pagesxml(true); //regenerate cache RE: I18N Special Pages - 0zz - 2014-06-24 Hello! Is it possible to skip first several items in the search results? So, lets say I want to call two news items somewhere on the page by setting "max=>2" and in some other place I need to call next three news items... is there a parameter which can "skip" the first two news items, when I call them second time? this is the type of code I'm using to call news: Code: <?php get_i18n_search_results(array('tags'=>'news', 'DATE_FORMAT'=>'%d %B, %Y', 'max'=>2, 'i18n'=>0, 'lang'=>'ru', 'numWords'=>'1p', 'order'=>'created', 'showPaging'=>0, 'HEADER'=>'')); ?> I hope I could explain the idea.. Thank you! RE: I18N Special Pages - mvlcek - 2014-06-24 (2014-06-24, 01:18:08)0zz Wrote: Hello! There is no such skip parameter, but it can be simulated by the (undocumented) process parameter (not tested): Code: <?php BTW: this is the wrong forum thread. RE: I18N Special Pages - 0zz - 2014-06-24 wow!! this piece of code does magic!!! Thank you very much for immediate reply! RE: I18N Special Pages - danielg - 2014-07-12 I would love to see a date and time picker option under custom field types. However, the result would be just static text, right? It couldn't be made to work like a future moment to publish the page on setting? RE: I18N Special Pages - danielg - 2014-07-13 I am looking to show searchers what page category a search result belongs to. In doing so, I tried to display the name of a search result's parent page as part of the daughter page's results snippet. However, GS does not seem to have a function that retrieves the title of a page's parent. And even if it did, it would likely put out the parent title of the search results page itself, rather than of the search result. Within the i18n special pages plugin there also appears to not be a way to put out the parent's title. Now that I think of it, an adaptation of the get_i18n_breadcrumbs(return_page_slug()); function for search results seems ideal. RE: I18N Special Pages - mvlcek - 2014-07-13 (2014-07-13, 22:13:39)danielg Wrote: ... See [url]http://get-simple.info/wiki/config:caching-function[url], echoPageField(theParentSlug, 'title') should do it. @shawn_a: I think this should (also) be included on the templates function wiki page. RE: I18N Special Pages - shawn_a - 2014-07-14 anyone can add it.... RE: I18N Special Pages - danielg - 2014-07-14 Quote:See [url]http://get-simple.info/wiki/config:caching-function[url], echoPageField(theParentSlug, 'title') should do it. That didn't output anything for me when set up under Plugins -> Special Pages -> Configure i18n special pages -> search. And my search results do have parent pages. RE: I18N Special Pages - danielg - 2014-07-15 Am I missing something or is it not possible to upload an image with the image custom field? It seems the user has to leave the post being created to switch to the files tab, upload an image there, then go back to the pages tab to select it there... It look the same in the i18n custom fields plugin. RE: I18N Special Pages - Oleg06 - 2014-07-31 is it possible to record the tag of the plugin Special Pages in the component for rendering? Code: <?php get_special_field_image('name', 'title', 'width', 'height'); ?> RE: I18N Special Pages - mvlcek - 2014-08-01 (2014-07-31, 17:59:45)Oleg06 Wrote: is it possible to record the tag of the plugin Special Pages in the component for rendering? I do not understand, what you would like to do. RE: I18N Special Pages - Oleg06 - 2014-08-01 for rendering I use this code Code: <h3 class="search-entry-title"> Code: <?php get_special_field_image('image', 'title', '480', '320'); ?> instead Code: <img src="<?php echo $item->image; ?>" title="<?php echo htmlspecialchars($item->title, ENT_NOQUOTES); ?>" alt="<?php echo htmlspecialchars($item->title, ENT_NOQUOTES); ?>" /> (2014-08-01, 01:41:11)mvlcek Wrote:(2014-07-31, 17:59:45)Oleg06 Wrote: is it possible to record the tag of the plugin Special Pages in the component for rendering? RE: I18N Special Pages - shawn_a - 2014-08-01 Why not just make your own function to do that, you already pretty much have. |