-
Posts
4,054 -
Joined
-
Last visited
-
Days Won
67
Everything posted by Pete
-
No problem - if something seems too hard in ProcessWire there's usually an easier way
- 18 replies
-
- 4
-
-
- abstract class
- fieldtype
-
(and 2 more)
Tagged with:
-
Well the markup would be outputted to the template file on the front-end wouldn't it? Or am I missing something again and this is supposed to be totally back-end for some reason? If the resulting page content is front-end, then edit the front-end template file and you can reference them as $page->parent_page and $page->number_of_pages or whatever you've named them. I guess I'm still not sure where the output is supposed to be in this case but if they fill out those fields in the admin then in the template file you would have something like: foreach ($pages->find("parent={$page->parent_page}, limit={$page->number_of_pages}") as $result) { echo $result->title . "<br />"; // <-- Your formatting here } That's similar to some code from earlier. They don't need to edit that code as you would be the only one editing the templates. Of course I could still be miles off from what you're trying to do
- 18 replies
-
- abstract class
- fieldtype
-
(and 2 more)
Tagged with:
-
No problem - let us know how you get on.
-
From your description, I have another question Why not simply use two separate fields instead of combining them into one fieldtype? Am I guessing correctly that this module was supposed to give them the choice of selecting specific options when adding a page in the admin interface then?
- 18 replies
-
- abstract class
- fieldtype
-
(and 2 more)
Tagged with:
-
@Soma - I think you meant "achieve" not "archive" throughout that post. I wouldn't normally correct someone (especially since my language skills other than English are pretty poor) but it could cause confusion in this case.
- 18 replies
-
- 1
-
-
- abstract class
- fieldtype
-
(and 2 more)
Tagged with:
-
The cache folders had all been deleted, so I don't think it was that.
-
I like this module, but I think I'd prefer it if it was a dropdown box right next to the Save button (I know, you can never please everyone). I'm sure it's been discussed before, but this works exceptionally well in MODx: It could look like this: [save] and [continue editing] - remember this option? [x] Then maybe the only other suggestion I have would be to set two options in the module config to select for it to appear next to the Save button at the top or bottom. This is also something I'd vote for making its way into the core as it is so useful and I don't think that it adds confusion if the language for the options is clear (which it is).
-
Hi Nicole, welcome to ProcessWire I'm going to take a step back here and ask why you want this as a markup module in the first place? This could more easily be done by simply having a form in the relevant template file and doing things that way instead. I think a module is over-complicating something that is more easily achieved another way. For example: <form action="<?php echo $page->url; ?>" method="post"> <label>Number of pages</label> <input type="text" name="totalPages" /><br /> <label>Category</label> <select name="parentPage"> <option>Select</option> <?php foreach ($pages->get("name=blog_categories")->children as $parentPages) { // Alter to select whatever the parent is that the categories are stored under echo "<option value='$parentPages'>$parentPages->title</option>"; } ?> </select><br /> <input type="submit" value="Submit" /> </form> <?php if ($input->post->count() && (int)$input->post->totalPages > 0 && $input->post->parentPage > 0) { // Did we post any values? foreach ($pages->find("parent={$input->post->parentPage}, limit={$input->post->totalPages}") as $result) { echo $result->title . "<br />"; // <-- Your formatting here } } ?> I have assumed that the selectable page parents are all on the same level and would simply be categories for the blog and that you don't want someone to be able to select from ALL pages in the site, but you can alter the list to suit pretty easily.
- 18 replies
-
- abstract class
- fieldtype
-
(and 2 more)
Tagged with:
-
That's a nice video showing how easily you can add content in ProcessWire. It really helps to get across the fact that you can do pretty much build anything really quickly, but for the client it shows the most important aspect for them - that it's no hassle whatsoever to update content in ProcessWire The rest of the website looks good too and there's some great stuff in the portfolio.
-
ryan - this is an amazing module! I'm just using it on a website I'm building and it is spot on Just a note to others: I originally had a separate Address field, but you don't need that with this module. I wasn't sure how much you could customise the address input, but you can do whatever you like within reason. What I mean is Google is pretty forgiving - you can put things like "Somewhere over the rainbow, Rydal, Ambleside, LA22 9LX" then it will just take the parts of the address it understands and find the location from that which essentially allows you to begin the address however you like (useful if you want to put a specific brand name or other title in there at the beginning). What you can't then do of course is drag and drop the pin as the address changes again, but so far the pins have been spot on for me since they're using UK postcodes and I'm picking items in the wilderness for now. I've also been putting commas in so that when I output the address on the page it can do a new line in the address based on the commas.
-
Your first step (assuming you are talking about a photo gallery here) is to output the gallery as normal. There are some ideas on how to do that in this topic: Then you would implement that jQuery code as per the instructions on their site I imagine, but the first step is always getting the basics sorted in your template first and then adding in things like this after that's set up.
-
See? It's just that intuitive
-
This sounds great. How does it work with permissions though? Does it let everyone with admin access see and restore pages regardless or is it role-based?
-
Wow! Everything on that site is amazing - looks like it's a fun one to build too. Good work!
- 8 replies
-
- 1
-
-
- processwire
- showcase
-
(and 1 more)
Tagged with:
-
Before ProcessWire: After ProcessWire: Errm... wait, does that mean ProcessWire is the Precioussssssssssssss?
-
The latest Batman film was pretty awesome - there are some ridiculous bits in the plot as well as some predictable moments, but in this sort of film you let them slide (there's a man in a bat suit ). It's nicely set up for many more films, so I hope whoever follows Christopher Nolan as director for the next one does as good a job. A fairly brutal film is The Raid (the original version). Little plot, but you won't see better action sequences that look that realistically painful anywhere else. Those chaps are hard as nails. I'm quite looking forward to this in 2013, amongst others:
-
Just a heads-up - the new XCOM "remake" was pretty awesome. It sapped about 60 hours of my life since October (scary statistics in games nowadays) but I seem to be over it for now. I've been playing MechWarrior Online a bit recently but it's a bit scarce on features - you get dropped into a random server and it's all over pretty quickly. I much preferred the single player games in the series, but having said that this game does look veeeeery pretty and the essential combat mechanics are all there. The game just needs a bit more substance I think. I've been playing a little Team Fortress 2 again recently and it's my first foray into the new game mode - Mann vs Machine (sic). You and five others basically defend against waves of robots bent on destroying your base. It's mad, crazy, loony fun as TF2 usually is. I know what you're thinking and, no, I have no idea where I find the time for these either
-
There are another 3,000+ posts since that graph so I think it's still following that upward curve
-
Thanks - I've flagged that up with ryan.
-
I need to spend more time away from the PC but ProcessWire and other addictions keep me coming back Sound advice all round there Marc - a lot of it sounds like common sense, but I was surprised at how much I hadn't thought of (I thought I was pretty sensible ).
-
I think it's already on ryan's radar after a similar discussion about closest parents with selectors and I'm sure he'll also weigh in on this idea too as it seems like at the very least you wouldn't want the two to be called "closest" and do two different things! You almost want it to be $pages->closest("id=$page")->siblings(5); or something like that.
-
The forums have been re-ordered and re-categorised in what we hope is a more logical setup. The idea is that the first set of forums introduces new users to what's going on, shows off some sites that have been built in ProcessWire as well as what's on the horizon. The second set is all about support - the aim is that newcomers will be guided to the first three forums in their search for a solution to a particular problem before posting it in the General Support forum. The remaining forums in that section tend to fall under more advanced features and contain more advanced questions as a rule. The final set of forums is Off Topic. There is a new Dev Talk forum for non-ProcessWire-specific discussion which frees the Pub forum up a bit more for general chat. Hopefully that all makes sense - the topics in the Pub have been split where appropriate into the Dev Talk forum.
- 4 replies
-
- 13
-
-
This would be the tutorial apeisa was talking about: http://processwire.c...ct-walkthrough/ Problem is that although we sometimes refer to it as the "planets tutorial" the topic title doesn't mention that EDIT: It does now It's worth reading through that one to see how things work as it introduces every page type I think you will need for your own project. The template files themselves in the /site/templates/ folder also hold a lot of examples, and the overview video, whilst a little out of date, is worth watching to see how several of the main concepts work.
-
I do the exact same as this quite a lot - obviously if you're tweaking things on a live site a lot and there are lots of visitors it's not ideal as if someone loads the page when you're just uploading a template change and you're doing this quite a lot they'll possibly get an error. I'm doing it all the time on a site at the mo though as it's not open yet - it's in maintenance mode anyway using my module (cheap plug ).