-
Posts
22 -
Joined
-
Last visited
Posts posted by Beate
-
-
-
Thanks! Nice idea and it works
-
I have a problem with templates. In the header of my german/english page is sentence with html tags, as some words are smaller than others. And every page should have another sentence, but some might have the same. And it should be selectable for the user, so putting it directly in the template is no solution. I tried using the select option field, which can also have i18n options, but the html in the options is escaped.. so „A <span>journey</span> to <span>yourself...</span>“ is on the page.
This is what I inserted in my template:
if ($page->headersatz) echo $page->headersatz->value;
Any ideas? Or any better idea? Thanks!
-
Fixed it for me, too. Thanks.
-
There must be broken something with this template choosing thing and repeaters. I just tested it on another pw site, created a new repeater and it was displayed in the template list...
Bug report: https://github.com/processwire/processwire-issues/issues/287
-
Ok, that's what I thought (must be flags = 8 in the database? Thats given for the repeater fields).
-
Hello,
I copied my templates from another project, as it was very similar. But when I want to change the template, there are repeater fields for select, which aren't listed in the fields page:
I tried to delete them in the database (having made a backup first), but then the stadtteilbuerger repeater was broken...
So, first of all, why are there repeater fields for choosing as a template and how can I get rid of those old repeaters?
Thanks, Beate -
18 hours ago, Robin S said:
Try this:
$field = $fields->get('comments'); // assumes your comments field is named 'comments' $latest_comments = $field->type->find($field, "limit=5, sort=-created"); echo $latest_comments->render();
Yeah! That's it Thanks to all.
@Adrian: yes, I wanted all recent comments, not the one from one single entry.
-
Thanks! Never thought this could work. But: are you sure about the syntax?
$letzte_kommentare = $fields->find("kommentare,sort=created,limit=5");
doesn't work,
Fatal error: Exception: Unknown Selector operator: '' -- was your selector value properly escaped? field='kommentare', value='', selector: 'kommentare,sort=created,limit=5' (in /var/www/vhosts/path_to_pw/wire/core/Selectors.php line 395)
(the name of the date is created, looked it up in the database.
-
Hello,
On replacing Wordpress with PW, my blog is nearly ready, but I'd like to display the (5) recent comments in the sidebar.
I googled for this but didn't find a solution. Can anyone help?
Thanks, Beate -
Thank you very much! Works like a charm and is much cleaner than my code
-
Thanks! This is indeed cool But not like desired..
Your code gives
/filme/kultur/a/
/filme/kultur/b/
/filme/menschen/c/
/filme/menschen/d/
/filme/natur/e/
/filme/natur/f/
/filme/spielfilm/g/
/filme/spielfilm/h/But I'd like to have
/filme/kultur/a/
/filme/menschen/c/
/filme/natur/e/
/filme/spielfilm/g/
/filme/kultur/b/
/filme/menschen/d/
/filme/natur/f/
/filme/spielfilm/h/and if I repeat the code I might get the same film twice...
-
Hello,
my menu is like this:
/filme/ /filme/kultur/ /filme/natur/ /filme/menschen/ /filme/spielfilm/
And on the front page there should be 2 random films from each of this categories. How can I split the founded pages?
$filme_kultur = $pages->find("template=film, sort=random, parent=/filme/kultur/, limit=2");
This dosn't work:
$filme = $filme_kultur[0]->add($filme_natur[0])->add($filme_menschen[0])->add($filme_spielfilm[0])->add($filme_kultur[1])->add($filme_natur[1])->add($filme_menschen[1]);
They should be in this order, and I could't call the find order twice because the random depents on the first call, so that I don't get the same film twice.
Thanks!
-
Cool, thanks. Didn't know how to search this.
-
Hi,
in the video on https://processwire.com/blog/posts/processwire-3.0.9-adds-new-long-click-and-save-actions/ I saw that fields could be grouped into tabs, right of the tab "content" there is a tab "sidebar". How can I do this? Or is this a function of ProDrafts?
Thanks,
beate -
I have the same problems with PW 2.6.0 and php 5.3.9, I can't upload images (The upload status bar completes (100%) without error but when the page with the file field is saved the uploaded file name is missing from the refreshed page).
With console, I got a Javascript error, please see attached....
-
I also run into the same problem, like isberni i use 2.5.26.
@isberni: how did you took the minified version of InputfiledFile.js out?
(After testing some more: on some pages this effect happens, on some not, though its the same template...)
-
$field->skipLabel = Inputfield::skipLabelHeader;
This is nice, i think i'll stay with this
-
Cool, thanks a lot!
-
Ok, thanks. Is there some kind of workaround? This behavior is not so nice....
-
Hello,
I'm using the API to generete a form. Is it possible to display sth other than the label name in the header (in my case "Newsletter") of a checkbox? This is my code:$field = $modules->get("InputfieldCheckbox"); $field->label = "Ja, ich möchte per E-Mail über Neuheiten informiert werden."; $field->attr('title','Newsletter'); $field->attr('id+name','newsletter'); $field->required = 0; $form->append($field);
I tried title but it didn't work. I also looked in the source, but it seems it is not possible? I can't beleave that I'm the first one with this problem, but a search wasn't succesful
Thanks, beate
CKEditor not visible in Safari
in API & Templates
Posted
Thanks! Yes, things are very strange: I have domainA running with PW 3.0.172 and it doesn't work, and domainB running with PW 3.0.172 and it works – in the same browser! So perhaps it depents on other things, like php version or web server? I'm still digging.