Jump to content

verdeandrea

Members
  • Posts

    123
  • Joined

  • Last visited

Everything posted by verdeandrea

  1. 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.
  2. 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.
  3. @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.
  4. @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)
  5. 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
  6. Thanks, as always, adrian. Just a suggestion for the future versions of PW: it could be helpful to manage this from admin panel.
  7. Hi again guys! Is there a way to set edit permissions for a role on multiple templates simultaneously? Thanks as always
  8. Thanks Adrian, you're great! I'll take a look at ImageRasterizer for sure, thanks for your advice.
  9. 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!
  10. Thanks adrian! You're totally right, I don't know what i was thinking.
  11. 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!
  12. Thanks a lot @Soma. Is there any other way to manage pagination in PW?
  13. @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.
  14. 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?
  15. 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.
  16. 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!
  17. Hi guys, when i try any search from the admin page i get this errors: TemplateFile: Field does not exist: body<pre>#0 [internal function]: PageFinder->___getQuery(Object(Selectors), Array) #1 /accounts/20tab_twig/www/explorerskills/n/wire/core/Wire.php(359): call_user_func_array(Array, Array) #2 /accounts/20tab_twig/www/explorerskills/n/wire/core/Wire.php(317): Wire->runHooks('getQuery', Array) #3 /accounts/20tab_twig/www/explorerskills/n/wire/core/PageFinder.php(144): Wire->__call('getQuery', Array) #4 /accounts/20tab_twig/www/explorerskills/n/wire/core/PageFinder.php(144): PageFinder->getQuery(Object(Selectors), Array) #5 /accounts/20tab_twig/www/explorerskills/n/wire/core/Pages.php(144): PageFinder->find(Object(Selectors), Array) #6 [internal function]: Pages->___find('title|body%=hhh...') #7 /accounts/20tab_twig/www/explorerskills/n/wire/core/Wire.php(359): call_user_func_array(Array, Array) #8 /accounts/20tab_twig/www/explorerskills/n/wire/core/Wire.php(317): Wire->runHooks('find', Array) #9 /accounts/20tab_twig/www/explorerskills/n/wire/modules/Process/ProcessPageSearch/ProcessPageSearch.module(118): Wire->__call('find', Array) #10 /accounts/20tab_twig/www/explorerskills/n/wire/modules/Process/ProcessPageSearch/ProcessPageSearch.module(118): Pages->find('title|body%=hhh...') #11 [internal function]: ProcessPageSearch->___execute() #12 /accounts/20tab_twig/www/explorerskills/n/wire/core/Wire.php(359): call_user_func_array(Array, Array) #13 /accounts/20tab_twig/www/explorerskills/n/wire/core/Wire.php(317): Wire->runHooks('execute', Array) #14 /accounts/20tab_twig/www/explorerskills/n/wire/core/ProcessController.php(196): Wire->__call('execute', Array) #15 /accounts/20tab_twig/www/explorerskills/n/wire/core/ProcessController.php(196): ProcessPageSearch->execute() #16 [internal function]: ProcessController->___execute() #17 /accounts/20tab_twig/www/explorerskills/n/wire/core/Wire.php(359): call_user_func_array(Array, Array) #18 /accounts/20tab_twig/www/explorerskills/n/wire/core/Wire.php(317): Wire->runHooks('execute', Array) #19 /accounts/20tab_twig/www/explorerskills/n/wire/core/admin.php(64): Wire->__call('execute', Array) #20 /accounts/20tab_twig/www/explorerskills/n/wire/core/admin.php(64): ProcessController->execute() #21 /accounts/20tab_twig/www/explorerskills/n/wire/modules/AdminTheme/AdminThemeDefault/controller.php(13): require('/accounts/20tab...') #22 /accounts/20tab_twig/www/explorerskills/n/site/templates/admin.php(15): require('/accounts/20tab...') #23 /accounts/20tab_twig/www/explorerskills/n/wire/core/TemplateFile.php(140): require('/accounts/20tab...') #24 [internal function]: TemplateFile->___render() #25 /accounts/20tab_twig/www/explorerskills/n/wire/core/Wire.php(359): call_user_func_array(Array, Array) #26 /accounts/20tab_twig/www/explorerskills/n/wire/core/Wire.php(317): Wire->runHooks('render', Array) #27 /accounts/20tab_twig/www/explorerskills/n/wire/modules/PageRender.module(337): Wire->__call('render', Array) #28 /accounts/20tab_twig/www/explorerskills/n/wire/modules/PageRender.module(337): TemplateFile->render() #29 [internal function]: PageRender->___renderPage(Object(HookEvent)) #30 /accounts/20tab_twig/www/explorerskills/n/wire/core/Wire.php(359): call_user_func_array(Array, Array) #31 /accounts/20tab_twig/www/explorerskills/n/wire/core/Wire.php(317): Wire->runHooks('renderPage', Array) #32 /accounts/20tab_twig/www/explorerskills/n/wire/core/Wire.php(381): Wire->__call('renderPage', Array) #33 /accounts/20tab_twig/www/explorerskills/n/wire/core/Wire.php(381): PageRender->renderPage(Object(HookEvent)) #34 /accounts/20tab_twig/www/explorerskills/n/wire/core/Wire.php(317): Wire->runHooks('render', Array) #35 /accounts/20tab_twig/www/explorerskills/n/wire/modules/Process/ProcessPageView.module(152): Wire->__call('render', Array) #36 /accounts/20tab_twig/www/explorerskills/n/wire/modules/Process/ProcessPageView.module(152): Page->render() #37 [internal function]: ProcessPageView->___execute() #38 /accounts/20tab_twig/www/explorerskills/n/wire/core/Wire.php(359): call_user_func_array(Array, Array) #39 /accounts/20tab_twig/www/explorerskills/n/wire/core/Wire.php(317): Wire->runHooks('execute', Array) #40 /accounts/20tab_twig/www/explorerskills/n/index.php(194): Wire->__call('execute', Array) #41 /accounts/20tab_twig/www/explorerskills/n/index.php(194): ProcessPageView->execute() #42 {main}</pre> Is the first time i get this error from admin i can't get why. Thanks
  18. Hi guys, is there a way to change the "name" field label? I'm working on a site where some pages contain information about people and I'm afraid that the label "Name" could be misunderstood by clients, when they are inserting content via admin Thanks.
  19. Ok got it, but if Group A, Group B and Group C have the same template i can not have different roles, is that right?
  20. Thanks cstevensjr, so i need to create different templates for every group and different templates for every event list, and then set their access differently for every user? Is there a chance to use the same template but differentiate the access for the group page and events list?
  21. Thanks Martjin. I'm not sure i got it... This is my situation: I have these pages - Group A (template: "group") --- Events (template: "events_list") ------ Event lorem ipsum (template: "event") ------ Event dolor sit amet (template: "event") ------ ect. - Group B (template: "group") --- Events (template: "events_list") ------ Event blablabla (template: "event") ------ Event blablabla2 (template: "event") ------ ect. - Group C (template: "group") --- Events (template: "events_list") ------ Event abcd (template: "event") ------ Event efgh (template: "event") ------ ect. What i need is to create a user that can add event pages just for the Group A, or just for the Group B, or Group C. All the pages share the same tamplates so i'm not sure how i can use the hooks you suggested.
  22. Hi guys, I'm using the Page edit per user module and i find it really useful but, as I can see, i doesn't allow the user to add new children for a page. Is it right? Is there a way to let the user add children to a page he has rights to edit? Thanks!
×
×
  • Create New...