Jump to content

wilsea

Members
  • Posts

    54
  • Joined

  • Last visited

Everything posted by wilsea

  1. Now for some gravy to go with the solution provided earlier. When I add a file field, I automatically get a chance to add a description, which of course can be displayed any way I like. I'd like to be able to have another field as well as the description field for a "friendly" file name . So if one page is associated with three files, each of those files would have a description and a friendly name. Is there an easy way to do that? I tried putting a file field into a repeater field, but that doesn't seem to work very well as the file field seems to be a repeater field by default. Am I on the right track in thinking it might require a hook to tweak the file field? ? ? ?
  2. Thanks Pete, your suggestion worked like a charm! Yes I've been turning to the cheatsheet a lot, but at this stage sometimes a cheat sheet is not enough. I couldn't find the syntax you suggested on the cheat sheet. Obvious once it's pointed out. Thanks so much for the quick reply!
  3. Having just started with ProcessWire and delighted to find it easier than I feared it might be. My present stumbling block is trying to find the name(s) of files uploaded to a page, so that the name(s) can be made into llinks so they can be downloaded. I've tried doing a var_dump of $page, $files, and $page->file but no sign of a reference to my uploaded file. I know I could use php to query the appropriate directory, but i suspect ProceesWire has a more elegant way of doing it that I'm missing so far. Can anyone show me the light? Thanks for reading.
  4. Just gettiing started with ProcessWire with limited php expertise. So far I'm really likely it, and I'll probably switch to using it instead of WordPress. The learning curve is pretty friendly, but it would be a lot nicer if their were some examples on the api as well as the brief description. Just a thought.
×
×
  • Create New...