Jump to content

Tom.

Members
  • Posts

    461
  • Joined

  • Last visited

  • Days Won

    7

Everything posted by Tom.

  1. <?php foreach ($page->children as $child): echo "<div class='my-class-$child->id'> $child->body"; endforeach; ?> echo doesn't need (), this should also give each instance a unique class if you are looking for that
  2. Hi Adrian, I see that it appears when clicking a field, but clicking a field would make it automatically editable (Option A). I don't want that. I'm using option B in the example given in OP. So far I will stick with Option C as it's working for me and seems like the most flexible in most use-cases. I just thought it was interesting that Option B wasn't working in this case. I selected a random field ("email") different to the one I was outputting using (Option A) so the Field on other pages radio button would appear. Then used Option B to output the field I want ("contact_number") and it works now. However I if the Field on other pages isn't going to be exclusive to Option A then I would argue it would always need to be displayed so it could be used with Option B. I am still curious to know if using this method produces any performance problems, I'm just curious about the reason it being off and being recommended to be turned off by default. (Is using Option C the standard when it comes to fields that exist on another page?)
  3. Hi Ryan, I apologise for my ignorance. I can't seem to find that setting. I guess the next question would be; Is there any performance hit due to accessing the edit functionality this way? I was just wondering the reason behind locking it down and whether I should avoid it if possible, using the other options such as Option C or D (as per my example). Thank you for your response Ryan, I've attached what I see
  4. Hello, I'm currently working on a website using 3.0.2, I would like to utilise the front-end editing. However, I have the module installed but I'm having a little trouble. I have a settings page that holds contact details and social links. I use these on different occasions throughout the site. So to access it I would usually use: $pages->get("/settings/")->contact_number So to enable editing I would have assumed this would work: $pages->get("/settings/")->edit("contact_number") I find that the number displays correctly on the front page, however it is not editable. In this case I used: <edit 1016.contact_number><?=$pages->get("/settings/")->contact_number?></edit> Which works like a dream I'm unsure whether this is a bug or not as I'm not entirely sure if $pages->get() would fall under "Note that $page can be any Page object, it doesn't necessarily have to be the current $page." If anything I just thought it was worth asking
  5. Looks promising, keep up the great work
  6. Exactly like that You're a God
  7. I must agree with OP. I have had an example in the past where we have had a slider that is different on each page, however one image maybe the same. At the moment the user will have to re-upload that image into the image field, however in CKEditor he can select it from the page. It would be cool to see this: This will work very much like CKEdit's current asset selector. This will allow for a page tree for example /media/ (hidden) /boats/ (image field - for drag and drop bulk upload) /ports/ (image field - for drag and drop bulk upload) That way if you ever need to use a picture of a boat or a port, you already have uploaded, you don't need to repeat content that could take up space on the server. I must apologies, I'm by no means a backend developer. I have no idea how possible this is (or how clean this is). As a front-end developer, I'm very thankful and lucky that ProcessWire gives me the power and flexibility to make my projects come life (any project).
  8. I also struggle with organising my fields when I have a large amount. I wouldn't mind seeing tags take an approach like ASM-Select so I don't have to remember all the tags I've used. However for large amount of fields there is a profield to help with that https://processwire.com/api/modules/profields/multiplier/
  9. Hey, From my knowledge a PageTable field is a more flexible replacement to the repeater field which allows multiple templates. So it wouldn't make sense for a view button to be there because you aren't viewing a page, but in fact a section of a page. If you are looking to link pages together, why not use the Page field? This supports multi-select with the ability to click the selected to edit. It might be more along the lines of what you are looking for. EDIT: Should also mention it lets you create the pages from this field too.
  10. $children = $pages->find('parent=/path/to/parent/, checkbox=1'); foreach($children as $child) { } Is this what you are looking for?
  11. https://github.com/ryancramerdesign/ProcessWire/tree/devns I believe this is the place.
  12. This looks great, I really need to learn more about ProcessWires classes, I've created a lot of forms but I manually code the data to save using: $page->of(false); $p = new Page();
  13. Hey Reno, with the new update removing the tree. The only way to access the page tree is by clicking the ProcessWire logo. It took me a while to figure this one out as I always went to Pages > Tree. With Pages > Tree now missing it might be worth doing: I know it's not as visually appealing so you may have a better idea Reno.
  14. Thank you very much for that Lost, my apologies. I didn't know you could do a selector inside a count. You learn something new every day
  15. I believe you should be using $allDocuments = $pages->find("doccache%={$input->post->request}"); echo "There are $allDocuments->count() documents containing your request."
  16. Hello, I'm from Sheffield so not so far away. Do you have anymore details you can give on the project? Thanks
  17. Just purchased Padloper, I don't have any projects on at the moment for it, but I'm sure I will use it for many in the future. I'm currently creating a WooCommerce website as per client request. Hair pulling ensued, even for the simple things. Thank you very much Antti for creating this, I'm sure when I get the chance to use it, I will love it. One thing though, I didn't receive the download links in the email? - A few questions about updating, as we don't have a login area. How would we download updates? Edit: Also, let's say I lose that email (maybe a server crash - etc). How will I get the download links again? Thanks, Tom
  18. For what reason would you want to do that? It sounds terribly inefficient. You want every field for the matching template or every field? (edit: Completely misread your post, sorry) You can also do field1|field2|field3=$string, however if you are absolutely set on every field I think you can do. $f = $fields->find("template=documentHolder"); $results = $pages->find("template=documentHolder, status=hidden, $f=$string"); But I'm not absolutely sure, I'm just guessing here after using ProcessWire for a couple of months. edit: LostKobrakai beat me to it His answer will be correct as he is way better than me at this ProcessWire stuff.
  19. Tom.

    The Brand New Idea

    Thank you for all your responses, we have gone over them all and I have developed a "V2" of the website so to speak. All your feedback has been greatly appreciated and most are now in effect. @OrganizedFellow - That's a good point, however you can close the menu on mobile in a very native way, simply be sliding it out of the way. Alternatively you could click anywhere on the body to close it. I will have a look into getting the navigation actions to say in the same place. Thanks, Tom
  20. I'm still getting this problem, I have no idea what fixed it last time because logging out and back in doesn't seem to work this time. Including refreshing modules. I'm running 2.6.18 wanting to update to 2.7. Not too sure what's happening.
  21. This isn't a solution to your problem, however why not use hanna-code? [[icon i=check-circle-o]] <- something like that? Look at the module hanna code https://processwire.com/talk/topic/3745-hanna-code/
  22. Tom.

    The Brand New Idea

    I noticed that this site was featured on http://weekly.pw/. Thank you everyone who commented with your feedback, it's much appreciated. This made me very happy
  23. Tom.

    The Brand New Idea

    Hi Steve, Thank you for your feedback. The Brand New Idea is quite a diverse bunch of people, with strong opinions. We were very conflicted on the type effect, however a compromise was made. Ultimately user experience and user feedback reigns supreme. I'll be sure to take this feedback into the next Work in Progress meeting EDIT: Also good eye on the extra closing p tag, I've set that field to delete empty p tags.
  24. Tom.

    The Brand New Idea

    Hello NotWordPress, I'm not to sure whether this is spam, however I found your post very entertaining. I must say if this is actually an adventure of yours, I would suggest against using the domain NotWordPress.com, while ProcessWire isn't WordPress, it will often draw a comparison. Why not have themely.pw or something? Hi, it's actually a MailChimp form in which I styled.
  25. Tom.

    The Brand New Idea

    Good idea, I'll be sure to suggest that.
×
×
  • Create New...