Jump to content

dragan

Members
  • Posts

    2,007
  • Joined

  • Last visited

  • Days Won

    21

Everything posted by dragan

  1. On a new install (copy of an absolutely fine-working PW) the search is not working. And it's really strange: same server, same PHP versions etc. The q parameter is not recognized by PHP. I tried to echo $_GET["q"] as well, but the var is empty. The search URL is just domain.tld/search/ - instead of domain.tld/search/?q=hello If I manually add the param in the URL: /search/?q=something, the search results are shown as expected. Error log doesn't show anything. I also checked any .htaccess files, whether something else hijacks the q param for mod_rewrite - nothing. Any ideas where to look further?
  2. Just a little remark: I encountered the same with Firefox and Chrome / Win (most recent stable releases). I don't think it's an IE-specific issue. I don't like hacking the core code, but as a quick fix, would it be possible to remove the top "save" button altogether?
  3. dragan

    fantastique.ch

    Thanks! IMO, if you build new sites today and don't care about mobile devices, you're doing something wrong (well, at least if you're doing this professionally) btw: one of the many things about PW that awed me from the start was the mobile friendliness of the backend - out of the box. Over the weekend I was out of town and spotted a little typo; it was quickly fixed with my phone.
  4. dragan

    fantastique.ch

    My very first PW site: http://fantastique.ch/ Launched a week ago. The bulk work was not design or scripting / CMS-related, but writing copy and choosing what work to include and what not. Oh, and exporting tons of data from MODX Evo and import to PW (lots of data was in an ancient site / on another domain). It was a great learning process, and I must say it's a real pleasure working with PW. Thanks for all the help I got so far with my n00b questions in here. I'm not happy yet with the frontpage (should add more content and probably more visuals). I'm gonna add some case studies (simply describing a project from start to finish in more detail). And if I really have a full week or two, add a german version as well. Initially, I wanted a multilingual version from the get-go, but I decided it's better to launch something, rather than nothing. In June, I'll launch my 1st PW-powered client site. Looking forward to discover even more PW awesomeness along the way.
  5. Thanks for your feedback. In the meantime, I've learned a lot. I've already used the Inputfield type "page" a lot
  6. OK, thanks for the explanations. The big choice of field-types is a bit overwhelming, and as a newbie, I'm still learning... (btw, I think it's a bit of a misnomer to call a variable pageArray, when it's not an actual array, but a string. Perhaps pageList would be more appropriate?)
  7. Thanks! In the end, this worked: $p = $pages->find("portfolio_categories=$page, template=portfolio, sort=-Project_Date"); foreach($p as $pp) { echo "<a href='{$pp->url}'>{$pp->title}</a><br>"; } I'm still a bit puzzled why the other method didn't work. So is $page some sort of short form for $page->title? Guess it must be, because it wouldn't work otherwise. On the other hand, for these category pages I'm only using the title field, nothing else.
  8. I've created a couple pages that hold nothing more than categories - referenced by portfolio pages. The multi-select page fieldtypes work just fine. Now I'd like to find all pages that have category X. Since most items have more than one category, I need selector operators like %= or *=. But these simply don't work. e.g. $cat = $sanitizer->selectorValue($page->title); // works // none of these work: $p = $pages->find("portfolio_categories*=$cat, template=portfolio, sort=-Project_Date"); $p = $pages->find("portfolio_categories%=$cat, template=portfolio, sort=-Project_Date"); $p = $pages->find("portfolio_categories*=$cat"); produce the error messages I've uploaded as attachment below. Do I have a buggy mySQL version installed? Other basic selector queries (foo=bar) work fine...
  9. Oh dear... please someone delete this thread What a shame, TGIF
  10. I'm getting my feet wet with PW... Today I'm trying to build a basic portfolio site. One of the things I need are categories. I know by now how to accomplish this. However, while creating pages and doing tests, I wondered: Is there a special module that allows you to move several pages at once? Batcher doesn't have this, as far as I can see. Also, is it correct that with the current default "move" action within the pages menu, you can't put a page inside another page i.e. container page? You can always just move one page at a time within the same hierarchy level. I think it would be a very nice-to-have feature in the admin section (or as an optional module). I also looked up the database: "pages_parents" would probably be the place where to manually change parents via SQL. But I'm not sure how to use that, when there are multiple parents, i.e. a container-page is nested inside one or two other pages deep. Perhaps there's a tiny little thing I've been missing? Would you rather use the API to set a new parent for dozens of pages?
  11. Thanks! I'm really amazed how fast responses pour in here @ PW forums. Feels good to become part of such an awesome community. I guess I'll completely redo two sites with PW, that were originally built with another CMS (playing around with dummy data is not so appealing for me - a real-life scenario is always much better for learning the ropes, as far as I'm concerned.)
  12. Is there a full list of directories / files that need write permissions anywhere? Or are the two mentioned the only ones?
  13. Thanks! I'll look into these the next couple days.
  14. Hello everyone, I'm a PW newbie. Overwhelmed from all I've seen and tried out the last few days. My CMS of choice the last couple of years has been MODX. Other than that, I am working as a frontend and backend developer since over 10 years. Having so much freedom to work directly with PHP inside a CMS / CMF is a relief. No new pseudo scripting language one has to learn (as in Typo3), no unnecessary restrictions or bloat. So, my first general question: If I have an existing dataset in mySQL, that I would like to manage with PW (i.e. inside the admin area of PW) - how would I most likely do that? I know I could export the database tables to PW pages. But what if I wanted a database CRUD system inside the PW area? In MODX "Evo" you could build a custom module for such things. You know - phpMyAdmin is over the top for most clients, and an admin section with a different login and URL is clutter. How can I extend the PW backend? Is it possible to include an off-the shelf CRUD script somewhere? Is that not possible with PW? Or frowned upon? I'm just trying to see what the "best practises" are for these kinds of scenarios. Thanks for explanations, tips and pointers.
  15. Thanks a lot for this tutorial. I'm a PW newbie (coming from MODX), and naturally, every piece of real-life examples and how-tos are welcome. I have one question: How exactly was this accomplished? In the admin section, did you create a text-input and just entered other page ids? Or to put it in other words: Is there a special input-field that lets you select one or more PW pages? (radio buttons, select field, checkbox or whatever).
×
×
  • Create New...