-
Posts
20 -
Joined
-
Last visited
Everything posted by luckybusted
-
Hey Guys, I got one more question about foxycart: How did you get your quantity value into the foxycart link? Do you have a best practice for the &quantity=XX ? Thank you!
-
Hey Guys, here is another website we made at WPWA back in 2013, for the German luxury home accessorie brand "Twillow". The page is quite puristic and based on PW V2.3.0. We build in some cool features like the 360deg slider on the product pages. http://www.twillow.de/ Latest projects coming soon!
-
Soma was absolutly right. Thanks! Uploaded the file once again -> fixed!
-
PHP Version 5.3.3 .... mod_rewrite is on
-
Hey guys, just installed PW 2.3 on a new Server. The Website works fine but the backend (/processwire) drops this error: Parse error: syntax error, unexpected $end in /var/www/vhosts/seo-wiesn.de/httpdocs/process/wire/modules/Process/ProcessPageSearch/ProcessPageSearch.module on line 176 What can it be? Thanks a lot.
-
Why does $page->rootParent identify current section?
luckybusted replied to isellsoap's topic in Getting Started
Hi Ryan, thank you but it still simply dont work. It takes always the last value (in this case "none"). The Problem are not the IDs. I always get the right IDs if I let them show in the Frontend. Tab #1 = 1006/1007 Tab #2 = 1007/1007 But the class is still "none" ...- 16 replies
-
- current section
- semantics
-
(and 2 more)
Tagged with:
-
Why does $page->rootParent identify current section?
luckybusted replied to isellsoap's topic in Getting Started
Hi Pete, thanx for the response but it still didnt work. "belongs_to" is a single page field (so a page ID) ... does it make a difference?- 16 replies
-
- current section
- semantics
-
(and 2 more)
Tagged with:
-
Why does $page->rootParent identify current section?
luckybusted replied to isellsoap's topic in Getting Started
Hey Guys, seems to be the right thread for my problem. This is my code for two tabs that should show or hide the subpages. <?php $tabs = $pages->find("id=1006|1007"); foreach($tabs as $t){ $active_tab = $page->belongs_to; $class_tab = $t->id; $a_class = $active_tab == $class_tab ? " class='active'" : " class='none'"; echo "<li$a_class><a href='#{$t->tab_value}'>{$t->title}</a></li>"; } ?> The comparison and the output are correct but the class of the "li" is allways "none"... Anyone an idea?- 16 replies
-
- current section
- semantics
-
(and 2 more)
Tagged with:
-
Hey Guys, thank you for your replies but my Problem is a bit more complicated. My structure is like this: /stores/ /store-1/ /store-12/ /store-13/ ... /cities/ /berlin/ /munich/ /cologne/ ... /store-category-1/ /berlin/ /munich/ /cologne/ ... /store-category-2/ /berlin/ /munich/ /cologne/ ... Maybe it seems stupid but my thoughts behind this where: I need a domain structure like ".../store-category/berlin/..." So the Idea was to take the children of "cities" for filtering the stores and the city pages under the Store-Categorys just to show the results. I hope you understand my Problem now a little better.
-
Hey guys its me again, I'm looking for a solution to show a List of Pages that have the same value in "fieldset-x" as the current Pages "title" e.g. . My hardcoded Solution looks like this: <?php $homepage = $pages->get("/stores/"); $stores = $homepage->children("location_category=1065, city=1010"); $children = $stores->getRandom(2); foreach($children as $child){ ... echo ... } ?> Now I need to check the title of the current page "{$page->title}" and check if it is equal to the value of fieldset "city" of a child Page of "Stores" ... Any ideas?
-
Great, thank you guys! I know the API site and allready tried to read it. But sometimes its just nicer to ask and =)
- 5 replies
-
- templates
- navigation
-
(and 1 more)
Tagged with:
-
Me again, but what if I want to find two ore three different templates? Something like: $location_cat = $pages->find('template=location_category, spot_category'); ?
- 5 replies
-
- templates
- navigation
-
(and 1 more)
Tagged with:
-
If it would be more complicated it wouldnt be processwire ... Thanx a lot!
- 5 replies
-
- 1
-
- templates
- navigation
-
(and 1 more)
Tagged with:
-
Hey Guys I got a very basic and hopefully simple question about Templates. I need to display all Pages with a special template (e.g. "location_category") in my Navigation. My solution now: $location_cat = $template->get("location_category"); foreach($location_cat as $lc) { echo"<li><a href="{$li->url}">{$lc->title}</a></li>"; } but this doesn't work. Anyone a solution?
- 5 replies
-
- templates
- navigation
-
(and 1 more)
Tagged with:
-
Can't reach the Modules section in the backend
luckybusted replied to luckybusted's topic in General Support
Yes Sir! teppo you was right it was a Memory problem. Just increased up to 128MB and voilá it works. Thank you! Problem solved. -
Can't reach the Modules section in the backend
luckybusted replied to luckybusted's topic in General Support
@nik thank you! I cleared the cache and got this error now: Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 7680 bytes) in /var/www/web152/html/stage/wire/modules/Jquery/JqueryWireTabs/JqueryWireTabs.module on line 5 -
Can't reach the Modules section in the backend
luckybusted replied to luckybusted's topic in General Support
Thanx that was the first right step. Now I get this error: Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 30720 bytes) in /var/www/web152/html/stage/wire/modules/LanguageSupport/LanguageSupport.module on line 372 Fatal error: Class declarations may not be nested in /var/www/web152/html/stage/wire/core/FileLog.php on line 19 -
Hey Guys, just migrated my PW from local to the webserver. Everything is fine except one thing. When I click on the "Modules" section in the backend I get linked to .../processwire/module/ but the page is white ... no errors just a blank page. Any ideas for this?