Jump to content

NooseLadder

Members
  • Posts

    218
  • Joined

  • Last visited

Everything posted by NooseLadder

  1. Hi, I'm sure this has already been covered but I can't find the answer. I have an existing PW installation as follows: public_html/processwire/ I know how to rename the admin page but can I rename the processwire directory without doing a new install?
  2. Thanks onjegolders, I thought I had set the date/time format but on checking it was not so that is now fixed as well. For anyone this may help the code is now: foreach($page->children as $event) { foreach($event->groups as $group) { echo "<div class='event_listing'> <h2><strong>{$event->title}</strong></h2> <p><strong>Group:</strong> {$group->title}</p> <p class='fltlft'><strong>Starting:</strong> {$event->start_time}</p> <p><strong>Ending:</strong> {$event->end_time}</p> <p><strong>Description:</strong> {$event->element_description}</p> <p class='fltlft'><strong>Contact Name:</strong> {$event->contact_name}</p> <p class='fltlft'><strong>Telephone:</strong> {$event->telephone}</p> <p><strong>Email:</strong> {$event->email_address}</p> </div> <div class='clearfloat'></div>"; }} ?>
  3. Hi, I'm (slowly) building a site in PW and need some help with displaying a field. I have the following page structure: Home Events Event1 Event2 Event3 Each event (Event1.2,3) is from a template called 'events' which includes a field called 'groups'. The field 'groups' is a page type, with input set as Multiple pages (PageArray). The Input Field Type is 'Select'. I have created the templates 'groups' and 'group_list' and pages Group (from template groups) Group1 (from template group_list) Group2 Group3 On the display page I have this: <?php foreach($page->children as $event) { echo "<div class='event_listing'> <p><strong>{$event->title}</strong></p> <p><strong>Group:</strong>{$event->groups}</p> <p><strong>Starting:</strong>{$event->start_time}</p> <p><strong>Ending:</strong>{$event->end_time}</p> <p><strong>Description:</strong> {$event->element_description}</p> <p><strong>Contact Name:</strong> {$event->contact_name}</p> <p><strong>Telephone:</strong> {$event->telephone}</p> <p><strong>Email:</strong> {$event->email_address}</p> </div>"; } ?> I have two problems: 1. The following displays the group id. How can I get the Group Title? <p><strong>Group:</strong>{$event->groups}</p> 2. The following is showing a date and time but it is a string like this 1355835600. How do I get the date and time format correct? <p><strong>Starting:</strong>{$event->start_time}</p> <p><strong>Ending:</strong>{$event->end_time}</p>
  4. That makes complete sense. Thanks for the explanation.
  5. I've been playing around with Roles, Users and Template Access and I need a bit of clarification. I created a Role called 'view' and gave it permissions of view pages only. I assigned this role to a user and gave access to a template of view>view pages only. When I log in as this user, there is no page tree displayed, just a 'continue' link that takes you to the home page. But, if I assign permissions to the 'view' Role of view pages and edit pages, the page tree is displayed by this user when logged in with the view only permissions. Is this how it is meant to work?
  6. This is all really great stuff. I have tested the new module and it works. What I would like to do is if a user logs in they can only see (view) the page(s) associated with their user name via the page-edit-per-user module, rather than see the complete pages tree. I did look at diogo's method of adding images to the user profile, but I can't work out how to only display those images to the user that is logged in.
  7. Thinking a bit further. I could have a main page with public access. On this page are the links to the pages that need to be password protected. Each user has been given their login details to their page. When that link is clicked the user is asked to login with their details. Maybe that is what onjegolders is implying above. Can individual pages be set up for user login?
  8. Thanks for your replies. Yes I would be interested in seeing that thanks. I don't know what you mean. Can you please explain further. My client will need to create the user and associated gallery pages herself. Can this process be made reasonably bullet proof for a non-techie end user? I would like to add that I really do not know how to get this started so any help is much appreciated.
  9. Hi, My client has asked for a private photo gallery for each of her clients so that they can login independently and access only their photos. The photos must be hidden from public access. I am quite new to Processwire. I already have it set up on my clients site with access to a limited few pages. The site is a basic php/css site with PW bolted on and copies of the php pages requiring access having been put into PW. Can anyone suggest the best way to implement this. Would it be to create a unique page for each user and only give that user access to that page? I'd rather get some feedback from some of the more experienced PW users before attempting this. Thanks.
  10. I want to achieve a similar layout to the portfolio page in Marty's video. I want the website owner to be able to upload images that are automatically added to the thumbnails and the main image display, but without the need to add lines of code to the template page. This is what I am missing here.
  11. Hi, I've installed PW. Installed the image thumbnail module. Installed template and created a page. Here is the page: http://www.digsuk.co...sswire/gallery/ I have uploaded 1 image to the page but it is not displaying, only the image file name is showing gallery_1.jpg on the page. I have put this in the template file: <?php echo $page->image_uploader; ?> image_uploader is the name of the field I created with type CropImage. I suspect I've missed something in the template code. Please help.
  12. Hi Ryan, Thanks for the reply. I have added the templates for each of my new pages. The existing pages tree as supplied in the basic template is: Home Site Map Search 404 Page Not Found Admin If I add my index.php page to the tree it will be a child under the existing Home page. Is that what needs to happen? I somehow felt that my index (home) page should be the parent, this is where I am confused. So should my tree look like this: Home Index About Us Contact Us Gallery Admin Other page1 Other page 2 etc The existing Home page has the fields that came with the template. So I will need to delete them. OR would it be easier in this case to start with a blank canvas? I tried deleting Home page but it wouldn't let me due to it controlling Access rights. I'm probably overcomplicating this for myself and I feel like a total dunce. I hope you can clarify.
  13. I've got a site ready to put into PW. All the pages are .php. I have installed PW on localhost. Path is localhost>newsitename>processwire. I've got the basic template and pages structure. I have deleted basic page. There's the current Home page that comes with the template. I have put the newsite pages in the processwire>site>templates directory and created each one as a template. Now I'm a bit confused on how to integrate the new pages into the existing template. Do I put them as children under the existing Home page? I'm only really interested at this stage to use PW for access control for my end user to a few pages. I though it would be easier to put all the sites pages into the template and only give the user access to the ones they want to update. I will be having a gallery and a latest news page and maybe one other. My imported site has already been split into separate .php files (header, footer, sidebar etc) and I have those in the templates directory as well as the main content pages. I want my new index.php to be the home page. But i need some guidance on how to integrate into the template. Current pages in pw Admin>Pages: Home Site Map Search 404 Page Not Found Admin Trash Thanks.
  14. Hi, If I build a site on a localhost server. Is it easy to transfer to a live server. Mainly concerned with the database? Or is it a simple export and import?
  15. Ok. You have to be patient with me. 1. I copy the existing html files into the site/templates folder. OK. 2. I create a new template for each one. OK. 3. And associate them to these files. This is where I'm stuck. Do I have to manually put in the links to images, CSS files into each template file. Not sure what you mean here.
  16. Thank you both for your replies. That sounds great. Are there any examples of how to put only part of your site into Processwire?
  17. Hi, I'm new here. i just found out about Processwire today and am very interested in finding out more. I can see how you build a site from scratch. I have a few questions: 1. Can Processwire be used to allow the client (end customer) to edit/update certain pages only without having the whole site inside Processwire. In other words: If I have an existing site in html/css. Can Processwire be added to the server so that for example only a page on the html site (say a photo gallery page) can be managed through it. Or does the whole site need to be created in Processwire. 2. What is the process for moving an exisiting html/css site into Processwire? I look forward to your replies.
×
×
  • Create New...