Jump to content

onjegolders

Members
  • Posts

    1,147
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by onjegolders

  1. Thanks Vitor, I had seen that and think I will try and get that working or something similar.
  2. Thanks guys, This is more for users creating their own forms though isn't it? Or can it be used in templates as well? Ideally I'd like to create my form markup, perhaps allowing them some editable fields which I can call myself within the form and then to use the API to process the form. But if that's too complicated, I'm open to other ideas.
  3. Am trying to get my own simple contact form up and running and I would prefer to have a very simple one but understand the code that makes it work before trying to do anything complicated. I've created a contact form with contact template and have made action="form.php" method="POST" I've tried setting up a template for form but I keep getting the error that the template does not exist when I submit. On my form.php I want to start really simply just to test that the $input method is working so I just have: <?php $name = $input->post->name; echo $name; ?> Would appreciate any guidance just to get me on my way.
  4. Ryan I was just thinking that it would be great if this was carried on in some way. I think the main advantage of having a whole site tutorial is that so many different methods come up that we all face in our projects: How you organise your templates How you go about changing permissions so that the end-user only edits what is needed Field types Navigation I think when it's all part of a project then it's easier to grasp and people will come out the other end of it with a much better idea on how to do their own projects. I know time must be very short and if there's any way I can help out, I'd be delighted. I also must stress that on a general level, the documentation here is outstanding, I just think an all-inclusive project walkthrough would be the icing
  5. Sorry, I've also just seen this post where Ryan goes into some detail
  6. Yes, I think the client should only see pages they can edit - that makes more sense to me. If they have no view access they will still see the page on the front-end won't they?
  7. So what is the difference between == and ===?!
  8. Thanks Diogo, so setting "view page" to no - means they can't see it in the editor? They can still see it live? Also is it possible to remove the user's possibility to change settings on a page? I don't really want them changing templates etc, just adding content.
  9. Is there anyway to hide uneditable pages from the end-user? So that they only see the content that concerns them in order to avoid confusion. I'm just finding that the templating has been refreshingly clear yet I'm struggling to replicate that in the backend, getting lost amongst the unpublished, hidden and user privileges. I'm also unsure if it's possible to let users edit a page's content without them having access to that page's settings? In my head, if they can't edit something they shouldn't be able to see it. Sorry for all the newbie posts
  10. Thanks Ryan, will change accordingly. Still a bit fazed when it comes to =, ==, ===, ========
  11. Ryan, I believe you're operating on a much higher brain frequency than me! I'm in awe... I'm quite new to PHP and I tend to try not to use code that I don't yet understand. Needless to say that was a bit over my head! Thanks for helping out.
  12. Thanks Nico! Will try it out in the morning
  13. Wow thanks both of you! Diogo, is this code that I can copy and paste into a new module? Soma, thanks, I do really want to use native PW functionality, I am just finding it really hard to get my head around the workflow in setting it all up. Create template, add fields, disable editing of parent - I know it's like this at the beginning for everybody probably, but my head's in a spin! There's lots of great documentation in the forums but the one thing I think is lacking is a real walkthrough - as much to see seasoned users' workflows as the code itself.
  14. Scratching my head here. I'm trying to find a simple way for the client to be able to add options to a select tag in a form. Do I really have to use pages here? I can use a textarea - convert new lines to <li> tags but that won't cut it for <option> tags. Repeater field? If that is the best option could anyone tell me how I would output the results as <li> tags? Ideally it would be a fieldtype where each drop-down was some sort of item that I could loop in <option> tags. Thanks Edit: I've come up with this code for a repeater file and it seems to be doing the trick. <?php echo "<ul>"; foreach ($page->subject_options as $item) { echo "<li>$item->subject_option</li>"; } echo "</ul>"; ?> I would be interested though if there was a faster or 'cleaner' way of doing this.
  15. Thanks, the files were 'only' about 1.5MB. Currently on localhost and testing so didn't pay much attention to reducing file size.
  16. Am now thinking it's a max file size issue as smaller files are getting through no problems. Can't seem to see where max size is referenced though.
  17. Hi, I tried installing the thumbnail module and when adding images in fields found that the bar went straight to 100% and the images didn't show so I uninstalled it and it deleted the cache and images seemed to work again but unexpectedly I'm now having the same problem again. Not sure how to either re-install or re-uninstall (?) to get things back to normal! Not sure if Apeisa can help out? Would be appreciated and sorry to be posting every 5 minutes! I feel the next day or two is make or break for me with PW!
  18. You're right, thanks Soma! I just added in a $ to blog_entry. Am still getting confused with my basic PHP.
  19. This was very useful, I think a few more like this would help out newcomers like me!
  20. I'm having a few issues trying to sort from within a loop. $blog_entry = $page->children("sort=title"); foreach ($blog_entry as $entry) { // add classes to first and last boxes. $class = 'blog_box'; if ($blog_entry->getItemKey($entry) % 2) {$class .= ' blog_box_even';} if ($entry == $page->children->first()) {$class .= ' blog_box_first';} elseif ($entry == $page->children->last()) {$class .= ' blog_box_last';} else { $class .= ''; } // make blog images 200 X 150 $image = $entry->single_image; echo "<div class='$class'>"; echo "<div class='blog_text'>"; echo "<h3>$entry->title</h3>"; if (!empty($entry->summary)) { echo "<p>$entry->summary</p>"; } else { echo "<p>$entry->body</p>"; } echo "</div><!-- /.blog_text -->"; echo "<img src='$image->url' width='200' height='150' alt='alt text' class='small_frame' />"; echo "<div class='clear'></div>"; echo "</div><!-- /.blog_box -->"; } If i do the above and sort before the loop, the data gets sorted but it messes up my classes which are added in the logic within the loop. Where can I add the sort parameter to to sort from within? Everything I've tried hasn't worked unfortunately. Thanks
  21. Thanks Marty, I'm getting pretty much the same impression from my first 4 or 5 days. I know very basic PHP and my only struggles so far are finding the replacements for what are, relatively easy functions in EE. Things like: if count = class="{switch="odd|even"}"> Also I must be one of the few people who liked the idea of channels, I'm currently trying to figure out how to disable the edit button for users on some parents. Eg: I want them to create new blog articles, but that ought to have nothing to do with the parent blog page so I don't really want that confusion for them. If you have any ex-EE related tips or snippets that would be great! I totally agree with what you mean about EE's addons, though they are in the main great, I feel that lots of them ought to be included in the core. And you're right, the community here seems brilliant!
  22. Thanks for this, is there anyway of adding a JS popup to confirm delete?
  23. I had debug on but it just threw a general debug error, nothing specific. It's an image field limited to 1 image.
×
×
  • Create New...