Jump to content

ttbb

Members
  • Posts

    30
  • Joined

  • Last visited

Everything posted by ttbb

  1. i've a problem mutally in the same area: coming from drupal where krumo (http://krumo.kaloyan.info/) is part of the widely used development module and an easy way to insert krumo(object/variable/array) at any place to have a handy you have a collapsed view of the input as a great replacement of print_r. i'm frequently using it also in php projects (without namespaces). i include it in processwire like this: define('dir', dirname(__FILE__)); include_once(dir.'/includes/krumo/class.krumo.php'); krumo::$skin = 'orange'; // just a theme of krumo krumo works fine as expected as long as i use e.g. »normal« php arrays. when i hand over a WireArray, e.g. a page array it stops working with fatal errors, obviously due to krumo being called as class inside of another namespace. i fiddled around with the $wireArray->getArray() method, but no avail. how can i globally display the processwire objects the same way as standard php objects? ... or does anyone an alternative method of displaying any kind of data (objects/arrays/variables) for debugging with a page?
  2. hi there, i'm pretty new to processwire after switching to a more slim, less dependency affected and more customizable CMF after 15 years with drupal ? after some weeks with tests and with staring up a new project i didn't regret my switch ? currently i'm working on an art gallery website, in its core consisting of two pages types with their respective templates: artists and artworks. artworks are mandatory connected to an artists. the URLs are /artists/someArtistsName and /artworks/someArtworksTitle. for better readable (SEO) and semantic usable URLs i want to have the artworks URLs automatically rewritten to /artworks/someArtistsName/someArtworksTitle after an artwork page has been created. inside of the artworks template the artist lives in a field with page reference type. i did intensive research here in the forum and on the web but didn't find a solution. maybe there's module for this? or how can i do this by adding this to the artworks template (hooks?). my be the collective community knowledge can point me in the right direction? any help is appreciated very much! best from vienna / austria thomas
×
×
  • Create New...