Jump to content

bbb

Members
  • Posts

    72
  • Joined

  • Last visited

Everything posted by bbb

  1. I can't reorder pages outside the blog page. I have Home as the main page, under which I have the blog, page1, page2 and page3. I'm trying to order the blog as the last page, but whenever I reorder the pages, to be page2, page1, page3, blog, it doesn't get saved and after refreshing the admin, it goes back to the order I created the pages.
  2. Since installing the Blog Profile, which is pretty awesome by the way, I've noticed I can't order any of the pages by dragging and dropping them in the admin like I'm used to. I'm guessing this has something to do with sorting the blog posts by date, but even so, after trying to change the settings of the templates and fields and pages, I can't really find anything that would seem to fix this. All pages, even those outside the blog return back to their original position after being dragged and placed in the right position. It's like the new position isn't being stored at all. Anyone have any ideas? All ideas/suggestions appreciated.
  3. bbb

    Romania-Meubelen.nl

    Thanks for the kinds words
  4. The site's been live for about 2 months now, but I thought I would share the first of many projects I plan to build with Processwire. http://romania-meubelen.nl is a site I designed and built for a small Dutch company specializing in Teak furniture. There's a lot of complex logic built into the calculating of the prices when combined with different sizes and finishes, but Processwire definitely made it a whole lot simpler to build.
  5. I've been developing a site on a test server for a while now and all has been well. This evening it went live and I transfered all the files and the DB over to the live server. Again, all was well, but now I see the page items tree in the admin in the following state (see attached screenshot) and can't seem to fix the issue. I attempted to to do a clean install of Processwire and got the error that I had to update my version of PHP from 5.2.0 (or was it 5.0.2, I forget). I discontinued the clean install as I'm not able to update the PHP version myself as the client's el cheapo hosting won't allow this directly. In debug mode I get the following error: Notice: Indirect modification of overloaded property DatabaseQuerySelect::$from has no effect in /wire/core/DatabaseQuerySelect.php on line 108 This error also occurs on line 131, 122 and 90. I'm assuming this has something to do with the PHP version, but as that isn't something I can change in the near future, I'm hoping for a solution in the core that will allow for the system to function normally again. Any and all feedback would be appreciated!
  6. Hi, I've been approached by a potential client to build a site with the following basic functionality: - A members only site listing available classes with a variable number of open spots and the lastest news from the admin. I plan on doing this by simply checking if the username, password and unique id match and setting a cookie or session to allow for viewing of the site. This way I can pull up their unique information and display it on a dashboard-ish page. If anyone has a better suggestion, I'll be happy to hear them! ok, here's where I get a little lost: - Members can change their passwords after they've logged in (accounts are made for them, there will be no create an account functionality) - How would I build functionality that will change and write this information from the front-end to the back-end? - Members can register for classes if there is room available. Again, almost about the same issue as above, how can I write from the front-end to the back-end by connecting a member's id/username to a class that will be created via the backend as a class under the page-type classes? How would I be able to get this information into, say, a list via the backend which will display the user's name, id and email? Basically, I'm wondering how I would go about allowing users logged into the front-end to manipulate their own personal information in the backend and connect themselves to a class if there is room available. I've seen this post: http://processwire.c...-widget-system/ which seems like it would be perfect for what I'm looking to build but I don't think my time frame allows for the wait. Many thanks in advance for any advice - PW rocks!
  7. I figured it out without a plugin, I'll post it for anyone's future reference: <ul> <?php $homepage = $pages->get("/"); $mainchildren = $homepage->children; $mainchildren->prepend($homepage); foreach($mainchildren as $mainchild) { $class = $mainchild === $page->rootParent ? " class='on'" : ''; if ($mainchild->mainNav != 0){ echo "<li><a$class href='{$mainchild->url}'>{$mainchild->title}</a>"; if($mainchild->path != '/' && $mainchild->numChildren > 0) { echo "<ul>"; foreach($mainchild->children as $subchild) { $class = $page === $subchild ? " class='on'" : ''; echo "<li><a$class href='{$subchild->url}'>{$subchild->title}</a></li>"; } echo "</ul>"; }else{ echo "</li>"; } } } ?> </ul> For anyone wondering: if ($mainchild->mainNav != 0){ simply checks if a checkbox is checked that I even want it in my main menu.
  8. How might I modify this code to display 2 levels of navigation if it exists? so that it would generate a <ul></ul> within an <li></li> is there were pages under it and keep it at 2 levels? I've seen a post on this on a page level and it works great on the homepage but I can't figure out how to do this on a root level consistently.
  9. Question: does this import module work with the repeater module? How might the CSV look like if I wanted to import multiple fields which were part of a repeater? Thanks in advance!
×
×
  • Create New...