Jump to content

oap

Members
  • Posts

    8
  • Joined

  • Last visited

oap's Achievements

Newbie

Newbie (2/6)

0

Reputation

  1. That worked! Thanks (Am I missing somewhere where this sort of thing is documented?)
  2. The tags to group fields in the backend. (I was considering a namespace style method as a workaround.)
  3. Thanks very much for the suggestion of how to get around it. It seems a bit odd though, since rendernav() came in the sample site included in the PW installation - i.e. it is expected that _init.php will be used for this sort of thing. Regardless - thanks!
  4. I'd like to use the API to get all fields that are tagged with XXX. I can't find anywhere that tells me what selectors can be can used with $fields. I suspect this isn't possible? I've realised a way to work around this - just get all the fields, and then filter them by prefix of name. But it wouldn't be quite as neat.
  5. Thanks for pointing that out, I think I took it from this forum page but didn't fully read the later posts! But unfortunately Wire404Exception() produces the same problem.
  6. In my home.php (a template, as you'd expect for the homepage) then I take a look at the URL segments. I want to provide some shortlinks, e.g. example.com/php redirects to example.com/languages/php/. That all works. But if I want to display a 404, by using "throw new PageNotFoundException();" then things go pearshaped: Fatal error: Cannot redeclare renderNav() (previously declared in /var/www/pw/public_html/site/templates/_init.php:20) in /var/www/pw/public_html/site/templates/_init.php on line 20 I'm not sure how to get around this? (or exactly why it's coming up) This is the case if I try to declare a 404 at the top of any template.
  7. Ah yes, thanks. For some reason I was muddling up Lister and ListerPro.
  8. Consider the Skyscrapers demo website. Suppose I want to start storing a new piece of information about each skyscraper, e.g. the cost to build it, or the owner. I think (possibly wrongly) that to do this I need to go separately to each skyscraper page and edit that information. However it would be marvellous if it was possible to simply create the new field, add it to the template, but then have a method to edit all the instances of that field together. Perhaps this could be achieved by adding AJAX editing capabilities to ListerPro?
×
×
  • Create New...