Jump to content

peterb

Members
  • Posts

    51
  • Joined

  • Last visited

Everything posted by peterb

  1. thanks, I know see that it is a "file" field that it is objecting to. I see all the text fields work. How do I index a "file" fieldtype for search? I also would like to specify a custom field for the page list sort settings -> sort field. Is that extendable? by the way, I am blown away how nicely pw is running with 5,000 pages.. I am in awe...
  2. I added a few text fields to be included in the page search in admin... got this error? Can't find FULLTEXT index matching the column list is there a remedy?
  3. thanks, I was going to import the first 5K with your example from here: http://processwire.com/talk/index.php/topic,24.0.html Still need to figure out importing the pdf into a file field, and having it move to the proper folder in assets. But then the client will be adding them by hand which is fine. It's just confusing to make them name a url, as it will never be a discrete page. If it is manadatory, can I have the URL fill in from another field via a hook?
  4. ok, this is not quite it.... "filefield" in the "Name of page field to display" resolves to "Pagefiles(1)" "filefield.basename" in the "Name of page field to display" resolves to "" "filefield.url" in the "Name of page field to display" resolves to "/pw/site/assets/files/5767/"
  5. yes, set max files to 1 adding .basename does not provide the field contents
  6. thankyou Ryan, lot's of goodness hidden in those modules. The other thing that came up was when I turned of global for Title, which I like allot, I am forced to provide a URL name when creating a page. Can this be avoided? it it needs something for that field, perhaps it could just be the id? Peter
  7. not really, then I loose all of the organization, pagination, and search ability of PW
  8. I have a page template for "files". Each file page is an uploaded pdf. There will be 5,000+ of them. I would prefer the name displayed in the admin "pages" be meaningful, and display the file name. A title field is not really needed at all. These pages will never be viewed on a site as pages, but will be pulled into other template pages... by "client" thanks, peter
  9. Is there a simple way to have the URL Name generate from a field other than Title? I need to do this just for 1 template type. thanks, peter
  10. Thanks Ryan, That post was very helpful. Do you have an example of allowing a processwire "client" user to reset or forget there password from the frontend?
  11. I need to create a simple client section where: Clients can register, set & reset there password. Once logged in clients would see there own private page, where I will be uploading PDF's that they can download. Can anyone recommend a nice php class or jquery plugin that can assist with this and that nicely integrates with processwire? I do not want clients to get to the processwire admin, just there client page. thanks! Peter
  12. Here is the improved generic XML generator... It now iterates thew all visible pages, and gathers all images for image fields... ProcessXmlGeneric.zip
  13. thanks, and I certainly shall let you know. the template caching thing sounds interesting, I will check it out.
  14. cool! with that I will try to improve the generic module further... I am purposely generating the xml to a file, as it will be pretty big, and I figured it would load faster that way. Here is a link to the dev site, although the images have yet to be populated (there will be many): http://s118962.gridserver.com There is also and ipad/jquery mobile version of the site, and that does grab output dynamically with ajax calls. As it just pulls one section at a time, I'm guessing won't take too long.
  15. attached is a cleaner version of a generic XML generator. It only goes 1 level deep beyond root, and does not break out elements that have multiple's items (like pages, or images). That said, it is fairly clean, and extend-able for anyone interested. I'm sure there is a cleaner way to recursively go indefinitely threw all the children pages... but I can't get my mind around it right now.... ProcessXmlGeneric.zip
  16. Wow, Thank you Ryan for your comments... I will incorporate & re-post. (please excuse my crude coding) This might also be a good underpinning for a search engine xml sitemap generator.... Peter
  17. I was able to get my mediatemple server install working by changing line 38 in index.php FROM: $rootURL = isset($_SERVER['HTTP_HOST']) ? substr($rootPath, strlen(rtrim($_SERVER['DOCUMENT_ROOT'], '/'))) . '/' : '/'; TO: $rootURL = '/pw/';
  18. I moved my site which runs fine on localhost to gridserver... and getting all sorts of problems. no css comes threw, and the urls keep not working. The database seems to be ok. 1. I tried to do a clean install on the server, and could not: http://s118962.gridserver.com/test/ 2. http://s118962.gridserver.com/pw is the current install, but when you click on thinks is keeps adding a /html/ after the .com 3. phpinfo seems to show everything that is needed: http://s118962.gridserver.com/test.php not sure what to do next?
  19. So here is a basic xml generator. It references fields specific to my site, but you can easily change the field references to generate the type of xml you want. Ryan, if you give me some pointers on looping threw all the fields in a template, and checking there type, I could probably make this more generic to any structure. In the mean time here is what I did to get it working quickly. 1. place "ProcessXml" folder in the "modules->process" folder 2. go to modules and install the module 3. create a page of type "admin" as a child of the Admin page 4. select "ProcessXml" from the Process pull down. As a child of Admin, The page appears in the upper right navigation. That's it... again, you will need to edit the fields in this version to reference your own. - Peter ProcessXml.zip
  20. I just have 1 other issue moving the code into a module.. imagefield->url gives a path on a template page, but not in the module??? foreach($sections as $section) { $section->imagefield->url; $section->imagefield returns: Pageimages(1) actually, I wonder if this is a bug, as it provides the path & file name in the templated version, but in the module version, only the path, not file name? Once i have this sorted, I will post
  21. Hey, I am working on making an XML generator module, and duplicated the ProcessField module as a starting point. I need to loop threw the pages of the site. Unfortunately, I can't seem to use "get" (to get pages and loop threw children pages) from within my new module: $homepage = $pages->get("PAGE-NAME"); $sections = $homepage->children; foreach($sections as $section) { Do I need to include something in my module? Or is the syntax different when working in the core? Thanks, Peter Call to a member function get() on a non-object (line 85 of /deploy/pw/wire/modules/Process/ProcessXml/ProcessXml.module)
  22. The first breadcrumb in the admin takes you to the sites homepage. Wondering if there is a simple way to remove this, so the first breadcrumb is ADMIN? I find it jarring that it takes you out of the admin tools. Thanks, Peter
×
×
  • Create New...