-
Posts
6,798 -
Joined
-
Last visited
-
Days Won
158
Everything posted by Soma
-
It's not an regular array but a WireArray. You can use all WireArray methods that are listed on the cheatsheet. $page->images->first->url; $page->images->last->url; $page->images->eq(3)->url; ...
-
Nice. Just the the type has not enough line spacing, it's not readable and hurts my brain. body { /* line-height: 1; */ } ...much better.
- 8 replies
-
- bar
- restaurant
-
(and 3 more)
Tagged with:
-
Thanks Jonathan, $database is the new PDO, while $db is the mysqli. If I change it, it won't work in older PW versions. Maybe I could just add both with a check.
-
Damn Joss you scared my dog away! Let's see, in admin.php if($user->hasRole("dumb")) { $config->styles->add($config->urls->templates . "styles/dumb.css"); }
-
Yeah I know but there's no url "/page/list/?id=1&render=RSS&start=0&open=undefined" with those parameters in admin, so how did you get there?
-
Bump previous post? Currently I need to have default language segment, "de" is default and I want to use "/de/", but I can't because of this redirect to "/" for default language. Futher, I'm experience a "bug" when using url segments on home template if I go to "http://domain.ch/de/segement" I get redirected to "http://segment/" ! And when going to "http://domain.ch/segment" I get redirected to "http://segment/" too.
-
What is /page/list/?id=1&render=RSS&start=0&open=undefined ??
-
Short answer: No. You'd want to use pages or repeaters. Without repeateing I'll just link to Ryans post http://processwire.com/talk/topic/417-extending-image-field/?p=6982 So the answer is actually just 1 post before the question, which may the reason why Ryan didn't answer it because he just kinda answered it already.
-
The products variations are done using child pages. So even if only one product it's a child page. That makes thing simple. Note that the shop was done 2 years ago, the pw shop was still in alpha early and there was no repeaters yet. Also there a lot custom and only using the cart of pw shop.
-
I'm not sure I understand what details you mean but yes it's all done with fields and child pages.
-
http://bag-shop.ch The others aren't online yet.
-
Is there a selector similar to jquery closest?
Soma replied to bracketfire's topic in API & Templates
No problem, we all were there. This adds another keyword to the index so the next maybe able to find it. -
Some more http://processwire.com/talk/topic/3275-hide-parent-page-from-url/ http://processwire.com/talk/topic/4725-remove-part-of-url-with-htaccess/ http://processwire.com/talk/topic/2984-controlling-page-url-structure/
-
http://processwire.com/talk/topic/1799-routes-and-rewriting-urls/ If you search a little more there's a couple threads about this subject.
-
Is there a selector similar to jquery closest?
Soma replied to bracketfire's topic in API & Templates
http://cheatsheet.processwire.com/?filter=closest&advanced=1 A quick search with google "processwire closest" reveals: http://cheatsheet.processwire.com/page/built-in-methods-reference/page-closest-selector/ -
Cool. While at it. I got some 'fixes' for shop modules and will pr it as soon as I get to it.
-
upload file to page with friendly name as well as description?
Soma replied to wilsea's topic in Getting Started
http://mods.pw/5m -
I'm not sure I understand everything, but looks like what is specified in the Page Name module settings is working for backend page creation and API creation. Versal letters are converted correct. Entering "Рaz Дva Тri" converts to "raz-dva-tri" $p = new Page(); $p->template = "basic-page"; $p->parent = 1; $title = "АКЦИИ"; $p->title = $title; $p->name = $sanitizer->pageName($title, Sanitizer::translate); $p->save(); The page is created with name "aktcii" As said you can add missing/new chars to the module settings in admin yourself. I'm not sure you're suggesting to add more to the standard or what. I think whatever languages you're supporting, there's chances that there is an overlap that would make things complicated or impossible. For example in finish there's ö => o, but in german it's ö=oe. So I also have to change the setting for every new site I'm doing, but that's how it is. Also note that things like ц = cz,c or ы = y' is not possible cause the page name only allows ascii chars.
-
http://cheatsheet.processwire.com/pages/built-in-methods-reference/pages-find-selector/ We're on it and all are things we discussed. Just give us a little more time guys or help us out
-
This not error but feature. You can configure the conversion yourself in the page name module in admin.
-
http://bit.ly/1lmsqio But I'm not sure it's what you experience. It's hard to know without seeing examples.
-
Looks maybe like you have some max-width: 100% in your css for images.
-
Or simply $children->co_cities->title. Although the naming seems wrong because it seems it's not children but a child and the field is a single page select? So it should be co_city.