![]() |
New Plugin - CustomFields - 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: New Plugin - CustomFields (/showthread.php?tid=359) |
New Plugin - CustomFields - linden - 2011-03-08 Hey guys. Not sure where to post this, so i'll just go ahead and do that here to start with. This is a great plugin and adds nice functionality that is needed. Though i am no backend guy, only frontend really and would like to know if it would be able to work with the i18n plugin to separate the languages. since it seems to only display the default language. Does anybody have an idea? Help would be greatly appreciated, since on a multilanguage project based on gs. Thx New Plugin - CustomFields - mvlcek - 2011-03-08 linden Wrote:Hey guys. Not sure where to post this, so i'll just go ahead and do that here to start with. This is a great plugin and adds nice functionality that is needed. Though i am no backend guy, only frontend really and would like to know if it would be able to work with the i18n plugin to separate the languages. since it seems to only display the default language. Does anybody have an idea? Help would be greatly appreciated, since on a multilanguage project based on gs. Thx There is currently no "nice" way to "add" a new language for the I18n plugin. You have to manually create a page and give it a slug name with "_" + language code, e.g. "index_de". After you save this page, the I18N view will display a second column with this language. New Plugin - CustomFields - linden - 2011-03-08 Thanks for the answer. Though i have already created all the pages with neccesary langcode. like index and then index_en for example. So all pages are done and working smoothly. But if i use the "getCustomfield" code. It only displays the default language on the site. no matter what language i am currently on. i cant get the second language customfield to show, if you get what i mean? New Plugin - CustomFields - linden - 2011-03-10 Would anyone have an idea at all? Any help appreciated. New Plugin - CustomFields - mvlcek - 2011-03-10 linden Wrote:Would anyone have an idea at all? Any help appreciated. I don't use the CustomField plugin and do not understand your problem. What do you want to achieve? New Plugin - CustomFields - linden - 2011-03-10 Right, yeah i might be in the wrong thread, but i am using the i18n plugin to have 2 languages on a site, SE and EN. and when i switch between the languages when browsing the site using get_page_content(); and get_i18n_component those fields are showing the current language. But i also would need som customfields to add a couple of more for instance headlines to the page that i want on both languages. but by just using getCustomfield it wont use the current sessions language. I have SE as default, and if i switch to EN the SE customField is still showing. ![]() New Plugin - CustomFields - mvlcek - 2011-03-14 The newest version (0.9.5) of the I18N plugin (http://get-simple.info/extend/plugin/i18n/69/) supports custom fields: use get_custom_field($name) or return_custom_field($name) to display/get the value for the current language. You might want to use the new I18N Custom Fields plugin (http://get-simple.info/extend/plugin/i18n-custom-fields/100/, based on n00dles101's CustomFields plugin) instead of the CustomFields plugin, as it offers more field types, a GUI to define the fields and is more efficient when used with the I18N plugin. See http://get-simple.info/forum/topic/1537/custom-fields-and-i18n/ for more information. New Plugin - CustomFields - linden - 2011-03-14 mvlcek Wrote:The newest version (0.9.5) of the I18N plugin (http://get-simple.info/extend/plugin/i18n/69/) supports custom fields: use get_custom_field($name) or return_custom_field($name) to display/get the value for the current language. This is great! i havent had time to try it fully, but i installed it and just by looking at it and that its managed in the admin area, and has a wysiwyg option makes this a great tool. Thanks for this! ![]() New Plugin - CustomFields - mvlcek - 2011-03-14 linden Wrote:This is great! i havent had time to try it fully, but i installed it and just by looking at it and that its managed in the admin area, and has a wysiwyg option makes this a great tool. Thanks for this! I just uploaded a correction of both I18N and I18N Custom Fields, because in some circumstances (different order of loading the plugins) it would cause an error. Please download again. New Plugin - CustomFields - n00dles101 - 2011-03-14 @mvlcek Great job... haven't had any time lately to update my plugin... Miles better than anything I would have done.... New Plugin - CustomFields - Mandelain - 2011-03-16 n00dles101 Wrote:Say you wanted to have a different header image on each page. You would have something like this on your theme. I would like to say thanks for making this plugin. It is exactly the thing I need for my problem plus I can use it for dynamicly change other pages without hassling to much with the code. But..... How can one intergrate this in the Abacus theme ? I have done the things in the quote. But I think things go bad when I put the div in the theme php. Now all the pages go blank. I know that Im a noob (dont tell anybody). I also know i am doing something wrong. I simply cant figure out what. Please help ? New Plugin - CustomFields - Mandelain - 2011-03-17 Did it ![]() Changed the <img src="<?php getCustomField('image');" alt="" /> to <img src="<?php getCustomField('image'); ?>" /> and it works Can I do somthing about an empty "Header Image" field which displays a red cross on the website ? New Plugin - CustomFields - yojoe - 2011-03-17 Mandelain Wrote:Can I do somthing about an empty "Header Image" field which displays a red cross on the website ?Give a linky to see what's the problem. I guess path to the file isn't right. New Plugin - CustomFields - Mandelain - 2011-03-17 Would love to but the testsite is running internal so that would be a problem. The broken link is there because it looks for an image which isnt there because I gave nothing up in the Header Image field. It would be easy to set an image in every page. But thats not very friendly for the cms user so If I give a background image up in the css than if there isnt an Image it would show the background. Now it shows the background with a broken link. Isnt there a script (div code) that surpases the image if there is none ? New Plugin - CustomFields - mvlcek - 2011-03-17 You can check, if the field is filled: Code: <?php if (returnCustomField("image")) { ?><img src="<?php getCustomField('image'); ?>" /><?php } ?> New Plugin - CustomFields - yojoe - 2011-03-22 Mlvcek: could you add a wysiwyg section, click on img button and confirm that img window lacks browse button ? edit: btw, did you try to paste a code of a gallery created using simple image gallery plugin into a customfield ? It isn't processed and just show a plain text. I didn't test it with other plugins but I think it would end similarly. New Plugin - CustomFields - mvlcek - 2011-03-22 yojoe Wrote:Mlvcek: could you add a wysiwyg section, click on img button and confirm that img window lacks browse button ? The I18N Custom Fields plugin is not yet (fully) compatible with GetSimple 3.0b:
BTW: Let's move questions/discussions on the I18N Custom Fields plugin to the correct thread at http://get-simple.info/forum/topic/1537/custom-fields-and-i18n/. New Plugin - CustomFields - Mandelain - 2011-03-23 mvlcek Wrote:You can check, if the field is filled: Thanks |