verdeandrea
Members-
Posts
129 -
Joined
-
Last visited
Everything posted by verdeandrea
-
Sure, Adrian. This is the filename format: {$page->title}-## These are the fields on that template: - the field slideshow_repeater, that gives those problems has an image_field (that has maximum files allowed = 1) and a url field. - an image field with maximum files allowed = 1 (i had no problems with this field) - an image field with maximum files allowed = 0 (i had no problems with this field) - 2 files field - a lot of text and textarea fields - all the seo fields from the Seo Module There are no other repeaters on that template (i'm attaching a screenshot). I'm also using the image extra module on InputfieldImage and InputfieldFile I'm using PW 2.5.23 dev I'm sorry, i'm not so sure how to log the errors you asked, i'm not a php developer, so i tried with error_log() and i just get "Pages" for $this->pages and i get "1.jpg" or "2.jpg" etc for $this->pages->get($pageid)->$field Thanks a lot!
-
Adrian thanks for this module. I'm having some problems with images inside repeater. It acts very strange. It gives errors when i try to add o remove images from the repeater field, and then save the page. And if i try to add a new repeater item, the image field in it is already populated with an image i thought i had deleted. I attach some screenshots with various errors i'm receiving. Let me know how can i help to make this more clear.
-
Displaying search results with the text surrounding the query
verdeandrea replied to eelkenet's topic in General Support
I'm also interested in this topic. Did you find a solution? Can anyone suggest a solution? Thanks! -
Cannot add new language in latest dev. Bug?
verdeandrea replied to Peter's topic in Multi-Language Support
I've an SQL error adding a new language (in latest dev). This is the error Error: Exception: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'pages.name1020' in 'where clause' (in /Users/andrea/Dropbox/Sites/htdocs/pw/wire/core/PageFinder.php line 292) #0 [internal function]: PageFinder->___find(Object(Selectors), Array) #1 /Users/andrea/Dropbox/Sites/htdocs/pw/wire/core/Wire.php(365): call_user_func_array(Array, Array) #2 /Users/andrea/Dropbox/Sites/htdocs/pw/wire/core/Wire.php(320): Wire->runHooks('find', Array) #3 /Users/andrea/Dropbox/Sites/htdocs/pw/wire/core/Pages.php(199): Wire->__call('find', Array) #4 /Users/andrea/Dropbox/Sites/htdocs/pw/wire/core/Pages.php(199): PageFinder->find(Object(Selectors), Array) #5 [internal function]: Pages->___find('path=/admin/set...', Array) #6 /Users/andrea/Dropbox/Sites/htdocs/pw/wire/core/Wire.php(365): call_user_func_array(Array, Array) #7 /Users/andrea/Dropbox/Sites/htdocs/pw/wire/core/Wire.php(320): Wire->runHooks('find', Array) #8 /Users/andrea/Dropbox/Sites/htdocs/pw/wire/core/Pages.php(299): Wire->__call('find', Array) #9 /Users/and This error message was shown because you are logged in as a Superuser. Error has been logged. After this i can not access the admin page anymore. I've opened an issue to the PW Github page. -
Fatal error: Allowed memory size exhausted
verdeandrea replied to verdeandrea's topic in General Support
Guys, sorry for the delay. @kongodo your post about categories is really helpful, in fact i'm using the same structure you suggest. @valery thanks for your answer and for taking the time to do that mockup. I've thought about use a repeater field in the teacher template, having a page field for courses and a email field, so that i can set a different mail for different courses directly from the teacher page (like you show in your third mockup), but i was afraid that this solution wasn't too comfortable for my client. Now I'm thinking again about this. It sure can resolve that memory size problem. I'll try and I'll let you know. I think i don't get your first and second mockup. Why should I choose emails in the course template if i've already chosen them directly in the teacher page for every course? @philip i'll test your solution too (thanks!) using pageTable and see which one seem to be more suitable. I don't think I can let add courses to teacher template because it could be a little bit muddled for my client. So this could be one try: - the course template has just a page field to choose the teachers pages. - the teacher template has a repeater field where i can choose a course page and set an email for that course. Whit this solution i'll have a page field with 60 pages selected and not a repeater field with 60 items. This should be lighter, shouldn't it? And what if go with the Philip solution? In that case i would have a pageTable field with 60 pages selected. Is this "heavier" than a simple pageField with 60 pages selected? Thanks, as always. -
Adrian, great, thanks! This is exactly what i needed. I'm going to test it deeper tomorrow. Guys, i've never found a community so caring, i wish i could be more helpful in the future.
-
Fatal error: Allowed memory size exhausted
verdeandrea replied to verdeandrea's topic in General Support
@kongondo yes, that's true, but i still think that probably repeaters are not the best thing in this case, so i'm trying to figure a different and lighter solution I'll try to explain better my need. Let's say i have two main templates: teachers and courses. For every course i need to select a lot of teachers (as i've said before 50 or 60 or even more) but i can not use a simple page field because, for every course, i need to add some extra info for a techer. So let's say i have the Math and French course pages. I've also 10 teachers page. In the Math course i need to choose Mr. Brown (an hypothetical teacher) and add his specific email address for the math course, that is brown@mathcourse.com In the French course i need to choose the same teacher, Mr. Brown, but with a different email address, brown@frenchcourse.com That's why i thought to use a repeater, with a page field to choose the teacher page and a text field (or email field) for the email address. Now i need to think something different, i guess. -
Fatal error: Allowed memory size exhausted
verdeandrea replied to verdeandrea's topic in General Support
@teppo I'm using PW 2.5.3 @marijn yeah, i'm seeing that, but i thought that could be the easiest way to manage that pages for my client @kongondo i've tried with PageTable, but the problem is that, as i can see, i can not choose existing page, just create new one, so for this reason PageTable is useless in this case (Thanks guys) -
Hi guys, i'm having this error on some pages of my new project: Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 1412192 bytes) in /Applications/MAMP/htdocs/saf/dev/wire/core/TemplateFile.php on line 171 Error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 1412192 bytes) (line 171 of /Applications/MAMP/htdocs/saf/dev/wire/core/TemplateFile.php) This error message was shown because site is in debug mode ($config->debug = true; in /site/config.php). Error has been logged. These pages are really content heavy. I think that the problem is related to a repeater inside that template. This repeater has a page field inside and two text fields. When there are 50 - 60 repeaters in a page i get that error, and sometimes i'm not even able to open that page from admin anymore. Can you suggest how can I manage this problem? Thanks a lot
-
Thanks, as always, adrian. Just a suggestion for the future versions of PW: it could be helpful to manage this from admin panel.
-
Hi again guys! Is there a way to set edit permissions for a role on multiple templates simultaneously? Thanks as always
-
Thanks Adrian, you're great! I'll take a look at ImageRasterizer for sure, thanks for your advice.
-
Sent a PM. Thanks a lot!
-
Hi guys, i'm trying to use svg images in an image field. I've added the svg extension to the "Valid File Extensions" section, but when i try to upload an svg it just says "Invalid image". The question is: is uploading and svg in an image field even possible? And if it's yes, what am I doing wrong? Thanks!
-
TinyMCE installation on PW 2.5 lead to CKEditor
verdeandrea replied to verdeandrea's topic in Modules/Plugins
Thanks adrian! You're totally right, I don't know what i was thinking. -
Hi guys, I'm using PW 2.5 on a new project and i'd like to use the VideoEmbed Plugin, so i should install tinyMCE, but when i try to install this module it just bring me to the CKEditor module page (/module/edit?name=InputfieldCKEditor). How can I install TinyMCE editor? Or can I use the videoEmbed Plugin with ckeditor? Thanks a lot!
-
Thanks a lot @Soma. Is there any other way to manage pagination in PW?
-
@Soma: Yes, it's enabled. @Hari KT: I've tried also something like this $news = $pages->get('/news/')->children('template=news, sort=-date'); $news_archive = $news->slice(8); $news_archive = $news_archive->find("limit=10"); echo $news_archive->renderPager(); but it doesn't seem to work.
-
Ok, I've read a lot of posts were they suggest to put "start=0" in your selector. But what if I want my first page to start not from the first element of the selector? Have I to slice the pageArray?
-
It seems to me like a problem related to the "start" parameter. If I don't use it everything seems to work in the right way.
-
Hi guys, am I doing something wrong? I get this selector $appuntamenti_privati = $pages->find("template=appuntamento_privato|appuntamento_cinema|appuntamento_cultura|appuntamento_gusto, start=11, limit=10, sort=-date, sort=title"); and then i get this at the end of the page <?php echo $appuntamenti_privati->renderPager(); ?> and i get a pagination rendered but it doesn't work correctly. I have only and always the "Prev"and it's always linked to page2 and, above all, every page shows always the same results (the first ten results). I can't get were the problem is. Thanks!
-
Great! As always! Thanks.